A customer service dialogue quality detection method and system based on NLP

By using an NLP-based customer service dialogue quality inspection method, the system acquires and analyzes customer service dialogue text streams in real time, sets state points for vector deviation analysis, solves the problem of inaccurate evaluation in traditional methods, realizes dynamic monitoring and optimization, and improves service quality and efficiency.

CN120849549BActive Publication Date: 2026-03-03MEGAVIEW INTELLIGENCE TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-01
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Traditional customer service dialogue quality assessment methods cannot handle massive amounts of unstructured dialogue text, struggle to parse complex business logic, quantify reassurance effects, and result in assessments that are out of sync with the user's actual experience. They also lack real-time monitoring and early warning capabilities and cannot adapt to dynamic scenarios, leading to inaccurate service quality assessments.

Method used

Using an NLP-based approach, the system acquires customer service dialogue text streams in real time, performs semantic understanding and sentiment analysis, sets start and end state points, generates dynamic correction coefficients through vector deviation analysis, conducts quality assessment, and performs real-time monitoring and storage.

Benefits of technology

It enables dynamic monitoring and precise optimization of customer service quality, improves user satisfaction and customer service efficiency, optimizes business standardization, reduces costs and strengthens risk control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120849549B_ABST
    Figure CN120849549B_ABST
Patent Text Reader

Abstract

The application provides a customer service dialogue quality detection method and system based on NLP, and relates to the technical field of natural language processing. The method comprises the following steps: obtaining an e-commerce platform customer service dialogue text stream in real time; performing semantic understanding on the dialogue text stream and outputting a semantic understanding result, wherein the semantic understanding result comprises a user consultation intention, key problem elements and customer service inquiry information entity integrity; performing sentiment analysis on the dialogue text stream based on the semantic understanding result and outputting a structured sentiment analysis result; setting a starting state point and a terminal state point in a dialogue processing path based on the semantic understanding result and the sentiment analysis result; and the starting state point is a semantic vector fused with the core problem elements of the first feedback of the user and a current user emotion state value. Through intelligent processing of the whole process, the application realizes dynamic monitoring and precise optimization of customer service quality, improves user satisfaction, customer service efficiency and business standardization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of natural language processing technology, and in particular to a method and system for detecting the quality of customer service dialogues based on NLP. Background Technology

[0002] With the explosive growth of e-commerce and internet finance, enterprise customer service systems have become the core hub for user interaction. However, current e-commerce platforms handle tens of millions of customer service conversations daily, and three major development trends are emerging:

[0003] The exponential growth in data volume: The massive accumulation of unstructured dialogue text has resulted in the coverage rate of traditional manual sampling methods being less than 0.1% in some cases, which may be insufficient to fully reflect service quality.

[0004] The increasing complexity and personalization of user needs: the proliferation of colloquial expressions, dialect vocabulary, and multi-turn interaction scenarios may increase the difficulty of understanding user needs;

[0005] Service quality requirements are being upgraded: users have increasingly higher demands for response efficiency and emotional experience, and traditional keyword-based evaluation methods may no longer be able to meet the needs of refined management.

[0006] Traditional methods rely on keyword matching, which may fail to handle semantic variations and result in low accuracy in intent recognition. Some lack domain knowledge support, making it difficult to analyze complex business logic and potentially leading to the omission of key issue elements. Others assess emotions through the frequency of sentiment words, which may overlook transitional logic, resulting in high error rates in emotion judgment. Some methods fail to correlate customer service reassurance behaviors with changes in user emotions, making it difficult to quantify the effectiveness of reassurance. Some methods use business process compliance as a single assessment dimension, which may ignore information completeness and the effectiveness of emotional reassurance, leading to a disconnect between assessment results and the actual user experience. Static assessment standards may not be suitable for dynamic scenarios and lack real-time correction mechanisms. Some dialogue data is unstructured, making it difficult to support multi-dimensional analysis and thus lacking real-time monitoring and early warning capabilities, potentially causing problem discovery to lag behind user complaints. Summary of the Invention

[0007] The technical problem to be solved by this invention is to provide a customer service dialogue quality detection method and system based on NLP, which realizes dynamic monitoring and precise optimization of customer service quality through intelligent processing of the entire process, thereby improving user satisfaction, customer service efficiency and business standardization.

[0008] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:

[0009] Firstly, an NLP-based method for assessing the quality of customer service conversations, the method comprising:

[0010] Step S1: Obtain the real-time text stream of customer service conversations on the e-commerce platform;

[0011] Step S2: Perform semantic understanding on the dialogue text stream and output the semantic understanding results, which include: user consultation intent, key question elements, and completeness of customer service inquiry information entities;

[0012] Step S3: Based on the semantic understanding results, perform sentiment analysis on the dialogue text stream and output the structured sentiment analysis results;

[0013] Step S4: Based on the semantic understanding results and sentiment analysis results, set a starting state point and an ending state point in the dialogue processing path; the starting state point is the semantic vector of the core question elements of the user's first feedback and the current user's emotional state value; the ending state point is the semantic vector of the standardized solution for the corresponding question type in the platform's business rule base and the target user's emotional threshold; connect the starting state point and the ending state point to form a reference straight line vector as the expected processing path; map the real-time matched customer service solution to the current trajectory vector; calculate the directional deviation angle and magnitude difference value of the current trajectory vector relative to the reference straight line vector, and generate a dynamic correction coefficient.

[0014] Step S5: Based on the dynamic correction coefficient, perform weighted calibration on the business specification compliance score to generate quality assessment indicators;

[0015] Step S6: Based on the quality assessment indicators, perform service quality monitoring and assessment data storage.

[0016] Further, step S1: Real-time acquisition of the e-commerce platform customer service dialogue text stream, including:

[0017] Real-time access to the dialogue data interface of the e-commerce platform's customer service system to obtain a mixed text stream containing user inquiry messages and customer service reply messages;

[0018] The acquired mixed text stream is segmented into sentences and labeled with roles in real time, and a structured dialogue sequence is output; each sentence in the structured dialogue sequence is labeled with the speaking role and timestamp;

[0019] The system removes automatically generated advertising text from the structured dialogue sequence, standardizes colloquial abbreviations and dialect words, filters non-textual symbols, and outputs a dialogue text stream.

[0020] Further, step S2: Perform semantic understanding on the dialogue text stream and output the semantic understanding result, which includes: user inquiry intent, key question elements, and the completeness of customer service inquiry information entities, including:

[0021] Extract user statements from the dialogue text stream, parse user intent based on domain knowledge graph, output user consultation intent category, and activate the corresponding structured extraction template according to intent category;

[0022] Based on the structured extraction template, the nodes that match the template are located in the dependency tree, and the key issue element values ​​are extracted.

[0023] Based on the key issue element values, the rule base is called to generate a list of required inquiry entities. That is, each key issue element value triggers a set of supplementary entities that customer service must confirm. Named entity recognition is performed on the customer service reply text to extract the customer service entity set. The extracted customer service entity set is compared with the list of required inquiry entities, and a boolean flag for entity integrity is output.

[0024] Integrate user consultation intent, key question element values, and entity integrity Boolean flags to output structured semantic understanding results.

[0025] Further, step S3: Based on the semantic understanding results, perform sentiment analysis on the dialogue text stream and output structured sentiment analysis results, including:

[0026] Based on the user's consultation intent category and key question element values ​​from the semantic understanding results, the user's statements are extracted from the dialogue text stream. Then, based on the timestamp of the dialogue text stream, the complete statement of the user's last feedback question is obtained. An e-commerce domain sentiment dictionary is loaded to match sentiment words in the complete statement of the user's last feedback question and obtain basic sentiment scores. Then, these sentiment word scores are calculated by weighting. The transition conjunctions in the complete statement of the user's last feedback question are detected and the statement is segmented into sub-units. The calculated sentiment word scores are decayed or reversed according to the order of the sub-units to generate the user's emotional state value.

[0027] Based on the user's emotional state value, emotion adjustment keywords are extracted from the customer service reply text. When at least one keyword is detected, the customer service representative is marked as having an intention to soothe the user. After the user's reply is marked as having an intention to soothe the user, the emotional state value is calculated again for the next reply to generate a new emotional state value. Based on the new emotional state value and the previous user emotional state value, an emotional change value is calculated. It is determined whether the emotional change value exceeds the threshold. If it does, and the customer service representative has an intention to soothe the user, the soothing is marked as effective, and a soothing effect mark is obtained.

[0028] Integrate user emotional state values ​​and soothing effect markers to output structured sentiment analysis results.

[0029] Further, step S4: Based on the semantic understanding results and sentiment analysis results, set a starting state point and an ending state point in the dialogue processing path; the starting state point is the semantic vector of the core question elements fused with the user's initial feedback and the current user's emotional state value; the ending state point is the semantic vector of the standardized solution for the corresponding question type in the platform's business rule base and the target user's emotional threshold; connect the starting state point and the ending state point to form a reference straight line vector as the expected processing path; map the real-time matched customer service solution to the current trajectory vector; calculate the directional deviation angle and magnitude difference value of the current trajectory vector relative to the reference straight line vector, and generate dynamic correction coefficients, including:

[0030] Based on semantic understanding results, the core problem elements of the user's initial feedback are extracted. These core problem elements are processed and transformed into semantic vector representations to obtain the problem semantic vector. Sentiment analysis results are input to extract the current user's emotional state value. The problem semantic vector and the current user emotional state value are fused to generate an initial state vector. The initial state vector is input into the platform's business rule base to obtain a standardized solution matching the current problem type. The standardized solution is processed and transformed into a semantic vector representation to obtain a solution semantic vector. Sentiment analysis association rules are input to extract the target user's emotional threshold. The solution semantic vector and the target user's emotional threshold are fused to generate a termination state vector.

[0031] Connect the initial state vector and the final state vector to generate the reference line vector;

[0032] Based on the resolution semantic vector in the termination state vector, a semantic transformation benchmark is used; the real-time customer service solution is mapped to the same semantic space, and the current trajectory vector is output.

[0033] Based on the reference line vector and the current trajectory vector, calculate the directional deviation angle between the two vectors: calculate the angle deviation value using the cosine theorem of the vector angle; calculate the difference in magnitude between the two vectors: take the absolute difference between the magnitude of the reference line vector and the magnitude of the current trajectory vector; generate a dynamic correction coefficient by combining the directional deviation angle and the difference in magnitude.

[0034] Further, step S5: Based on the dynamic correction coefficient, the business specification compliance score is weighted and calibrated to generate quality assessment indicators, including:

[0035] Input a dynamic correction coefficient, which includes the path deviation value, to obtain an initial score for real-time matching of business specification compliance.

[0036] Based on the path deviation value in the dynamic correction coefficient, when the path deviation is ≤5%, the initial score of business specification compliance remains unchanged. When the path deviation is >5%, the score deduction ratio is calculated. The compensation factor is obtained by subtracting the deduction ratio from 1. The initial score of business specification compliance is multiplied by the compensation factor to obtain the calibrated business specification compliance score. If the calibrated business specification compliance score is lower than 60 points, it is forcibly corrected to 60 points.

[0037] Input the calibration business specification compliance score, the information inquiry integrity score converted from the entity integrity Boolean mark, and the emotional reassurance effectiveness score converted from the reassurance effect mark. Calculate the weighted values ​​of the calibration business specification compliance score multiplied by 50%, the information inquiry integrity score multiplied by 30%, and the emotional reassurance effectiveness score multiplied by 20%, respectively, according to the preset weights of 50% for business specification compliance, 30% for information integrity, and 20% for emotional reassurance. Then, add the three together and output the total dialogue quality score.

[0038] Quality assessment indicators are generated based on the calibration scores for business compliance, information inquiry completeness, emotional reassurance effectiveness, and total dialogue quality.

[0039] Further, step S6: Based on quality assessment indicators, perform service quality monitoring and assessment data storage, including:

[0040] The total score of the conversation quality is extracted from the quality assessment indicators. When the total score is ≥80, it is marked as excellent service and the green light access command is activated; when the total score is ≤60 and <80, it is marked as qualified service and the yellow light monitoring command is activated; when the total score is <60, it is marked as poor service and the red light alarm command is activated. The service marking results are obtained. For conversations marked as poor service, a conversation freeze command is sent to the customer service system.

[0041] Based on service tagging results and quality assessment indicators, standardized storage records are generated, including: a unique dialogue identifier, a calibrated business specification compliance score, an information inquiry completeness score, an emotional reassurance effectiveness score, a total dialogue quality score, and service tagging results; the storage records are then partitioned by time and written into a quality inspection result table in a distributed database.

[0042] Based on the quality inspection result table data, the quality inspection result table is queried in groups by customer service employee number to calculate the occurrence rate of poor service for each customer service representative. The quality inspection result table is also queried in groups by problem type to count the number of cases with an emotional reassurance effectiveness score of <60. The data on the occurrence rate of poor service and the failure of reassurance cases are integrated to generate a management analysis report containing trend charts, and the report is pushed to the customer service management platform.

[0043] Secondly, an NLP-based customer service dialogue quality inspection system includes:

[0044] The acquisition module is used to acquire the real-time text stream of customer service conversations on e-commerce platforms.

[0045] The semantic understanding module is used to perform semantic understanding on the dialogue text stream and output the semantic understanding results, which include: user consultation intent, key question elements, and the completeness of customer service inquiry information entities.

[0046] The sentiment analysis module is used to perform sentiment analysis on the dialogue text stream based on the semantic understanding results and output structured sentiment analysis results.

[0047] The dynamic correction module is used to set a starting state point and an ending state point in the dialogue processing path based on semantic understanding results and sentiment analysis results. The starting state point is a semantic vector that integrates the core question elements of the user's initial feedback and the current user's emotional state value. The ending state point is a semantic vector that integrates the standardized solution for the corresponding question type in the platform's business rule base and the target user's emotional threshold. The starting state point and the ending state point are connected to form a reference straight line vector, which serves as the expected processing path. The real-time matched customer service solution is mapped to the current trajectory vector. The deviation angle and magnitude difference of the current trajectory vector relative to the reference straight line vector are calculated to generate dynamic correction coefficients.

[0048] The calibration module is used to perform weighted calibration of the business specification compliance score based on dynamic correction coefficients, and generate quality assessment indicators.

[0049] The storage module is used to perform service quality monitoring and evaluation data storage based on quality assessment indicators.

[0050] Thirdly, a computing device includes:

[0051] One or more processors;

[0052] A storage device for storing one or more programs that, when executed by one or more processors, cause the one or more processors to implement the method.

[0053] Fourthly, a computer-readable storage medium storing a program that, when executed by a processor, implements the method.

[0054] The above-described solution of the present invention has at least the following beneficial effects:

[0055] The system acquires real-time data to ensure data timeliness and purity, and enables structured dialogue; the semantic understanding component accurately deconstructs user needs and verifies information integrity; the sentiment analysis unit dynamically tracks user emotions and provides early warnings of service risks; the dynamic correction process uses vector deviation analysis to achieve intelligent service path planning; the calibration system uses dynamic weighting and lower limit protection to achieve multi-dimensional and accurate quality assessment; and the storage module supports real-time monitoring, automated intervention, and data-driven management decisions. Overall, this technology improves demand response efficiency and emotional service levels at the user experience level, and optimizes customer service efficiency, reduces costs, and strengthens risk control at the enterprise operation level. Attached Figure Description

[0056] Figure 1 This is a flowchart illustrating a customer service dialogue quality detection method based on NLP, provided by an embodiment of the present invention.

[0057] Figure 2 This is a schematic diagram of a customer service dialogue quality detection system based on NLP, provided by an embodiment of the present invention. Detailed Implementation

[0058] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0059] like Figure 1 As shown, an embodiment of the present invention proposes a customer service dialogue quality detection method based on NLP, the method comprising the following steps:

[0060] Step S1: Obtain the real-time text stream of customer service conversations on the e-commerce platform;

[0061] Step S2: Perform semantic understanding on the dialogue text stream and output the semantic understanding results, which include: user consultation intent, key question elements, and completeness of customer service inquiry information entities;

[0062] Step S3: Based on the semantic understanding results, perform sentiment analysis on the dialogue text stream and output the structured sentiment analysis results;

[0063] Step S4: Based on the semantic understanding results and sentiment analysis results, set a starting state point and an ending state point in the dialogue processing path; the starting state point is the semantic vector of the core question elements of the user's first feedback and the current user's emotional state value; the ending state point is the semantic vector of the standardized solution for the corresponding question type in the platform's business rule base and the target user's emotional threshold; connect the starting state point and the ending state point to form a reference straight line vector as the expected processing path; map the real-time matched customer service solution to the current trajectory vector; calculate the directional deviation angle and magnitude difference value of the current trajectory vector relative to the reference straight line vector, and generate a dynamic correction coefficient.

[0064] Step S5: Based on the dynamic correction coefficient, perform weighted calibration on the business specification compliance score to generate quality assessment indicators;

[0065] Step S6: Based on the quality assessment indicators, perform service quality monitoring and assessment data storage.

[0066] In this embodiment of the invention, dialogue data is captured in real time to ensure that subsequent analysis is based on the latest interaction information, avoiding service response deviations caused by lag. The complete recording of the dialogue text flow provides a comprehensive data foundation for multi-dimensional analysis. By identifying consultation intent and key issue elements, customer service can quickly grasp the core needs of users, reduce communication costs, and improve problem-solving efficiency. User emotions are quantified to assist customer service in adjusting communication strategies, promptly soothing negative emotions, and improving the service experience. Using a baseline straight line vector as a reference, and adapting to real-time dialogue scenarios through dynamic correction coefficients, the service ensures both compliance with business rules and flexibility. By calculating the difference between the direction deviation angle and the modulus, the execution deviation of customer service solutions is transformed into quantifiable indicators. Automated calibration of service paths is achieved through vector mapping and dynamic calculation, improving processing efficiency. Quality scores are weighted based on real-time dialogue scenarios, making the evaluation results more closely reflect actual service effects. Evaluation standards are adjusted differently for different problem types and user emotional states, improving the accuracy of quality monitoring. Through real-time monitoring and data storage, a management closed loop of "analysis-evaluation-optimization" is formed, providing data support for long-term service improvement.

[0067] In a preferred embodiment of the present invention, step S1: acquiring the e-commerce platform customer service dialogue text stream in real time may include:

[0068] Step S1.1: Access the dialogue data interface of the e-commerce platform's customer service system in real time to obtain a mixed text stream containing user inquiry messages and customer service reply messages;

[0069] Step S1.2: Perform real-time sentence segmentation and role labeling on the acquired mixed text stream, and output a structured dialogue sequence; each sentence in the structured dialogue sequence is labeled with the speaking role and timestamp;

[0070] Step S1.3: Remove the automatically generated advertising text from the structured dialogue sequence, standardize colloquial abbreviations and dialect words, filter non-textual content symbols, and output the dialogue text stream.

[0071] In this embodiment of the invention, the complete two-way dialogue content between the user and customer service is acquired, providing raw data support for subsequent semantic analysis and sentiment recognition; unstructured text is transformed into a three-dimensional structured sequence of role-statement-time, facilitating subsequent analysis by role dimension; timestamps and role annotations make the dialogue process traceable, supporting the reconstruction of the interaction process along the timeline, providing a temporal basis for service quality assessment; irrelevant information such as advertisements and symbols are removed to avoid non-business content interfering with the accuracy of semantic analysis; after standardizing spoken language and dialects, the dialogue text meets the input requirements of a unified semantic analysis model, reducing model recognition errors; the clean text stream reduces the amount of subsequent processing computation and improves the overall process speed.

[0072] In this embodiment of the invention, when applied in a specific way, it can be implemented through the following technical solutions, for example:

[0073] In step S1.1 above, a long-lived data interface connection is established with the e-commerce platform's customer service system via network protocols (such as HTTP / HTTPS, WebSocket), continuously monitoring interface data pushes or actively polling to obtain dialogue data; the received data stream (such as JSON, XML format) is parsed to extract metadata such as the text content of user inquiry messages and customer service reply messages, sender identifiers (user ID / customer service ID), and message type; the parsed mixed text stream is stored in a temporary buffer, and data integrity is verified (such as text content not being empty, timestamp format being correct), and invalid data fragments are filtered out.

[0074] Step S1.2 above involves segmenting the mixed text stream based on punctuation marks (periods, question marks, exclamation marks, etc.) and semantic sentence segmentation rules (such as short sentence segmentation models), breaking down continuous text into independent sentence units; marking each sentence with a role attribute ("user" or "customer service") based on the sender identifier (user ID / customer service ID); if the interface does not directly provide role information, the role is inferred through preset rules (such as message prefixes and dialogue context logic); and attaching a system timestamp accurate to milliseconds to each sentence. If the interface returns a timestamp, it is standardized and calibrated (such as time zone unification) to ensure the accuracy of the time sequence of the dialogue.

[0075] In the above step S1.3, match the advertisement texts automatically sent by the system through a preset keyword library (such as "click to purchase", "time-limited discount") or regular expressions (such as promotional links, event pushes), and remove them from the conversation sequence; based on an abbreviation-standard vocabulary mapping dictionary (such as "dear" → "hello", "what to do" → "how to handle") and dialect-Mandarin conversion rules (such as "nong" → "you"), convert non-standard expressions into standard texts; use regular expressions to filter out emoticons, special characters (such as @#$), garbled characters, and format markers (such as HTML tags), and retain only the pure text content.

[0076] In a preferred embodiment of the present invention, the above step S2: perform semantic understanding on the conversation text stream and output the semantic understanding result, where the semantic understanding result includes: the user's consultation intention, key problem elements, and the entity integrity of the customer service's inquiry information, and may include:

[0077] Step S2.1, extract the user's statements from the conversation text stream, analyze the user's intention based on the domain knowledge graph, output the category of the user's consultation intention, and activate the corresponding structured extraction template according to the intention category;

[0078] Step S2.2, based on the structured extraction template, locate the nodes in the dependency tree that match the template and extract the values of the key problem elements;

[0079] Step S2.3, based on the values of the key problem elements, call the rule library to generate a list of necessary inquiry entities, that is, each value of the key problem element triggers a set of supplementary entity sets that the customer service must confirm; perform named entity recognition on the customer service's reply text, extract the customer service entity set, and compare the extracted customer service entity set with the list of necessary inquiry entities to output the entity integrity boolean flag;

[0080] Step S2.4, integrate the user's consultation intention, the values of the key problem elements, and the entity integrity boolean flag, and output the structured semantic understanding result.

[0081] In the embodiment of the present invention, the knowledge graph combines the semantic relationships in the e-commerce field to avoid generalization understanding, automatically matches a dedicated extraction template according to the intention, ensures that the subsequent element extraction focuses on the core problem, and reduces the interference of irrelevant information; the dependency tree disassembles the statement from the syntactic level to ensure the accuracy of the element extraction; converts natural language into key-value pairs for subsequent rule matching and quantitative analysis; enforces the verification of necessary entities through the rule library to avoid the customer service omitting key information due to negligence; the entity integrity verification is used as a standardized process to ensure that the customer service response complies with the business rule requirements and reduces the risk of subsequent disputes; integrates the three core information of intention, elements, and integrity to provide multi-dimensional data support for the subsequent service quality evaluation.

[0082] In this embodiment of the invention, when applied in a specific way, it can be implemented through the following technical solutions, for example:

[0083] In step S2.1 above, key entity categories are sorted out from the e-commerce business, such as "user", "product", "order", "logistics" and "after-sales". Each entity contains detailed attributes (such as the "product" entity containing attribute nodes such as "model", "color", "price" and "specification"); historical customer service dialogue data, e-commerce platform product database, order system fields, after-sales rule documents, etc. are integrated to extract entity instances (such as "product model = iPhone15" "order status = shipped").

[0084] Establish logical relationships between entities, for example:

[0085] The "ownership relationship" between "users" and "orders" (user A owns order B);

[0086] The "triggering relationship" between "products" and "after-sales service" (product quality issues trigger return requests);

[0087] The "status association" between "logistics" and "order" (order logistics status = in transit).

[0088] Construct an intent classification tree, such as "Consultation Intent" → "Product Inquiry" → "Specification Inquiry" → "Size Inquiry", forming hierarchical nodes from abstract to concrete.

[0089] Entity nodes and relationship edges are stored using graph databases such as Neo4j, with each node having an attribute label attached (e.g., "Intent node: Product Inquiry" labeled with keywords such as "size", "color", and "material"). Entity relationships are updated regularly based on new business scenarios (e.g., new product launches, promotional activities), and graph nodes are supplemented through manual annotation and semi-supervised learning.

[0090] The user's statement (e.g., "What is the chest measurement of this garment?") is segmented to extract the keywords "garment", "chest measurement", and "how much". These are then matched against the "specifications" attribute node of the "product" entity in the graph, as well as the "size inquiry" sub-node under "inquiry intent". The thesaurus in the graph (e.g., "chest measurement" → "size" → "specifications") is used to expand the query scope and avoid missed matches due to variations in user statements (e.g., "garment size" is equivalent to "size inquiry"). If a direct match fails, the query backtracks to higher-level nodes (e.g., if a user asks "Where is the package?" and "tracking number query" is not matched, then the parent node "logistics progress inquiry" is matched) to ensure comprehensive intent recognition. Through the hierarchical relationship of the graph, keywords are aggregated upwards from the bottom layer to determine the final intent category. For example:

[0091] Keywords "mobile phone" → "product" entity;

[0092] Keyword "Battery life" -> "Specification" attribute;

[0093] The combination is mapped to the intent node "Product consultation -> Specification consultation -> Battery life consultation".

[0094] The template library is indexed by intent nodes, and each intent corresponds to an exclusive template. For example:

[0095] The "Logistics progress query" template contains the required fields "Order number" and "Logistics company";

[0096] The "Return application" template contains fields such as "Order number", "Return reason", and "Product status".

[0097] Each template field is marked with "Required / Optional", "Data type" (such as the order number being a string), and "Semantic hint" (such as "Return reason" needs to be selected from the preset options).

[0098] Establish a one-to-one mapping relationship between the intent node and the template, and store it in the configuration file (such as JSON format). When the knowledge graph analyzes the intent category (such as "Product size consultation"), the system directly retrieves the corresponding template (such as "Product specification extraction template").

[0099] If the user's intent contains multiple sub-categories (such as consulting "Product price" and "Logistics timeliness" at the same time), the system supports parallel activation of multiple templates, combines the fields to form a composite extraction structure, and ensures that multi-dimensional information extraction is complete without omission.

[0100] In the above step S2.2, taking the user's statement "What is the battery capacity of this mobile phone" as an example:

[0101] Split the sentence into independent words and mark their词性 (such as nouns, verbs, pronouns, etc.),

[0102] Word segmentation result: "This" (pronoun), "mobile phone" (noun), "of" (particle), "battery" (noun), "capacity" (noun), "is" (verb), "how much" (interrogative pronoun);

[0103] Grammatical role recognition: Analyze the dependency relationship between words to determine the subject-predicate-object, attributive, adverbial, complement, etc. components;

[0104] Subject: "The battery capacity of this mobile phone" (a modified structure connected by "of", with the core word being "capacity");

[0105] Predicate: "is";

[0106] Object: "how much".

[0107] Tree structure generation: Use the predicate "is" as the root node, and the subject and object as the child nodes to construct a hierarchical tree.

[0108] Sub - node subdivision: "This" → attributive of "mobile phone", "battery" → attributive of "capacity", forming a nested structure of "attributive - headword".

[0109] Each node in the tree contains words, word - types, and grammatical roles (such as "subject", "object", "attributive"), and the edges represent dependency relationships (such as "attributive - headword relationship", "verb - object relationship").

[0110] Example tree structure:

[0111] is (predicate)

[0112] ├─ The battery capacity of this mobile phone (subject)

[0113] │├─ This (attributive)

[0114] │├─ mobile phone (headword, object of the attributive modification)

[0115] │├─ of (auxiliary word)

[0116] │├─ battery (attributive)

[0117] │└─ capacity (headword, core of the subject)

[0118] └─ How much (object)

[0119] Taking the "battery capacity" field in the "product consultation template" as an example, the semantic definition of this field in the template includes:

[0120] Core words: "battery capacity", "battery life", etc.;

[0121] Grammatical role: The core noun in the object or subject.

[0122] First layer: The words of the "battery" and "capacity" nodes in the dependency tree coincide with the keyword of the template field, initially locating the candidate nodes;

[0123] Second layer: Confirm that the "capacity" node is the core of the object or subject in the tree (in the above example, "capacity" is the core of the subject), meeting the requirements of the template field for the grammatical role (such as "battery capacity" is usually the object of consultation, corresponding to the object or subject);

[0124] Third layer: Through the attributive - headword relationship between "battery" and "capacity" in the dependency tree ("battery" modifies "capacity"), confirm that the combination of the two forms a complete semantic unit, avoiding semantic deviation caused by separately extracting "battery" or "capacity".

[0125] If the user's statement involves multiple elements (such as "What are the battery capacity and price of this mobile phone"), the "battery capacity" and "price" fields in the template will simultaneously match the corresponding nodes in the dependency tree ("battery capacity" is one object, "price" is another object), achieving parallel extraction of multiple elements.

[0126] If the object of the dependency tree is an interrogative word (such as "how much", "what", "where"), then the interrogative word is extracted as the value to be filled, prompting customer service to provide more specific information; if the statement is a declarative sentence (such as "I need a 128G phone"), then the specific description in the subject or object (such as "128G") is extracted as the element value.

[0127] When an element value contains multiple layers of modification relationships (such as "red long-sleeved pure cotton T-shirt"), the dependency tree will retain the complete modification chain ("red" → "long-sleeved" → "pure cotton" → "T-shirt"). During extraction, the elements will be combined in the order of the words to form the complete value "red long-sleeved pure cotton T-shirt" to avoid missing modification information. If a template field node is matched in the dependency tree, but there is no specific value at the corresponding position (such as the statement "phone cannot be charged" without mentioning the model), the element value will be marked as "not retrieved", triggering the subsequent list of entities that customer service must ask for (such as "please provide the phone model").

[0128] Example of handling complex scenarios:

[0129] User message: "My XPro laptop, which I bought yesterday, is now showing a black screen when I turn it on. How can I fix this?"

[0130] Dependency tree processing: split the main clause "the laptop computer has a black screen when it boots up" and the subordinate clause "the XPro model I bought yesterday";

[0131] The template field "Product Model" matches "XPro" in the subordinate clause, and "Problem Description" matches "Black Screen on Startup" in the main clause. The corresponding values ​​are extracted respectively.

[0132] User comments: "How is the sound quality of these headphones? Can the battery last up to 8 hours?"

[0133] The dependency tree generates two independent clauses, which are matched with the template fields "sound quality consultation" and "battery life consultation" respectively, and "sound quality" and "8 hours" are extracted as the corresponding element values.

[0134] In step S2.3 above, based on the key issue element values, the rule base is called (e.g., entities such as "order number," "reason for return," and "product status" are required for the "return" intent) to generate a supplementary entity list that customer service must inquire about; Named Entity Recognition (NER) is performed on the customer service response text, and entities (such as order number and product name) are extracted through dictionary matching and machine learning models (such as LSTM-CRF) to form a customer service entity set; The customer service entity set is compared one by one with the required entity list. If all required entities are mentioned in the customer service response, it is marked as "complete," otherwise it is marked as "missing," and a Boolean value result is output.

[0135] Step S2.4 above merges the user's consultation intent category, key-value pairs of key issue elements (such as "consultation type = logistics, express tracking number = 12345"), and entity integrity boolean flags (true / false) into a unified data structure; the integration result is converted into a structured format such as JSON or XML, and timestamps and dialogue identifiers are added to facilitate direct calls by subsequent modules (such as sentiment analysis and path planning).

[0136] In a preferred embodiment of the present invention, step S3 above: performing sentiment analysis on the dialogue text stream based on the semantic understanding result and outputting structured sentiment analysis results, may include:

[0137] Step S3.1: Based on the user's consultation intent category and key question element values ​​in the semantic understanding results, extract the user's statements from the dialogue text stream, and then obtain the complete statement of the user's last feedback question according to the timestamp of the dialogue text stream; load the sentiment dictionary in the e-commerce domain, match the sentiment words in the complete statement of the user's last feedback question and obtain the basic sentiment score, and then calculate these sentiment word scores by weight; detect the transition conjunctions in the complete statement of the user's last feedback question and segment the statement into sub-units, and perform attenuation or reverse propagation on the calculated sentiment word scores according to the order of the sub-units to generate the user's emotional state value;

[0138] Step S3.2: Based on the user's emotional state value, extract the emotional adjustment keywords from the customer service reply text. When at least one keyword is detected, mark the customer service representative as having an intention to soothe the user. Obtain the next sentence of the user's reply after marking the customer service representative as having an intention to soothe the user. For the obtained next sentence, repeat the emotional state value calculation to generate a new emotional state value. Calculate the emotional change value based on the new emotional state value and the previous user emotional state value. Determine whether the emotional change value exceeds the threshold. If it does, and the customer service representative has an intention to soothe the user, mark the soothing as effective and obtain the soothing effect mark.

[0139] Step S3.3: Integrate user emotional state values ​​and soothing effect markers to output structured sentiment analysis results.

[0140] In this embodiment of the invention, user text is converted into quantifiable emotion values, helping customer service staff to grasp user emotional fluctuations in real time. Transitional processing avoids misjudgment of emotions and improves analysis accuracy. The effectiveness of customer service responses is quantified by marking reassurance effects, helping to optimize training direction. Tracking user emotional changes can identify potential complaint risks in advance, reducing the probability of disputes. A structured format ensures that emotion analysis results can be seamlessly integrated into downstream processes, improving system collaboration efficiency. After the integrated results are stored in the database, it supports searching for emotion trends by time, intent category, and other dimensions, providing data support for service strategy optimization.

[0141] In this embodiment of the invention, when applied in a specific way, it can be implemented through the following technical solutions, for example:

[0142] In step S3.1 above, the user's inquiry intent category (such as "logistics complaint") and key issue element value (such as "lost package") are obtained from the semantic understanding results. Combined with the dialogue timestamp, the complete statement of the user's last feedback is selected (such as "Your courier was not only late, but also damaged the package!").

[0143] Load the e-commerce sentiment dictionary (containing words such as "satisfied", "terrible", "thank you" and their corresponding base scores, such as "damaged" = -3 points, "satisfied" = +2 points), traverse the words in the user's sentence, match sentiment words and extract scores; adjust the scores according to the position of sentiment words in the sentence (such as sentiment words at the end of the sentence have higher weight) and modifiers (such as "very" to strengthen the sentiment) (such as "very terrible" = "terrible" score × 1.5).

[0144] Detect conjunctions of transition ("but", "however", "however", etc.) and divide the sentence into sub-units (e.g., "although the price is cheap, the quality is poor" is divided into "although the price is cheap" and "but the quality is poor"); process them in the order of sub-units: the sentiment score of the previous sub-unit decreases sequentially (e.g., the score of the first unit is ×0.5), and the score of the sub-unit after the transition is reversed or strengthened (e.g., in "but the quality is poor", the score of "poor" is -4, which is directly used as the dominant sentiment).

[0145] The weighted scores of all sentiment words are aggregated and normalized to generate the user's emotional state value (usually ranging from -1 to 1, such as -0.8 indicating strong negative emotions and 0.3 indicating slight positive emotions).

[0146] Step S3.2 above involves the preset process of the emotion regulation keyword library:

[0147] We analyzed a massive amount of historical e-commerce customer service dialogues, extracted frequently occurring reassuring expressions (such as "sorry," "we'll handle it immediately," and "please rest assured"), and statistically analyzed their frequency of occurrence in successful reassurance scenarios. Referring to e-commerce industry customer service standards (such as the "E-commerce After-Sales Customer Service Script Guide"), we compiled standardized reassurance phrases (such as "we will follow up and handle it for you" and "we are very sorry for the inconvenience"). We invited experienced customer service teams to compile effective scripts for high-frequency reassurance scenarios (such as logistics delays and product quality issues), and extracted core keywords (such as "reissue," "refund," and "compensation").

[0148] Classified by semantic function:

[0149] Apology-related: includes words expressing remorse ("sorry", "excuse me", "I apologize", "I'm sorry") and compound phrases ("I'm very sorry", "I'm really sorry");

[0150] Action commitments: Verb phrases involving solutions ("process immediately", "reissue as soon as possible", "verify immediately", "arrange immediately");

[0151] Reassuring and reassuring statements: statements that give users confidence ("Please rest assured", "It will definitely be resolved", "Satisfaction guaranteed", "Guaranteed processing");

[0152] Compensation-related terms: Terms involving the redress of losses ("compensation", "refund", "coupon", "extra gift").

[0153] Adaptive tagging by scenario: Mark the applicable scenario for each keyword (e.g., "reissue" is mainly used for logistics loss scenarios, and "refund" is suitable for return scenarios) to improve matching accuracy.

[0154] Every quarter, based on the latest dialogue data, new high-frequency reassurance words are added (such as emerging internet slang like "truly" and "arranged"), while low-frequency or outdated words are removed (such as the old phrase "please wait a moment"). When the system detects an effective reassurance expression that is not covered by the keyword database (such as "don't worry, I'll handle it for you right away"), it is automatically marked and submitted for manual review before being added to the database.

[0155] The correspondence between the customer service reply and the user's next statement is determined based on the timestamp (e.g., if the customer service replies at 14:30:00 and the user replies at 14:30:15, it is considered as a set of interactions); the emotional state value calculation of S3.1 is performed on the user statement before the customer service reply (old statement) and the user statement after the reply (new statement) to obtain the old emotional value (e.g., -0.7) and the new emotional value (e.g., -0.2).

[0156] The new emotional value is subtracted from the old emotional value to obtain the emotional change value (e.g., -0.2 - (-0.7) = 0.5). A positive number indicates emotional improvement, and a negative number indicates deterioration. A preset basic improvement threshold (e.g., 0.3) is set and adjusted according to the complexity of the scenario (e.g., the threshold is set to 0.4 for after-sales rights protection scenarios and 0.2 for product consultation scenarios). "Effective reassurance" is marked only when both "emotional change value > threshold" and "customer service representative shows reassurance intention" are met. If the customer service representative has no reassurance intention but the emotional state improves (e.g., the user relieves it on their own), it is marked as "natural improvement" and is not included in the reassurance effect statistics.

[0157] Handling complex scenarios, such as:

[0158] Multi-round reassurance scenario: If customer service replies multiple times in a row (e.g., "Sorry" → "We will resend it immediately" → "We will follow up for you"), only the last reply from the user will be used to calculate the emotional change, avoiding double counting.

[0159] Scenario of fluctuating emotions: After a user's emotion value changes from -0.7 to -0.2 (a change of 0.5, which is effective) and then drops to -0.6, the system records the first effective reassurance. Subsequent fluctuations are separately marked as "fluctuating emotions".

[0160] The purpose of the keyword database is to quickly determine whether customer service representatives should take reassurance actions through a pre-set database, avoiding subjective judgment bias (e.g., "We will handle it" clearly matches "action commitment" keywords); to analyze high-frequency effective keywords (e.g., the reassurance effectiveness rate of "compensation" reaches 75%), and to guide customer service training to focus on high-value phrases (e.g., prioritizing the use of expressions containing "compensation").

[0161] The abstract concept of "soothing effect" is transformed into a calculable numerical indicator, supporting horizontal comparisons (e.g., Customer Service A's soothing effectiveness rate is 80% vs. Customer Service B's is 60%). When soothing is repeatedly ineffective (e.g., the change value is <0.3 more than 3 times), the supervisor is automatically triggered to intervene and remind, so as to prevent the user's emotions from continuing to deteriorate and leading to complaints.

[0162] In step S3.3 above, the user's emotional state value (e.g., -0.5), the comfort effect flag ("effective" or "ineffective"), the corresponding timestamp (e.g., 2025-06-2014:30:22), and the dialogue identifier (e.g., session ID-12345) are integrated into a unified data structure and converted into JSON format (example: `{"emotion_value":-0.5,"comfort_effect":"effective","timestamp":"2025-06-2014:30:22"}`), which is convenient for subsequent modules (e.g., dynamic path planning) to call and for database storage.

[0163] In a preferred embodiment of the present invention, step S4 above involves: setting a starting state point and an ending state point in the dialogue processing path based on the semantic understanding results and sentiment analysis results; the starting state point is a semantic vector that integrates the core question elements of the user's initial feedback and the current user's emotional state value; the ending state point is a semantic vector that integrates the standardized solution for the corresponding question type in the platform's business rule base and the target user's emotional threshold; connecting the starting state point and the ending state point to form a reference straight line vector, which serves as the expected processing path; mapping the real-time matched customer service solution to the current trajectory vector; calculating the directional deviation angle and magnitude difference value of the current trajectory vector relative to the reference straight line vector, and generating a dynamic correction coefficient, which may include:

[0164] Step S4.1: Based on the semantic understanding results, extract the core problem elements from the user's initial feedback, process the extracted core problem elements, and convert them into semantic vector representations to obtain the problem semantic vector; input the sentiment analysis results to extract the current user's emotional state value; fuse the problem semantic vector and the current user's emotional state value to generate an initial state vector; input the initial state vector into the platform's business rule base to obtain a standardized solution matching the current problem type; process the standardized solution to convert it into a semantic vector representation to obtain a solution semantic vector; input the sentiment analysis association rules to extract the target user's emotional threshold; fuse the solution semantic vector and the target user's emotional threshold to generate a termination state vector.

[0165] Step S4.2: Connect the initial state vector and the final state vector to generate the reference line vector;

[0166] Step S4.3: Based on the resolution semantic vector in the termination state vector, use it as the semantic transformation benchmark; map the real-time customer service solution to the same semantic space and output the current trajectory vector;

[0167] Step S4.4: Based on the reference line vector and the current trajectory vector, calculate the directional deviation angle between the two vectors: calculate the angle deviation value using the cosine theorem of the vector angle; calculate the difference in magnitude between the two vectors: take the absolute difference between the magnitude of the reference line vector and the magnitude of the current trajectory vector; generate a dynamic correction coefficient by combining the directional deviation angle and the difference in magnitude.

[0168] In this embodiment of the invention, the starting vector integrates the semantics of the problem and the user's emotions, while the ending vector combines the standard solution with the target emotions. This allows dialogue path planning to consider both business needs and user experience simultaneously. It provides clear starting and ending points for customer service, ensuring that the solution does not deviate from the core problem and the goal of emotional reassurance. It transforms the abstract service process into a quantifiable vector path, facilitating real-time comparison of the deviation between the actual service and the ideal state, providing a unified reference for subsequent deviation calculations of the trajectory vector. It converts the real-time response of customer service into dynamic points in the vector space, intuitively demonstrating whether the service process deviates from the standard path. It maps the trajectory vector based on the standard solution, ensuring that the customer service solution always revolves around the core steps required by the business rules. Finally, it converts service deviations into specific values, facilitating automatic system adjustment and human understanding.

[0169] In this embodiment of the invention, when applied in a specific way, it can be implemented through the following technical solutions, for example:

[0170] In step S4.1 above, key issue elements from the user's initial feedback (such as "order number" and "reason for return" in the "return application" scenario) are selected from the semantic understanding results to form an element set; the element set is input into a pre-trained semantic model in the e-commerce domain (such as Word2Vec), and each element is mapped to a dense vector in a high-dimensional space (such as "order number = 12345" is converted into a vector containing numerical features), and merged into an issue semantic vector; the user's emotional state value (such as -0.5) in the sentiment analysis results is extracted and concatenated with the issue semantic vector as an independent dimension (scalar) to generate an initial state vector containing semantics and emotion (such as [semantic vector dimension, emotion value dimension]).

[0171] Based on the current problem type (e.g., "return"), retrieve the standard solution from the business rule base (e.g., "verify order → confirm return reason → generate return address → refund processing"); convert the key steps of the standard solution (e.g., "verify order" and "generate return address") into semantic vectors, using the same method as the problem semantic vector, to form a solution semantic vector; obtain the expected sentiment value through sentiment analysis association rules (e.g., "the target sentiment threshold for the return scenario is -0.2"), and concatenate it with the solution semantic vector to generate a termination state vector.

[0172] In step S4.2 above, each dimension of the high-dimensional space (e.g., 100 dimensions) corresponds to a semantic feature in the e-commerce customer service scenario, for example:

[0173] Dimensions 1-10: Product attributes (model, color, price, etc.);

[0174] Dimensions 11-20: Order information (order number, order time, logistics status, etc.);

[0175] Dimensions 21-30: Problem types (returns, exchanges, repairs, etc.);

[0176] Dimensions 31-99: Solution steps (verify information, generate address, refund processing, etc.);

[0177] 100th dimension: Emotion value dimension (standardized value from -1 to 1).

[0178] All vectors (start, end, trajectory) follow the same dimension definition to ensure that the semantic meaning of each dimension is consistent (e.g., the 21st dimension always represents "problem type").

[0179] Each vector can be viewed as a coordinate point in space. The distance and direction between two points reflect semantic similarity and differences in processing paths. For example, the starting point of a return scenario and the starting point of an exchange scenario have different coordinates in the "problem type" dimension, and their spatial locations are different. The termination point of a standard solution is always located at the complete coordinates in the "solution steps" dimension (e.g., all steps correspond to a dimension of 1).

[0180] In 100-dimensional space, starting from the initial point A`(x1, x2, ..., x... 100 To the termination point B (y1, y2, ..., y... 100 Draw a directed line segment with the starting point A and the ending point B; the coordinates of each dimension of the reference line vector are the difference between the ending vector and the starting vector (e.g., the coordinate of the i-th dimension is yi-xi), representing the amount of change in that dimension from the starting point to the ending point.

[0181] The vector direction indicates the optimal path from the user's problem to the standard solution. For example, the vector direction from the starting point to the ending point of "screen scratch return" requires first verifying the order (35th dimension from 0 to 1), then confirming the reason (36th dimension from 0.9 to 1), and finally completing the refund (38th dimension from 0 to 1). At the same time, the sentiment value increases from -0.7 to -0.2. Dimensions with larger changes (such as solution steps) dominate in direction, prompting customer service to prioritize these core steps.

[0182] The vector magnitude is the square root of the sum of the squares of the changes in each dimension (a non-formulaic description), reflecting the expected processing complexity from problem to solution; Case study:

[0183] Simple returns (if the order has been verified, only the address needs to be confirmed) have a smaller mold length (small changes in each dimension);

[0184] Complex returns (such as missing order information requiring multiple rounds of verification) have a larger module length (numerous and significant dimensional changes).

[0185] By transforming textual semantics (such as "reason for return"), numerical indicators (emotional value), and process steps (solutions) into unified spatial coordinates, customer service is transformed from "unstructured information" to "structured vectors." The baseline straight line vector provides a geometric reference for calculating subsequent trajectory vector deviations (direction deviation angle, magnitude difference), for example:

[0186] If customer service fails to verify the order (the 35th dimension is still 0), the current trajectory vector differs from the baseline vector in this dimension, resulting in an increased directional deviation angle.

[0187] If customer service skips the "Generate Return Address" step (37th dimension is 0), the modulus difference value increases, indicating insufficient processing completeness.

[0188] Whether the user's problem is "product inquiry" or "after-sales complaint", a unified path planning and deviation assessment are achieved through high-dimensional space mapping, avoiding the problem of inconsistent assessment standards in different scenarios.

[0189] Step S4.3 above, taking the customer service reply "Please provide your order number, and we will process the return and apply for a refund for you" as an example:

[0190] The sentence is broken down into independent semantic units. Modal words ("please" and "and") and conjunctions are filtered out to extract core action phrases: "provide order number"; "process return"; "apply for refund". According to e-commerce business rules, the actions are classified as: information collection ("provide order number") and process execution ("process return" and "apply for refund").

[0191] Remove invalid expressions (such as comforting phrases like "I'm very sorry," which do not directly correspond to solution steps) and retain only actions directly related to solving the problem (such as "processing returns" being a valid action, and "sorry" is not included in the analysis).

[0192] Taking the termination state vector of the "return" scenario as an example, its semantic vector includes the following core dimensions:

[0193] Dimension A: Order Verification (corresponding to the standard step "Verify Order Information");

[0194] Dimension B: Confirmation of the reason for return;

[0195] Dimension C: Return address generation;

[0196] Dimension D: Refund Processing.

[0197] Each dimension has a pre-defined standard action mapping table (non-formulaic), for example:

[0198] Dimension A (Order Verification) can be mapped to the actions: "Provide Order Number", "Verify Order", and "Confirm Order Information".

[0199] Dimension D (Refund Processing) can be mapped to the actions: "Request a Refund", "Process a Refund", and "Initiate a Refund".

[0200] Keyword matching means that the customer service action "provide order number" contains the keyword "order number", and directly matches the keyword library of dimension A ("order", "order number", "OD", etc.); semantic similarity judgment means that if the action expression is varied (such as "please inform me of the order number"), the association with dimension A is confirmed through semantic expansion in the e-commerce domain ("number" = "number"); business logic verification means confirming the position of the action in the business process (such as "provide order number" is a prerequisite step for "verify order", belonging to the same dimension) and avoiding mismapping (such as "provide address" should not be mapped to the order verification dimension).

[0201] Each dimension is assigned a coordinate value of 0-1 based on the degree of completion of the action: if the customer service only requests "provide the order number" (verification not yet completed), the coordinate value of dimension A is set to 0.5 (in progress); if the customer service has confirmed that the order verification is complete, the coordinate value of dimension A is set to 1 (completed).

[0202] If customer service mentions multiple actions at the same time (such as "process return and apply for refund"), after mapping to the corresponding dimensions, the maximum value of each dimension is taken as the coordinate value (such as dimension B=1, dimension D=1); if there is a dependency relationship between actions (such as "verify the order before processing the return"), if the preceding action is not completed, the dimension value of the subsequent action is set to 0 (such as dimension B=0 if the order is not verified).

[0203] Example of dynamic update of real-time trajectory vector:

[0204] Dialogue Phase 1:

[0205] Customer service replied: "Please provide the order number" → Mapped to dimension A = 0.5 (only a request was made, verification was not completed), other dimensions = 0; trajectory vector: [0.5, 0, 0, 0, ...] (assuming dimension A is the first dimension).

[0206] Dialogue Phase 2:

[0207] After the user provides the order number, customer service replies: "The order has been verified and we are processing your return" → Dimension A = 1 (verification completed), Dimension B = 0.5 (processing); the trajectory vector is updated to: [1, 0.5, 0, 0, ...].

[0208] Dialogue Phase 3:

[0209] Customer service replied: "Return application has been submitted and refund will be processed for you" → Dimension B = 1 (processing completed), Dimension D = 0.5 (refund in progress); trajectory vector updated to: [1, 1, 0, 0.5, ...].

[0210] Each dimension value in the vector represents the progress of the corresponding solution step, and the overall coordinate point represents the customer service's current position on the standard path. For example, the trajectory vector [1, 1, 0, 0.5] means "order has been verified, return has been processed, address not generated, refund application in progress". Compared with the termination vector [1, 1, 1, 1], it can be seen that "generating return address" and "refund completed" have not yet ended.

[0211] The system transforms customer service responses into coordinates in a semantic space, visually displaying the completion status of each solution step. Based on the dimension of the termination vector, it automatically detects whether customer service has missed key steps (e.g., if the dimension of "generate return address" in the trajectory vector is always 0, it indicates that the customer service has not performed this step). The trajectory vector is dynamically updated with each round of customer service responses, forming a path curve from start to finish, supporting backtracking analysis (e.g., if the trajectory deviates from the baseline path after a certain round of responses, the specific deviation can be located).

[0212] In step S4.4 above, the angle between the reference line vector and the current trajectory vector is calculated. The larger the angle, the further the customer service solution deviates from the standard path (e.g., an angle of 90° indicates a complete deviation). The angle is converted into a deviation coefficient of 0-1 (e.g., 0° corresponds to 0, 180° corresponds to 1). The larger the angle, the higher the coefficient.

[0213] Calculate the absolute difference between the baseline vector magnitude (representing the completeness of the ideal processing flow) and the current trajectory vector magnitude (representing the actual progress of processing). The larger the difference, the more incomplete the solution is (e.g., baseline magnitude 5, current magnitude 3, difference 2). Weight the deviation angle coefficient and the magnitude difference (e.g., deviation angle weight 60%, magnitude difference weight 40%) to generate a dynamic correction coefficient of 0-1 (e.g., 0.7 indicates a large deviation that needs to be corrected).

[0214] In a preferred embodiment of the present invention, step S5 above: weighting and calibrating the business specification compliance score based on the dynamic correction coefficient to generate a quality assessment index, may include:

[0215] Step S5.1: Input the dynamic correction coefficient, which includes the path deviation value, and obtain the initial score of real-time matching business specification compliance.

[0216] Step S5.2: Based on the path deviation value in the dynamic correction coefficient, when the path deviation is ≤5%, the initial score of business specification compliance remains unchanged. When the path deviation is >5%, the score deduction ratio is calculated. The compensation factor is obtained by subtracting the deduction ratio from 1. The initial score of business specification compliance is multiplied by the compensation factor to obtain the calibrated business specification compliance score. If the calibrated business specification compliance score is lower than 60 points, it is forcibly corrected to 60 points.

[0217] Step S5.3: Input the calibration business specification compliance score, the information inquiry integrity score converted from the entity integrity Boolean mark, and the emotional reassurance effectiveness score converted from the reassurance effect mark. Calculate the weighted values ​​of the calibration business specification compliance score multiplied by 50%, the information inquiry integrity score multiplied by 30%, and the emotional reassurance effectiveness score multiplied by 20%, respectively, according to the preset weights of 50% for business specification compliance, 30% for information integrity, and 20% for emotional reassurance. Then, add the three together and output the total dialogue quality score.

[0218] Step S5.4: Generate quality assessment indicators based on the calibrated business specification compliance score, information inquiry completeness score, emotional reassurance effectiveness score, and total dialogue quality score.

[0219] In this embodiment of the invention, the dynamic correction coefficient is directly related to the degree of deviation between the service trajectory and the baseline path, upgrading the evaluation basis from static rules to dynamic deviation, ensuring that the evaluation results fit the real-time service scenario, and generating a unified initial score through preset rules to provide a benchmark for subsequent dynamic calibration; the dynamic calibration of business specification scores realizes deviation quantification and precise punishment based on path deviation, sets a lower limit for scores to ensure the robustness of the evaluation, and uses a deduction mechanism to force customer service to converge to the baseline path; the multi-dimensional weighted comprehensive score integrates three dimensions: business specifications, information integrity, and emotional comfort, guides the optimization of customer service resources through weight allocation, and transforms Boolean labels into quantitative indicators to enhance interpretability; the structured evaluation indicator output realizes the transparency of results and provides data support for management decisions.

[0220] In this embodiment of the invention, when applied in a specific way, it can be implemented through the following technical solutions, for example:

[0221] Step S5.1 above, the calculation of the vector deviation of the dynamic correction coefficient, specifically includes the comprehensive result of the direction deviation angle and the difference in magnitude. For example, when the angle between the trajectory vector of the customer service solution and the reference straight line vector is 30° and the difference in magnitude is 20% of the reference, the path deviation value is 0.3 (i.e. 30%) after weighted calculation; 0 indicates that it completely matches the reference path and 1 indicates that it completely deviates (such as the customer service does not respond according to any standard steps).

[0222] Deviation directly reflects the degree of discrepancy between customer service response and standard solution, for example:

[0223] Deviation degree 0.1: Customer service only missed one minor step (such as not proactively informing the customer of the refund arrival time), and the overall process is basically compliant;

[0224] Deviation 0.7: Customer service skips core steps (such as rejecting returns without verifying the order), which is a serious deviation from the standard procedure.

[0225] The process of building a pre-defined business rule base (taking e-commerce returns as an example):

[0226] Extract the official after-sales policies of e-commerce platforms (such as the "Return Processing Guidelines") and break them down into executable rules:

[0227] Order validity must be verified (Rule 1);

[0228] The reasons for returns must be recorded and categorized (Rule 2);

[0229] A return address must be generated within 24 hours (Rule 3).

[0230] Analyzing high-satisfaction return conversations, we identified frequently occurring compliant behaviors: customer service proactively explaining how to check return progress (Rule 4); providing compensation options (Rule 5).

[0231] Industry standards and regulations are integrated: relevant clauses of the Consumer Rights Protection Law are incorporated (such as the "seven-day no-reason return" rule 6).

[0232] Categorization by scenario:

[0233] Return scenario rule set: includes rules for order verification, reason recording, address generation, etc.;

[0234] Exchange scenario rule set: includes rules for product inventory inquiry, shipping cost liability, etc.

[0235] Prioritized by rule:

[0236] Core mandatory rules (high weight): such as "verify order" (rule 1), failure to execute will result in direct point deduction;

[0237] Assisted optimization rules (low weight): such as "actively explain the progress" (rule 4), which can earn points.

[0238] Each rule corresponds to an "executed / not executed" status. Some rules support graded scoring (e.g., "generate address within 24 hours": full marks for execution within 0-24 hours, deductions based on overtime percentage for executions exceeding 24 hours). The maximum score is 100 points. 10-20 points are deducted for each core rule not executed, and 5-10 points are deducted for each auxiliary rule not executed. For example: if "verify order → record reason → generate address within 24 hours" is fully executed, triggering rules 1, 2, and 3, the initial score = 100 - 0 = 100 points; if "verify order" is omitted, triggering rule 1 not executed, the initial score = 100 - 20 = 80 points.

[0239] If the platform updates its return policy (such as adding "fresh produce is not eligible for a 7-day no-reason return"), corresponding rules need to be added; if a large number of complaints are caused by "failure to inform the party responsible for return shipping costs", this matter should be upgraded to a core rule; if the order system adds an automatic verification function, rule 1 can be adjusted to "automatic system verification + manual confirmation".

[0240] If the subsequent dispute rate increases by 30% when a certain rule (such as "verify order") is not executed, its weight will be increased from 10 points to 20 points; if the execution of a certain auxiliary rule (such as "send friendly reminder") has less than 5% impact on satisfaction, its weight will be reduced or it will be removed.

[0241] Example of compliance check for initial score:

[0242] Scenario: User applies for return

[0243] Customer service response: "Please provide your order number and we will process your return" (only "verify order" was executed, no reason was recorded, and no address was generated).

[0244] Rule matching:

[0245] Rule 1 (verify order) → No points deducted;

[0246] Failure to comply with rule 2 (record the reason) → Deduct 15 points;

[0247] Failure to execute rule 3 (generated address) → Deduct 15 points;

[0248] Initial score = 100 - 15 - 15 = 70 points.

[0249] Scenario: Complete Customer Service Execution Process

[0250] Customer service response: "Your order has been verified. The reason for the return is that the size is incorrect. The return address has been sent to your mobile phone. The refund is expected to be processed within 3 business days."

[0251] Rule matching: Execute rules 1, 2, and 3 → No points deducted, initial score = 90 points (10 points reserved for process optimization bonus).

[0252] The rule base ensures the compliance of basic processes ("whether it is done"), while the dynamic correction coefficient measures the execution deviation ("how well it is done"). The combination of the two achieves a dual assessment of "compliance + accuracy". The rule base defines "what must be done", and the dynamic correction coefficient guides "how to do it better" (such as adjusting the response order according to the baseline path), forming a service improvement path from "meeting the standard" to "optimization".

[0253] In step S5.2 above, compare the path deviation value with the 5% threshold:

[0254] If the deviation is ≤5% (e.g., 0.03), the customer service response is considered to be basically consistent with the baseline path, and the initial score remains unchanged (e.g., 90 points).

[0255] If the deviation is greater than 5% (e.g., 0.2), the deduction mechanism will be triggered.

[0256] Deduction ratio determination: The portion exceeding 5% will be deducted proportionally (e.g., 5% of the score will be deducted for every 10% of the excess portion; for example, if the deviation is 0.2 (20%), the portion exceeding 5% will be 15%, and the deduction ratio = 15% × (5% / 10%) = 7.5%).

[0257] Compensation factor = 1 - deduction ratio (e.g., 1 - 0.075 = 0.925); the score after calibration is calculated as the initial score × compensation factor (e.g., 70 × 0.925 = 64.75 points; if the score after calibration is lower than 60 points (e.g., 55 points), it will be forcibly adjusted to 60 points to avoid extreme deviations that could lead to score distortion).

[0258] In step S5.3 above, the entity integrity Boolean flag (true / false) is converted into a numerical value: true (entity complete) → 100 points; false (entity missing) → 0 points (or points are deducted according to the missing proportion, such as deducting 20 points for each missing entity).

[0259] The soothing effect rating ("effective" / "ineffective") is converted into a numerical value: "effective" → 100 points; "ineffective" → 0 points (or the score is refined according to the degree of emotional improvement, such as 0.5 → 80 points).

[0260] The following weights are assigned based on preset weights: Business compliance (after calibration): 50% weight; Information integrity: 30% weight; Effectiveness of emotional reassurance: 20% weight.

[0261] Example of weighted score calculation: Business compliance score after calibration = 80 points → First weighted score = 80 × 50% = 40 points; Information integrity score = 100 points → Second weighted score = 100 × 30% = 30 points; Effective emotional reassurance = 100 points → Third weighted score = 100 × 20% = 20 points; Total score for dialogue quality = 40 + 30 + 20 = 90 points.

[0262] Step S5.4 above merges the following indicators into a unified structure:

[0263] Post-calibration business specification compliance score (e.g., 80 points);

[0264] Information query completeness score (e.g., 100 points);

[0265] Effectiveness score of emotional support (e.g., 100 points);

[0266] Total score for dialogue quality (e.g., 90 points).

[0267] The quality assessment indicators are converted into a standardized format for output. For example, when using JSON format, the content is presented as follows: In a JSON object, the value of "business_standard_score" (business standard compliance score) is 80, the value of "info_integrity_score" (information inquiry integrity score) is 100, the value of "emotion_comfort_score" (emotional comfort effectiveness score) is 100, and the value of "total_quality_score" (total dialogue quality score) is 90. If a table format is used, each assessment indicator and its corresponding score will be clearly listed in rows and columns.

[0268] In a preferred embodiment of the present invention, step S6 above: performing service quality monitoring and evaluation data storage based on quality assessment indicators, may include:

[0269] Step S6.1: Extract the total score of the dialogue quality from the quality assessment indicators. When the total score is ≥80, mark it as excellent service and activate the green light access command; when the total score is ≤60 and <80, mark it as qualified service and activate the yellow light monitoring command; when the total score is <60, mark it as poor service and activate the red light alarm command; to obtain the service marking result, wherein for dialogues marked as poor service, send a session freeze command to the customer service system;

[0270] Step S6.2: Based on the service tagging results and quality assessment indicators, generate standardized storage records, including: a unique dialogue identifier, a calibrated business specification compliance score, an information inquiry completeness score, an emotional reassurance effectiveness score, a total dialogue quality score, and service tagging results; write the storage records into the quality inspection result table of the distributed database by time partitioning;

[0271] Step S6.3: Based on the quality inspection result table data, query the quality inspection result table by customer service employee number, calculate the poor service occurrence rate for each customer service representative, query the quality inspection result table by problem type, count the number of cases with an emotional reassurance effectiveness score of <60, integrate the poor service occurrence rate and reassurance failure case data, generate a management analysis report including trend charts, and push the report to the customer service management platform.

[0272] In this embodiment of the invention, color-coded grading and command triggering enable visualized monitoring of service quality, reducing the risk of the spread of substandard services, automatically freezing substandard service sessions, preventing customer service staff from escalating problems due to inexperience, and improving the ability to prevent user complaints. Standardized storage enables long-term retention and querying of dialogue evaluation data, supporting compliance audits and dispute tracing. Time partitioning and distributed storage improve query performance under large data volumes and reduce data storage costs. Quantitative indicators and visual charts help managers accurately identify service shortcomings and develop targeted training plans. Report data feeds back into customer service management, forming a continuous optimization cycle of "evaluation-analysis-improvement" to improve overall service quality.

[0273] In this embodiment of the invention, when applied in a specific way, it can be implemented through the following technical solutions, for example:

[0274] In step S6.1 above, the "Total Dialogue Quality Score" value (e.g., 90, 75, 55) is read from the quality assessment indicators. If the total score is ≥80, it is marked as "Excellent Service" and the green light access instruction is activated (i.e., the service process proceeds normally by default). If the total score is ≤60 and <80, it is marked as "Qualified Service" and the yellow light monitoring instruction is activated (triggering manual spot checks or system focus). If the total score is <60, it is marked as "Poor Service" and the red light alarm instruction is activated. At the same time, a conversation freeze command is sent to the customer service system (pausing the current dialogue, preventing customer service from continuing to respond, and waiting for supervisor intervention).

[0275] Based on the service tagging results, visual prompts (such as green / yellow / red lights on the interface) are pushed to the customer service workbench through the system interface, and corresponding operations are performed (such as locking the customer service input box when freezing the session).

[0276] In step S6.2 above, the following are extracted from the quality assessment indicators: unique dialogue identifier (e.g., session ID-12345), calibrated business standard score (e.g., 80 points), information integrity score (100 points), emotional reassurance score (100 points), total dialogue score (90 points), and service tag result (“high-quality service”); additional fields include: dialogue start time, end time, user ID, customer service employee number, and other metadata.

[0277] Encapsulate the above fields into a standardized record according to a preset format (such as JSON) (Example: `{"session_id":"12345","score_business":80,"score_info":100,...,"mark":"high-quality service"}`).

[0278] Records are partitioned by timestamp (e.g., year / month / day). For example, data from June 2025 is stored in the `Quality Inspection Results_202506` table. Records are stored in the Quality Inspection Results table through the batch write interface of a distributed database (e.g., HBase, MongoDB) to ensure data reliability in high-concurrency scenarios.

[0279] In step S6.3 above, query the quality inspection result table, group by customer service employee number, and count the total number of conversations and the number of poor service for each customer service representative; poor service occurrence rate = number of poor service / total number of conversations × 100% (e.g., customer service representative A handles 100 conversations, 5 of which are poor, with an occurrence rate of 5%).

[0280] Grouped by problem type (e.g., "return" or "logistics inquiry"), cases with emotional reassurance scores <60 were filtered out, and the number of cases where reassurance failed under each type was counted (e.g., 10 cases of reassurance failure in the "return" scenario).

[0281] Draw a line chart of the occurrence rate of poor service on a daily / weekly / monthly basis (e.g., showing that the occurrence rate of a certain customer service group has decreased from 8% to 3% in the past 30 days); use a bar chart to show the percentage of cases where reassurance failed for each type of problem (e.g., "returns" account for 40%, and "complaints" account for 35%).

[0282] The integrated data and charts are generated into PDF / HTML reports, which are then pushed to the customer service management platform via system messages. Scheduled pushes (e.g., daily at 9 AM) or triggered pushes (e.g., when the incidence rate of a customer service representative exceeds a threshold) are supported.

[0283] like Figure 2As shown, embodiments of the present invention also provide an NLP-based customer service dialogue quality detection system, comprising:

[0284] The acquisition module is used to acquire the real-time text stream of customer service conversations on e-commerce platforms.

[0285] The semantic understanding module is used to perform semantic understanding on the dialogue text stream and output the semantic understanding results, which include: user consultation intent, key question elements, and the completeness of customer service inquiry information entities.

[0286] The sentiment analysis module is used to perform sentiment analysis on the dialogue text stream based on the semantic understanding results and output structured sentiment analysis results.

[0287] The dynamic correction module is used to set a starting state point and an ending state point in the dialogue processing path based on semantic understanding results and sentiment analysis results. The starting state point is a semantic vector that integrates the core question elements of the user's initial feedback and the current user's emotional state value. The ending state point is a semantic vector that integrates the standardized solution for the corresponding question type in the platform's business rule base and the target user's emotional threshold. The starting state point and the ending state point are connected to form a reference straight line vector, which serves as the expected processing path. The real-time matched customer service solution is mapped to the current trajectory vector. The deviation angle and magnitude difference of the current trajectory vector relative to the reference straight line vector are calculated to generate dynamic correction coefficients.

[0288] The calibration module is used to perform weighted calibration of the business specification compliance score based on dynamic correction coefficients, and generate quality assessment indicators.

[0289] The storage module is used to perform service quality monitoring and evaluation data storage based on quality assessment indicators.

[0290] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for detecting quality of a customer service dialogue based on NLP, characterized in that, The method comprises: Step S1: Real-time acquisition of e-commerce platform customer service dialogue text stream; Step S2: Perform semantic understanding on the dialogue text stream, and output the semantic understanding result, which includes: user consultation intent, key problem elements and customer service inquiry information entity integrity; Step S3: Based on the semantic understanding result, perform sentiment analysis on the dialogue text stream, and output the structured sentiment analysis result; Step S4: Based on the semantic understanding result and the sentiment analysis result, set the starting state point and the ending state point in the dialogue processing path; the starting state point is the semantic vector of the core problem elements fused with the first feedback of the user and the current user emotion state value; the ending state point is the semantic vector of the standard solution corresponding to the problem type in the platform business rule library and the target user emotion threshold; connect the starting state point and the ending state point to form a reference straight line vector as the expected processing path; map the real-time matched customer service solution to the current trajectory vector; calculate the direction deviation angle and the modulus difference value of the current trajectory vector relative to the reference straight line vector, and generate a dynamic correction coefficient; Step S5: Based on the dynamic correction coefficient, weight and calibrate the business specification compliance score to generate a quality evaluation index, including: Input the dynamic correction coefficient, which includes the path deviation degree value, and obtain the initial score of the real-time matched business specification compliance; Based on the path deviation degree value in the dynamic correction coefficient, when the path deviation degree is less than or equal to 5%, the initial score of the business specification compliance is kept unchanged; when the path deviation degree is greater than 5%, the score deduction ratio is calculated, the compensation factor is obtained by taking 1 minus the deduction ratio, the initial score of the business specification compliance is multiplied by the compensation factor to obtain the calibrated business specification compliance score, and if the calibrated business specification compliance score is lower than 60 points, it is forced to be corrected to 60 points; Input the calibrated business specification compliance score, convert the entity integrity Boolean label into an information inquiry integrity score, and convert the appeasement effect label into an emotional appeasement effectiveness score; according to the preset weights of business specification compliance 50%, information integrity 30%, and emotional appeasement 20%, calculate the weighted values of the calibrated business specification compliance score multiplied by 50%, the information inquiry integrity score multiplied by 30%, and the emotional appeasement effectiveness score multiplied by 20% respectively, and output the total score of the dialogue quality by adding them up; Based on the calibrated business specification compliance score, the information inquiry integrity score, the emotional appeasement effectiveness score, and the dialogue quality total score, generate a quality evaluation index; Step S6: Based on the quality evaluation index, perform service quality monitoring and evaluation data storage. 2.The NLP-based customer service conversation quality detection method of claim 1, wherein, Step S1: Real-time acquisition of e-commerce platform customer service dialogue text stream, comprising: Real-time access to the dialogue data interface of the e-commerce platform customer service system to obtain a mixed text stream containing user consultation messages and customer service reply messages; Perform real-time sentence segmentation and role labeling on the obtained mixed text stream, and output a structured dialogue sequence; each sentence in the structured dialogue sequence is marked with a speaking role and a timestamp; The structured dialogue sequence is subjected to removal of system automatically generated advertising text, standardization of colloquial abbreviations and dialect words, filtering of non-text content symbols, and output of a dialogue text stream. 3.The NLP-based customer service conversation quality detection method of claim 2, wherein, Step S2: semantic understanding of the dialogue text stream, output of a semantic understanding result containing: user consultation intent, key question elements, and customer service inquiry information entity integrity, including: user statement extraction from the dialogue text stream, user intent analysis based on a domain knowledge graph, output of a user consultation intent category, and activation of a corresponding structured extraction template according to the intent category; based on the structured extraction template, positioning of nodes matching the template from a dependency relation tree, and extraction of key question element values; based on the key question element values, calling of a rule library, generation of a required inquiry entity list, i.e. a set of customer service required supplementary entities triggered by each key question element value; performing named entity recognition on customer service reply text, extraction of a customer service entity set, comparison of the extracted customer service entity set with the required inquiry entity list, and output of an entity integrity Boolean label; integration of the user consultation intent, key question element values, and entity integrity Boolean label, and output of a structured semantic understanding result. 4.The NLP-based customer service conversation quality detection method of claim 3, wherein, Step S3: sentiment analysis of the dialogue text stream based on the semantic understanding result, output of a structured sentiment analysis result, including: based on the user consultation intent category and key question element values in the semantic understanding result, extraction of user statements from the dialogue text stream, and according to the time stamp of the dialogue text stream, obtaining a complete statement of the user's last feedback question; loading an e-commerce domain sentiment dictionary, matching and obtaining basic sentiment scores of sentiment words in the complete statement of the user's last feedback question, then weighting and calculating the sentiment word scores; detecting transition conjunctions in the complete statement of the user's last feedback question and segmenting the statement into subunits, according to the order of the subunits, attenuating or reversing the propagation of the calculated sentiment word scores, and generating a user emotional state value; based on the user emotional state value, extracting sentiment regulation keywords from customer service reply text, and when at least one keyword is detected, marking that the customer service has a calming intent; after obtaining the marking that the customer service has a calming intent, obtaining the next statement of the user's reply, repeating the calculation of the emotional state value to generate a new emotional state value; based on the new emotional state value and the previous user emotional state value, calculating an emotional change value; judging whether the emotional change value exceeds a lifting threshold, if it does and the customer service has a calming intent, marking that the calming is effective, and obtaining a calming effect label; integration of the user emotional state value and the calming effect label, and output of a structured sentiment analysis result. 5.The NLP-based customer service conversation quality detection method of claim 4, wherein, Step S4: Based on the semantic understanding result and the sentiment analysis result, set the starting state point and the ending state point in the dialogue processing path; the starting state point is the semantic vector of the core problem elements fused from the first feedback of the user and the current user emotional state value; the ending state point is the semantic vector of the standard solution corresponding to the problem type in the platform business rule library and the target user emotional threshold value; connect the starting state point and the ending state point to form a reference straight line vector as an expected processing path; map the real-time matching customer service solution to a current trajectory vector; Calculate the direction deviation angle and the modulus difference value of the current trajectory vector relative to the reference straight line vector to generate a dynamic correction coefficient, including: Based on the semantic understanding result, extract the core problem elements of the first feedback of the user, process the extracted core problem elements, and convert them into a semantic vector representation to obtain a problem semantic vector; input the sentiment analysis result to extract the current user emotional state value; fuse the problem semantic vector and the current user emotional state value to generate a starting state vector; input the starting state vector into the platform business rule library to obtain a standard solution matching the current problem type; process the standard solution to convert it into a semantic vector representation to obtain a solution semantic vector; input the sentiment analysis association rule to extract the target user emotional threshold value; fuse the solution semantic vector and the target user emotional threshold value to generate an ending state vector; Connect the starting state vector and the ending state vector to generate a reference straight line vector; Based on the solution semantic vector in the ending state vector as a semantic conversion reference, map the real-time customer service solution to the same semantic space to output a current trajectory vector; Based on the reference straight line vector and the current trajectory vector, calculate the direction deviation angle between the two vectors: calculate the angle deviation value by the vector included angle cosine theorem; calculate the modulus difference value of the two vectors: take the absolute difference value of the modulus of the reference straight line vector and the modulus of the current trajectory vector; and generate a dynamic correction coefficient by comprehensively considering the direction deviation angle and the modulus difference value. 6.The NLP-based customer service conversation quality detection method of claim 5, wherein, Step S6: Based on the quality evaluation index, perform service quality monitoring and evaluation data storage, including: Extract the dialogue quality total score value from the quality evaluation index, when the total score is greater than or equal to 80 points, mark it as high-quality service and activate the green light passing instruction; when 60 points is less than the total score and the total score is less than 80 points, mark it as qualified service and activate the yellow light monitoring instruction; when the total score is less than 60 points, mark it as poor quality service and activate the red light alarm instruction; to obtain a service marking result, wherein the conversation freezing command is sent to the customer service system for the conversation marked as poor quality service; Based on the service marking result and the quality evaluation index, generate a standardized storage record, including: a unique identifier of the dialogue, a calibrated business specification compliance score, an information inquiry integrity score, an emotional pacification effectiveness score, a dialogue quality total score, and a service marking result; write the storage record into the quality inspection result table of the distributed database according to time partitioning; Based on the quality inspection result table data, the quality inspection result table is inquired according to the customer service number grouping, the inferior service occurrence rate of each customer service is calculated, the quality inspection result table is inquired according to the problem type grouping, the number of cases with an emotional pacification effectiveness score less than 60 is counted, the inferior service occurrence rate and the pacification failure case data are integrated, a management analysis report containing a trend chart is generated, and the report is pushed to a customer service management platform.

7. An NLP-based customer service conversation quality detection system, the system implements the method of any one of claims 1 to 6, characterized in that, Comprise: An acquisition module is configured to acquire e-commerce platform customer service dialogue text stream in real time; A semantic understanding module is configured to perform semantic understanding on the dialogue text stream and output semantic understanding results, wherein the semantic understanding results include user consultation intent, key problem elements, and customer inquiry information entity integrity; An emotion analysis module is configured to perform emotion analysis on the dialogue text stream based on the semantic understanding results and output structured emotion analysis results; A dynamic correction module is configured to set a starting state point and a terminating state point in a dialogue processing path based on the semantic understanding results and the emotion analysis results; the starting state point is a semantic vector that fuses core problem elements of the first feedback of the user and a current user emotion state value; the terminating state point is a semantic vector that fuses a standard solution of a corresponding problem type in a platform business rule library and a target user emotion threshold value; a baseline straight line vector is formed by connecting the starting state point and the terminating state point, serving as an expected processing path; a real-time matched customer service solution is mapped to a current trajectory vector; A dynamic correction coefficient is generated by calculating the directional deviation angle and the modulus difference value of the current trajectory vector relative to the baseline straight line vector; A calibration module is configured to perform weighted calibration on a business specification compliance score based on the dynamic correction coefficient to generate a quality evaluation index; A storage module is configured to perform service quality monitoring and evaluation data storage based on the quality evaluation index.

8. A computing device, comprising: Comprise: One or more processors; A storage device is configured to store one or more programs, when the one or more programs are executed by the one or more processors, so that the one or more processors implement the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a program which is executed by the processor to implement the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent session method and system based on graph neural network, and medium

    CN113239147A

  • Algorithm AI customer service dialogue management method and system based on big data

    CN119621955A