Intelligent customer service processing method and related device

By acquiring incoming voice messages and transcribing them into user text through an intelligent customer service system, calling the intelligent agent to load target profiles and error correction rules, performing intent recognition and service scheme orchestration, the shortcomings of existing intelligent customer service systems are resolved, and efficient business processing and learning optimization are achieved.

CN123160165APending Publication Date: 2026-11-24CHINA TELECOM ARTIFICIAL INTELLIGENCE TECHNOLOGY (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611347585.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing intelligent customer service systems suffer from problems such as a lack of experience in linear pipeline architecture, insufficient noise resistance in slot filling, lack of standardized interaction channels between service solutions and backend business systems, and passive response to intent recognition.

Method used

By acquiring the incoming voice of the target object, transcribing it into user text, and calling the intelligent agent to load the target profile and general error correction rules, the agent performs intent recognition based on the user text, orchestrates service plans, including a list of steps, slot definitions, and tool binding relationships, and gradually calls the tools to execute business transactions, while updating the hierarchical memory.

Benefits of technology

It has enabled intelligent customer service based on historical prior knowledge, which has improved the executability and automation of service solutions, enhanced the accuracy of intent recognition and the efficiency of business processing, and formed an execution-learning closed loop.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160165A_ABST
    Figure CN123160165A_ABST
Patent Text Reader

Abstract

This invention discloses an intelligent customer service business processing method and related equipment. The invention loads target profiles and general error correction rules, ensuring each service is based on prior historical knowledge. It identifies the current intent based on user text and loads corresponding business error correction rules from the general error correction rules, ensuring precise matching between the error correction rules and the current business scenario. Based on the current intent, it orchestrates service plans to obtain executable service plans, and standardizes the association between these plans and backend model context protocol tools, improving their executability. When slot definitions are not empty, it fills slots to obtain a set of slot values, providing structured input for business processing. It calls the bound tools step-by-step according to the step list and slot value set to automate business processing. Finally, it updates the agent's hierarchical memory in response to execution results, forming an execution-learning closed loop, enabling continuous optimization of the system with use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to an intelligent customer service business processing method and related equipment. Background Technology

[0002] Intelligent customer service assistance systems, as an important application of artificial intelligence technology, are driven by enterprises' pursuit of efficient and intelligent service systems and the growing market demand. This system combines natural language processing, machine learning, and large-scale modeling techniques to achieve more accurate understanding of customer intent and more efficient responses, significantly improving service efficiency and customer satisfaction. However, intelligent customer service assistance systems still face challenges: 1. Linear pipeline architecture lacks experience accumulation capability: Existing intelligent customer service systems generally adopt a linear pipeline architecture of "ASR → intent recognition → solution matching → slot filling → business processing". Each conversation starts from scratch and cannot accumulate historical service experience. For example, if the slot of a user in a certain dialect area is misidentified multiple times, this error pattern cannot be learned by the system, resulting in the same error occurring repeatedly, and the system accuracy does not improve with the use time.

[0003] 2. Insufficient noise resistance of slot filling: In actual voice interaction, it is difficult to avoid noise, translation errors, repetition and other situations. For complex slots, such as long broadband account numbers and ID card numbers, the existing solution only relies on LLM to extract slot values ​​from the current dialogue text. It lacks cross-session historical experience reference and automatic error correction mechanism, which leads to limited recognition accuracy.

[0004] 3. Lack of standardized interaction channels between service solutions and backend business systems: Existing solutions rely on static solution libraries for matching standard requests, while for non-standard requests, large models are allowed to generate solution text freely. The generated solutions cannot be directly called by the backend business systems for execution and require manual transfer, resulting in a low solution implementation rate.

[0005] 4. Intent recognition is a passive response and lacks proactive planning capabilities: Existing solutions only classify the intent of the user's current utterance and cannot combine the user's historical behavior and current business status to predict subsequent needs, resulting in low efficiency in multi-round interactions. Summary of the Invention

[0006] The main objective of this invention is to provide an intelligent customer service processing method, device, electronic device, storage medium, and program product, aiming to solve at least one problem of the prior art.

[0007] To achieve the above objectives, one aspect of the present invention proposes an intelligent customer service business processing method, the method comprising: The system acquires the incoming voice of the target object, transcribes it into user text using the speech recognition module, and then calls the intelligent agent to load the target profile and general error correction rules. Based on user text, the current intent is obtained through intent recognition, and the business error correction rule corresponding to the current intent is loaded from the general error correction rule; Based on the current intent, service solutions are orchestrated to obtain executable service solutions; the executable service solutions include a list of steps, slot definitions, and tool binding relationships; If the slots in the executable service scheme are defined as non-empty, the set of slot values ​​is obtained by filling the slots. Based on the list of steps and the set of slot values, the model context protocol tools bound in the tool binding relationship are called step by step to execute the business process; In response to the execution results of business transactions, update the hierarchical memory of the intelligent agent.

[0008] In some alternative approaches, hierarchical memory includes conversation memory, slot memory, user profiles, and skill accumulation. Incoming voice calls carry the user identifier of the target object. The intelligent agent is invoked to load the target profile and general error correction rules, including the following steps: The intelligent agent loads the target profile of the target object from the user profile in hierarchical memory based on the user identifier; If the user identifier does not match any user profile, an empty profile is initialized as the target profile. Load general error correction rules from the skill accumulation in hierarchical memory; The general error correction rules include the matching mode, replacement action, rule type, scene label, confidence level, hit count, most recent use time, and creation time for each skill.

[0009] In some optional approaches, based on user text, the current intent is obtained through intent recognition, and business-specific error correction rules corresponding to the current intent are loaded from a general error correction rule set, including the following steps: The user's text is encoded using a general vector coding model to obtain a text vector; Based on the text vector, we iterate through each text code in the pre-defined recall knowledge base to obtain the cosine similarity between the text vector and each text code. The recall knowledge base is obtained by organizing the full text encoding of various intent data. Each text encoding in the recall knowledge base is associated with an intent type. The text encoding is pre-divided into a high-frequency intent set or a low-frequency intent set based on the intent type. The text encoding corresponding to the highest cosine similarity is used as the intent matching result; If the intent matching result belongs to the high-frequency intent set and the cosine similarity of the intent matching result is not less than the similarity threshold, the intent type corresponding to the intent matching result is taken as the current intent; otherwise, the user text and the candidate intent list composed of all intent types are input into the preset large language model for intent recognition to obtain the current intent. The results of intent recognition also include a list of predicted intents and the current business status. The list of predicted intents is obtained by driving a preset large language model based on the current intent, user text, and target profile. The current business status is obtained by calling a preset user status query tool index based on the user identifier carried by the incoming voice. Use the current intent as a scenario label, and load the corresponding business error correction rule from the general error correction rule; Among them, the business error correction rules are used to update the skill accumulation in the hierarchical memory of the intelligent agent.

[0010] In some alternative approaches, the result of intent recognition also includes the current business state. Based on the current intent, service scheme orchestration is performed to obtain an executable service scheme, including the following steps: The client queries the customer service knowledge base model context protocol server for the standard service solution corresponding to the current intent through the model context protocol client. If the standard service plan is not empty, extract the step list and slot definition from the standard service plan; If the standard service plan is empty, the original service plan, including a list of steps and slot definitions, is generated based on the user text, current intent and current business state context driven by the preset large language model. The agent matches each step in the step list of the standard service solution or the original service solution with the available tools in the Model Context Protocol Tool Registry. Based on the matching results, the agent binds the corresponding Model Context Protocol tool to each step in the step list to determine the tool binding relationship. An executable service solution is obtained by summarizing the step list, slot definitions, and tool binding relationships.

[0011] In some alternative approaches, hierarchical memory includes session memory, slot memory, user profiles, and skill accumulation. Slot value sets are obtained through slot filling, including the following steps: The first unfilled slot in the slot definition is used as a candidate slot. Query the historical values ​​of candidate slots in the user profile; If the candidate slot has historical values ​​in the user profile, the slot value of the candidate slot is pre-filled using the historical values, and the slot source of the candidate slot is marked as pre-filled from the user profile. Get the response value of the target object to the candidate slot; If the response value differs from the historical value, the response value is used to overwrite the slot value of the candidate slot and the corresponding historical value in the user profile, and the slot source of the candidate slot is marked as a response confirmation. If a candidate slot has no historical value in the user profile and the response value is empty, mark the slot source of the candidate slot as unfilled; The next unfilled slot in the slot definition is taken as a candidate slot. The process of querying the historical value of the candidate slot in the user profile is returned until all unfilled slots in the slot definition are traversed, and the initial slot set is obtained. Based on the tool binding relationship, the model context protocol verification tool is called to verify the slots with slot values ​​in the initial slot set, and the slot status of each slot is obtained. For slots whose status is not "validated", the corresponding slot value is updated by calling the preset large language model or responding to manual intervention. Then, the slot value set is obtained by combining the slot values ​​whose status is "validated".

[0012] In some optional approaches, the business process is executed step-by-step by calling the model context protocol tools bound in the tool binding relationship, based on the step list and slot value set, including the following steps: The first step in the list of steps is selected as the candidate step. The agent invokes the model context protocol tool corresponding to the candidate step based on the tool binding relationship. Based on the model context protocol, the tool executes business operations according to the set of slot values ​​and obtains the execution results of candidate steps; If the execution result is successful, the next step in the step list is taken as a candidate step, and the execution is returned to the step where the agent calls the model context protocol tool corresponding to the candidate step based on the tool binding relationship; If the execution result is a failure, the agent will send the failure information of the candidate step back to the agent to obtain the agent's response and handling plan. The handling plan includes retrying the step, skipping the step, or terminating the entire service plan. If the processing solution is to retry this step, update the slot value set based on the slot correction value carried by the processing solution, and return to the step of executing the business operation based on the slot value set by the model context protocol tool; If the solution is to skip this step, the next step in the step list is taken as a candidate step, and the process is returned to execute the step in which the agent calls the model context protocol tool corresponding to the candidate step based on the tool binding relationship. If the solution is to terminate the entire service plan, then terminate the business processing in the step list.

[0013] In some optional approaches, the slot value set corresponds to each slot being marked with its source and status. The hierarchical memory includes session memory, slot memory, user profiles, and skill accumulation. In response to the execution results of business transactions, the agent's hierarchical memory is updated, including the following steps: Write the service trajectory corresponding to the business process into the session memory; the service trajectory includes the current intent, slot value set, interface call result, manual correction record and execution result; Based on the slot source and slot status, update the general error correction rules for each slot in the skill accumulation, corresponding to the technical confidence level of each skill; Update the intent types in the preset intent set based on historical statistical results of intent recognition; After archiving the data in the slot memory, clear it, and retain the data in the session memory as offline analysis data.

[0014] To achieve the above objectives, another aspect of the present invention provides an intelligent customer service processing device, the device comprising: The target call module is used to acquire the incoming voice of the target object, transcribe it into user text through the language recognition module, and call the intelligent agent to load the target profile and general error correction rules; The data loading module is used to obtain the current intent based on the user text through intent recognition, and to load the business error correction rules corresponding to the current intent from the general error correction rules. The service orchestration module is used to orchestrate service solutions based on the current intent to obtain executable service solutions; the executable service solutions include a list of steps, slot definitions, and tool binding relationships. The slot filling module is used to obtain a set of slot values ​​by filling slots if the slots in the executable service scheme are defined as non-empty. The business processing module is used to call the model context protocol tools bound in the tool binding relationship step by step to execute business processing based on the step list and slot value set; The memory update module is used to update the hierarchical memory of the intelligent agent in response to the execution results of business processing.

[0015] To achieve the above objectives, another aspect of the present invention provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned method.

[0016] To achieve the above objectives, another aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned method.

[0017] To achieve the above objectives, another aspect of the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the aforementioned method.

[0018] The present invention provides at least the following beneficial effects: The present invention provides an intelligent customer service business processing method, apparatus, electronic device, storage medium, and program product. This solution acquires the incoming voice of a target object, transcribes it into user text using a language recognition module, and calls an intelligent agent to load the target profile and general error correction rules. Based on the user text, the current intent is obtained through intent recognition, and business error correction rules corresponding to the current intent are loaded from the general error correction rules. Service schemes are orchestrated based on the current intent to obtain executable service schemes. The executable service scheme includes a step list, slot definitions, and tool binding relationships. If the slot definitions in the executable service scheme are not empty, a slot value set is obtained through slot filling. According to the step list and slot value set, the model context protocol tools bound in the tool binding relationship are called step by step to execute the business processing. In response to the execution result of the business processing, the hierarchical memory of the intelligent agent is updated. This invention acquires the incoming voice of the target object and transcribes it into user text. It then invokes an intelligent agent to load the target profile and general error correction rules, ensuring that each service is based on prior knowledge and avoiding starting from scratch. Based on the user text, it performs intent recognition to obtain the current intent and loads the corresponding business error correction rules from the general error correction rules, ensuring accurate matching between the error correction rules and the current business scenario. Based on the current intent, it orchestrates service solutions to obtain executable service solutions containing a list of steps, slot definitions, and tool binding relationships. It standardizes and associates the service solutions with backend model context protocol tools, improving the executability of the solutions. When slot definitions are not empty, it fills slots to obtain a set of slot values, providing structured input for business processing. It calls the bound tools step-by-step according to the list of steps and the set of slot values ​​to automate business processing. Finally, it updates the hierarchical memory of the intelligent agent in response to the execution results, forming an execution-learning closed loop, enabling continuous optimization of the system with use. Attached Figure Description

[0019] Figure 1 This is a schematic diagram of an implementation environment for the intelligent customer service business processing method provided in an embodiment of the present invention; Figure 2 This is a flowchart illustrating the intelligent customer service processing method provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the process of calling the intelligent agent to load the target profile and general error correction rules according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the overall architecture principle of the intelligent customer service business processing method provided in the embodiments of the present invention; Figure 5This is a schematic diagram of the intelligent customer service processing device provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of this invention; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this invention as detailed in the appended claims.

[0021] It is understood that the terms "first," "second," etc., used in this invention may be used to describe various concepts, but unless specifically stated otherwise, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of embodiments of this invention, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words "if" or "when" as used herein may be interpreted as "when," "in response to determination," or "in the event of a determination."

[0022] The terms “at least one,” “multiple,” “each,” “any,” etc., used in this invention, “at least one” includes one, two, or more than two; “multiple” includes two or more than two; “each” refers to each of the corresponding multiple; and “any” refers to any one of the multiple.

[0023] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this invention is for descriptive purposes only and is not intended to limit the invention.

[0024] To facilitate understanding of the technical solution of this invention, the following explanations are provided regarding the technical terms that may be involved in the technical solution of this invention: Agent: A stateful execution program driven by an "observation-thinking-action" cycle. In this invention, the open-source Agent framework LangChain serves as the orchestration foundation (responsible for the main control cycle, state maintenance, and tool scheduling), while China Telecom's self-developed TeleChat3-36B-Thinking acts as the inference engine (possessing Function Call capabilities, responsible for understanding input and outputting decision instructions). Together, they complete the scheduling of the entire process, from intent recognition and solution generation to slot filling and business processing. The difference from traditional pipeline systems lies in the fact that the Agent maintains a continuously running loop (while not done), allowing multiple attempts within the same stage and the ability to revert to earlier stages based on intermediate results.

[0025] Function Call: The ability of a large language model to trigger the execution of external tools through structured output. The model does not directly output natural language, but instead outputs JSON instructions conforming to a predefined schema (containing tool names and parameters). The runtime framework parses these instructions, calls the corresponding tool, and appends the returned result to the next round of input, allowing the model to continue inference. For example, if the model outputs {"tool":"query_account","args":{"phone":"138xxxx1234"}}, the framework will call the `query_account` tool accordingly. In this invention, the Agent uses this mechanism to call business tools registered with the MCP Server.

[0026] MCP (Model Context Protocol) is a standardized protocol for tool registration and invocation. Each MCP Server is an independent Python process that internally encapsulates REST API calls to existing telecommunications business systems (CRM, billing, installation and maintenance, etc.) and externally exposes tools using a unified protocol. The Agent's MCP Client communicates with each Server via HTTP. When a Server starts, it registers its list of provided tools, and the Agent automatically discovers available tools and invokes them when needed. Adding new business capabilities only requires deploying a new Server and registering it; no modification to the Agent's core logic is required.

[0027] Skill (Skill Unit): Reusable error correction rules accumulated by the Agent from historical services, stored in Redis in JSON format. Each Skill includes: pattern (regular expression, matching trigger condition), action (replacement target), type (CORRECTION error correction rule or FILL_STRATEGY slot filling strategy), scene_tag (GENERAL general rule or specific business intent name), confidence (confidence level, dynamically increasing / decreasing with successful / failed hits), hit_count (number of hits, recording the total number of times the Skill has been actually triggered), last_used (last hit timestamp, used for expiration and elimination judgment), and created_at (creation timestamp). During matching, rules are sorted in descending order of confidence, and the first matching rule is executed to avoid conflicts between multiple rules.

[0028] Layered memory: In this invention, the Agent's memory is divided into four layers according to its life cycle and purpose: L0 session memory, L1 slot memory, L2 user profile, and L3 skill accumulation. Each layer is managed independently and retrieved as needed to avoid context pollution.

[0029] Self-evolutionary closed loop: The Agent's "execution-learning-optimization" closed loop mechanism automatically evaluates the results, accumulates experience skills, and updates its memory after each task execution, enabling the Agent to continuously improve accuracy and efficiency through continuous use. "Becoming more accurate with use" is reflected in three dimensions: Skill error correction accuracy continuously improves with hit feedback; Intent routing paths are automatically optimized with hit rate statistics to reduce misjudgments; and User profiles increase the pre-filled hit rate with the accumulation of historical interactions.

[0030] Among related technologies, intelligent customer service assistance systems, as an important application of artificial intelligence, are driven by enterprises' pursuit of efficient and intelligent service systems and the increasing market demand. However, intelligent customer service assistance systems still face challenges: linear pipeline architectures lack experience accumulation capabilities; slot filling has insufficient noise resistance; service solutions lack standardized interaction channels with backend business systems; and intent recognition is a passive response.

[0031] In view of this, this invention provides an intelligent customer service business processing method and related equipment. This method acquires the incoming voice of a target object, transcribes it into user text using a speech recognition module, and calls an intelligent agent to load the target profile and general error correction rules. Based on the user text, the current intent is obtained through intent recognition, and business error correction rules corresponding to the current intent are loaded from the general error correction rules. Service schemes are orchestrated based on the current intent to obtain executable service schemes. The executable service scheme includes a step list, slot definitions, and tool binding relationships. If the slot definitions in the executable service scheme are not empty, a slot value set is obtained through slot filling. According to the step list and slot value set, the model context protocol tools bound in the tool binding relationships are called step by step to execute the business processing. In response to the execution result of the business processing, the hierarchical memory of the intelligent agent is updated. This invention acquires the incoming voice of the target object and transcribes it into user text. It then invokes an intelligent agent to load the target profile and general error correction rules, ensuring that each service is based on prior knowledge and avoiding starting from scratch. Based on the user text, it performs intent recognition to obtain the current intent and loads the corresponding business error correction rules from the general error correction rules, ensuring accurate matching between the error correction rules and the current business scenario. Based on the current intent, it orchestrates service solutions to obtain executable service solutions containing a list of steps, slot definitions, and tool binding relationships. It standardizes and associates the service solutions with backend model context protocol tools, improving the executability of the solutions. When slot definitions are not empty, it fills slots to obtain a set of slot values, providing structured input for business processing. It calls the bound tools step-by-step according to the list of steps and the set of slot values ​​to automate business processing. Finally, it updates the hierarchical memory of the intelligent agent in response to the execution results, forming an execution-learning closed loop, enabling continuous optimization of the system with use.

[0032] It is understood that the intelligent customer service processing method provided by this invention can be applied to any computer device with data processing and computing capabilities, and this computer device can be various terminals or servers. When the computer device in the embodiment is a server, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, the terminal can be a smartphone, tablet computer, laptop computer, or desktop computer, but it is not limited to these.

[0033] like Figure 1 The diagram shown is a schematic representation of an implementation environment provided by an embodiment of the present invention. (Refer to...) Figure 1The implementation environment includes at least one terminal 102 and a server 101. The terminal 102 and the server 101 can be connected via a network, either wirelessly or via a wired connection, to complete data transmission and exchange.

[0034] Server 101 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0035] Additionally, server 101 can also be a node server in a blockchain network. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms.

[0036] Terminal 102 can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. Terminal 102 and server 101 can be directly or indirectly connected via wired or wireless communication, and this embodiment of the invention does not impose any limitations.

[0037] For example, based on Figure 1 The implementation environment shown in this embodiment of the invention provides an intelligent customer service business processing method. The following description uses the application of this intelligent customer service business processing method in server 101 as an example. It can be understood that this intelligent customer service business processing method can also be applied in terminal 102.

[0038] Reference Figure 2 , Figure 2 This is an optional flowchart of the intelligent customer service business processing method provided in the embodiments of the present invention. The executing entity of the intelligent customer service business processing method can be any of the aforementioned computer devices (including servers or terminals). Figure 2 The method may include, but is not limited to, steps S1 to S6.

[0039] Step S1: Obtain the incoming voice of the target object, transcribe it into user text through the language recognition module, and call the intelligent agent to load the target profile and general error correction rules; It should be noted that hierarchical memory includes conversation memory, slot memory, user profiles, and skill accumulation. Incoming voice calls carry the user identifier of the target audience. In some embodiments, such as... Figure 3As shown, calling the intelligent agent to load the target profile and general error correction rules may include the following steps: S1.1, the intelligent agent loads the target profile of the target object from the user profile in the hierarchical memory according to the user identifier; wherein, if the user identifier does not match any profile in the user profile, an empty profile is initialized as the target profile; S1.2, the general error correction rules are loaded from the skill accumulation in the hierarchical memory; wherein, the general error correction rules include the matching mode, replacement action, rule type, scene label, confidence, hit count, recent use time and creation time of each skill.

[0040] For example, in some specific embodiments, step S1 can be implemented as follows: The system receives an incoming voice call x1 from a user; it calls an open-source ASR model to transcribe the voice x1 into text x2; it triggers Agent initialization and loads the current user's L2 user profile P from the hierarchical memory system. u =φ(user_id), if user_id is not found, initialize an empty image P. u = The information includes high-frequency intent information and historical slot value information; a general ASR error correction rule set S={s1,s2,...,s...} is loaded from the L3 skill accumulation layer. k}

[0041] The general error correction rules include the matching pattern, replacement action, rule type (CORRECTION error correction rule or FILL_STRATEGY slot filling strategy) for each skill, scene tag, confidence, hit count, last used time, and created time.

[0042] Specifically, this embodiment of the invention loads user profiles and general error correction rules at the start of the service, enabling each service to proceed based on prior historical knowledge and avoiding starting from scratch; for new users whose profiles do not match, an empty profile is used as a fallback to ensure the normal operation of the service. The general error correction rules have rich fields, providing a data foundation for subsequent matching, confidence iteration, and elimination.

[0043] Step S2: Based on the user text, the current intent is obtained through intent recognition, and the business error correction rule corresponding to the current intent is loaded from the general error correction rule. It should be noted that in some embodiments, step S2 may include the following steps: encoding the user text using a general vector coding model to obtain a text vector; based on the text vector, traversing each text code in a preset recall knowledge base to obtain the cosine similarity between the text vector and each text code; wherein, the recall knowledge base is obtained by organizing the full text codes of various intent data, and each text code in the recall knowledge base is associated with an intent type, and the text codes are pre-divided into a high-frequency intent set or a non-high-frequency intent set based on the intent type; the text code corresponding to the highest cosine similarity is taken as the intent matching result; if the intent matching result belongs to the high-frequency intent set and the cosine similarity of the intent matching result is not small... At a similarity threshold, the intent type corresponding to the intent matching result is taken as the current intent; otherwise, the candidate intent list consisting of user text and all intent types is input into a preset large language model for intent recognition to obtain the current intent. The intent recognition result also includes a predicted intent list and the current business status. The predicted intent list is obtained by driving the preset large language model based on the current intent, user text, and target profile. The current business status is obtained by calling a preset query user status tool index based on the user identifier carried by the incoming voice. The current intent is used as a scene label, and the corresponding business error correction rule is loaded from the general error correction rules. The business error correction rule is used to update the skill accumulation in the hierarchical memory of the intelligent agent.

[0044] For example, in some specific implementations, step S2 can be implemented as follows: receiving the transcribed user text x2; inputting the text into an open-source BGE vector model for encoding and vectorization, and using the encoding result as the output of the vector model e2=BGE(x2); and combining the encoding e2 of the current text with the encoding e of each text in the recall knowledge base. i Calculate the cosine similarity score sim(e2,e) i )=e2·e i / (‖e2‖·‖e i ||); The intent corresponding to the top 1 text with the highest similarity is taken as the output intent_match of the matching model.

[0045] The recall knowledge base needs to be pre-configured within the system. Specifically, this configuration can be achieved as follows: Organize all data in a format of (text, intent), where text is the actual text and intent is the intent corresponding to that text; encode the text in each data entry using an open-source BGE vector matching model; and save the vectorized text and its corresponding original intent as the recall knowledge base KB={(e i intent i )}.

[0046] Furthermore, after completing intent matching by recalling the knowledge base, intent decision-making and proactive intent planning are carried out: it is determined whether intent_match belongs to the high-frequency intent set HS and sim_max≥θ (θ is the similarity threshold, default 0.7). If the conditions are met, intent_match is used as the current intent intent_curr; if the conditions are not met, x2 and the list of all candidate intents labels are input into LLM for intent recognition: Prompt_intent={task, x2, labels}, task="Please perform semantic understanding on the following text and output the intent that is closest to the text.", intent_curr=LLM(Prompt_intent); Related intent prediction (proactive planning): Input intent_curr, x2, and L2 user profile P_pic into LLM and output a list of related intents; intent_pred=LLM(Prompt_pred), Prompt_pred="task_pred, intent_curr, x2, P_pic", task_pred="Given the user's current intent and profile, predict the two related intents that the user may need in the future"; Agent proactively queries the user's current business status: Call the telecommunications business support system MCP through the MCP Client. The Server's `query_user_status` tool takes a `user_id` as input and retrieves `ctx_user = MCP_call(query_user_status, user_id)`. `ctx_user` contains: the name and price of the activated service plan, unclosed service tickets from the past 30 days, and reminders of outstanding payments or contract expiration. For example, `ctx_user = "User plan = China Telecom Enjoy 129, broadband repair service tickets from last month not closed, no outstanding payments". This information is used for subsequent solution generation to avoid repeated queries or recommendations for already subscribed services; it also loads relevant service-related slot filling strategies (scene_tag = intent_curr) from L3 according to intent_curr, supplementing the already loaded general error correction rules.

[0047] Specifically, this embodiment of the invention maximizes efficiency while ensuring the accuracy of intent recognition through dual-path routing of vector recall and LLM correction; it achieves proactive planning by predicting associated intents and querying the current business status, reducing subsequent interaction rounds; and it loads business error correction rules in a targeted manner to accurately match error correction capabilities with specific business scenarios, improving the accuracy of slot filling.

[0048] Step S3: Orchestrate service plans based on the current intent to obtain an executable service plan; The executable service plan includes a list of steps, slot definitions, and tool binding relationships. It should be noted that the result of intent recognition also includes the current business state. In some embodiments, step S3 may include the following steps: querying the standard service scheme corresponding to the current intent from the customer service knowledge base model context protocol server through the model context protocol client; if the standard service scheme is not empty, extracting the step list and slot definition from the standard service scheme; if the standard service scheme is empty, generating an original service scheme including the step list and slot definition based on the user text, the current intent, and the current business state context driven by the preset large language model; matching each step in the step list of the standard service scheme or the original service scheme with the available tools in the model context protocol tool registry center through the intelligent agent, and binding the corresponding model context protocol tool to each step in the step list based on the matching result to determine the tool binding relationship; and summarizing the step list, slot definition, and tool binding relationship to obtain an executable service scheme.

[0049] For example, in some specific implementations, step S3 can be implemented as follows: The Agent queries the customer service knowledge base MCP Server through the MCP Client for the standard service plan corresponding to intent_curr. If it exists, the Agent obtains steps and slot_schema. If found, the Agent pushes detailed service plan process information to the agent. If the current business processing requires certain slot information, these slots to be filled are pushed together. The agent needs to ask the user to complete the slot filling before processing the business according to the service plan process. If not found, the Agent inputs x2, intent_curr, and ctx_user obtained in S307 into the open-source large model to generate the service plan. The input prompts for the large model are constructed as follows: `Prompt_plan={task, x2, intent_curr, ctx_user}`, where `task` describes the task: "You are a business expert for an operator, possessing excellent solution generation capabilities. Given a user request text, the user's request intent, and the user's current business status, please generate a solution that addresses the customer's request. Please concisely output the solution's flow. If the solution lacks certain information, please output this information, which needs to be confirmed with the user." Using the prepared `Prompt_plan`, the large model generates the solution: `plan_raw=LLM(Prompt_plan)`. `LLM` uses TeleChat3-36B-Thinking and an NVIDIA A100 Tensor Core GPU for inference. Solution validation and tool binding: The Agent matches each step in `plan_raw` with available tools in the MCP tool registry, binding each step to the corresponding MCP tool call, generating an executable service solution `plan={steps, slot_schema, tool_bindings}`. The plan is pushed to the agent, who needs to first ask the user to fill in the information before processing the business according to the service plan process.

[0050] Specifically, the embodiments of the present invention realize the dynamic orchestration of service solutions and tool binding through the MCP protocol, so that both standard and non-standard solutions can be transformed into executable business operations, solving the problem of the lack of standardized interaction channels between service solutions and backend business systems, and greatly improving the implementation rate and automation level of solutions.

[0051] Step S4: If the slots in the executable service scheme are defined as non-empty, obtain the slot value set by filling the slots; It should be noted that hierarchical memory includes conversation memory, slot memory, user profiles, and skill accumulation. In some embodiments, obtaining a set of slot values ​​through slot filling may include the following steps: designating the first unfilled slot in the slot definition as a candidate slot; querying the historical values ​​of the candidate slots in the user profile; if the candidate slot has a historical value in the user profile, pre-filling the slot value of the candidate slot using the historical value, and marking the slot source of the candidate slot as user profile pre-filling; obtaining the target object's response value to the candidate slot; if the response value differs from the historical value, using the response value to overwrite the slot value of the candidate slot and the corresponding historical value in the user profile, and marking the slot source of the candidate slot as response confirmation; if the candidate slot... If a slot has no historical value in the user profile and the response value is empty, the slot source of the candidate slot is marked as unfilled. The next unfilled slot in the slot definition is taken as a candidate slot, and the step of querying the historical value of the candidate slot in the user profile is returned to execute until all unfilled slots in the slot definition are traversed to obtain an initial slot set. Based on the tool binding relationship, the model context protocol verification tool is called to verify the slots with slot values ​​in the initial slot set to obtain the slot status of each slot. For slots whose slot status is not verified, the preset large language model is called or the corresponding slot value is updated in response to manual intervention. Then, the slot value set is obtained by combining the slot values ​​whose slot status is verified.

[0052] For example, in some specific implementations, step S4 can be implemented as follows: L2 pre-filling: Traverse each slot_i to be filled in slot_schema and query historical values ​​in the L2 user profile. If it exists, prefill slot_i.value=P_pic[slot_i.name] and mark slot_i.source=L2_PRE_FILL; if the user's subsequent real-time reply is different from the prefilled value, the real-time reply shall prevail and the prefilled value shall be overwritten. L3 skill self-correction: Apply the loaded Skill set (only Skills with confidence ≥ 0.3 are executed, and the first and second skills are matched in descending order of confidence) to the ASR transcribed text and each round of user reply, and perform regular expression replacement preprocessing. The agent asks the user for slot information and inputs the current dialogue text d_curr and slot_schema into the LLM for slot identification. Prompt_slot={task, d_curr, slot_schema}, task="Please identify the information in the following text and output it." slot_values=LLM(Prompt_slot). API automatic verification: For each slot_i.value, if the MCP verification tool is bound, it will be automatically called, with a 5-second timeout. PASS→VERIFIED, FAIL→API_REJECTED, timeout→API_TIMEOUT, no verification tool→NO_API_TOOL. Comprehensive decision and manual intervention: (1) L2_PRE_FILL+VERIFIED→directly adopted; (2) LLM identification+VERIFIED→push to the agent for confirmation; (3) API_REJECTED / API_TIMEOUT+LLM low confidence / NO_API_TOOL+LLM low confidence→push to manual judgment. After the agent corrects, mark it as MANUAL_CONFIRMED, and record the corrected data in manual_corrections. If the slot information is complete, collect the next slot; if it is incomplete, continue the loop iteration. A single slot can be queried a maximum of 3 times; exceeding this limit will result in the "UNFILLED" (unfilled) flag.

[0053] Step S5: Based on the step list and slot value set, call the model context protocol tool bound in the tool binding relationship step by step to perform business processing; It should be noted that in some embodiments, step S5 may include the following steps: designating the first step in the step list as a candidate step; invoking the model context protocol tool corresponding to the candidate step through an agent based on the tool binding relationship; performing business operations based on the slot value set using the model context protocol tool to obtain the execution result of the candidate step; if the execution result is successful, designating the next step in the step list as a candidate step and returning to the step of invoking the model context protocol tool corresponding to the candidate step through an agent based on the tool binding relationship; if the execution result is a failure, feeding back the failure information of the candidate step to the agent through an agent to obtain a processing solution from the agent; wherein, the processing solution includes retrying the step, skipping the step, or terminating the entire service solution; if the processing solution is to retry the step, updating the slot value set based on the slot correction value carried by the processing solution, and returning to the step of performing business operations based on the slot value set using the model context protocol tool; if the processing solution is to skip the step, designating the next step in the step list as a candidate step and returning to the step of invoking the model context protocol tool corresponding to the candidate step through an agent based on the tool binding relationship; if the processing solution is to terminate the entire service solution, terminating the business processing of the step list.

[0054] For example, in some specific implementations, step S5 can be implemented as follows: The Agent executes each step sequentially according to the order of steps in the plan. For each step_j, the MCP tool bound in S406 is called, and the collected slot values ​​are passed in to perform the business operation: result=MCP_call(tool_j, slot_values). If all steps of the service plan are executed successfully, the current service ends. If a step fails, the Agent reports the failure information to the agent, who can choose to: (1) correct the slot values ​​and retry the step; (2) skip the step and continue the subsequent process; (3) terminate the entire service plan.

[0055] Specifically, this invention supports step-by-step execution of business processes. When failures occur, the system allows for flexible handling through agent retry, skipping, or termination, avoiding service interruptions due to single points of failure. This improves the fault tolerance of business processes and agent work efficiency, and ensures controllability of execution in complex business scenarios.

[0056] Step S6: In response to the execution result of the business processing, update the hierarchical memory of the agent; It should be noted that the slot value set corresponds to each slot, which is marked with the slot source and slot status. The hierarchical memory includes session memory, slot memory, user profile, and skill accumulation. In some embodiments, step S6 may include the following steps: writing the service trajectory corresponding to the business processing into the session memory; wherein, the service trajectory includes the current intent, slot value set, interface call result, manual correction record, and execution result; updating the technical confidence of each skill corresponding to the general error correction rule in the skill accumulation for each slot based on the slot source and slot status; updating the intent type of the preset intent set based on the historical statistical results of intent recognition; archiving and clearing the data in the slot memory, and retaining the data in the session memory as offline analysis data.

[0057] For example, in some specific implementations, step S6 can be implemented as follows: After the service is completed, the Agent writes the complete service trajectory T={intent_curr, slot_values, api_results, manual_corrections,exec_result} into the L0 session memory. Experience evaluation—(1) L2 prefilling successfully reduces the number of query rounds of slots; (2) L3 Skill error correction hits the slot with the actual error (after replacement, LLM recognizes it correctly → confidence + 0.1, after replacement, it is manually corrected back to the original value → confidence - 0.1); (3) Error identification intercepted by API verification; (4) Manual intervention and correction content, and reverse update the confidence of the corresponding Skill. Skill Evolution - (1) Addition: When a new reusable pattern is discovered and there is no Skill with the same pattern in L3, a new Skill is generated and written to L3 with an initial confidence of 0.5; (2) Deduplication: When a new Skill with the same pattern conflicts with an existing Skill, the one with higher confidence is retained. If the difference is <0.1, the one with higher hit_count is retained; (3) Elimination: Skills with confidence ≤0.1 and hit_count =0 are directly deleted. Skills that have not been hit for 30 consecutive days and have confidence <0.5 are deleted. Skills that have recently failed to hit and have confidence ≤0.1 are deleted. Adaptive Intent Routing Rules: Statistically calculate the vector recall hit rate of each intent. Intents that have been corrected by LLM for N consecutive vector recalls (N≥5) are removed from HS. Non-HS intents that have been confirmed by LLM for N consecutive vector recalls are added to HS. User Profile Update: Overwrite the historical values ​​in L2 with the slot values ​​confirmed by the user in this service. L1 slot memory is cleared after archiving, and L0 session memory is retained for offline analysis.

[0058] Specifically, this invention achieves a closed loop of "execution-learning-optimization" through service trajectory writing, dynamic iteration of skill confidence, adaptive adjustment of intent routing, and user profile updates. After each service, the system automatically accumulates experience, eliminates low-quality rules, and optimizes intent routing, thereby continuously improving the error correction accuracy, intent recognition efficiency, and slot pre-filling hit rate of subsequent similar services, achieving "the more it is used, the more accurate it becomes" overall.

[0059] To explain in detail the principle of the technical solution of the present invention, the overall process of the present invention will be described below with reference to some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and should not be regarded as a limitation of the present invention.

[0060] In view of the shortcomings of existing technologies, this invention provides an intelligent customer service slot filling solution based on self-evolving agents and hierarchical memory to realize intelligent customer service business processing. Specifically, this invention can achieve or solve the following: 1. This invention proposes a self-evolving agent closed-loop architecture, transforming a stateless linear pipeline into an agent system with "execution-learning-optimization" closed-loop capabilities. After each service, skills are automatically accumulated, discarded, and optimized, and slot filling strategies and intent routing rules are dynamically adjusted to achieve continuous improvement in system accuracy over time.

[0061] 2. This invention proposes a dynamic tool orchestration and three-layer slot verification mechanism based on the MCP protocol. The backend business system is encapsulated into a plug-and-play tool through the MCP protocol, and the Agent is dynamically discovered and invoked. In the slot filling process, a three-layer guarantee of "L3 skill self-correction + API automatic verification + manual backup" is established to actively correct ASR noise and automatically verify slot values.

[0062] 3. This invention proposes a hierarchical slot memory architecture for customer service scenarios. The L2 user profile pre-fills high-frequency slots to reduce the number of inquiry rounds, and the L3 skill accumulation automatically corrects dialect / transcription noise. It also defines the conflict priority and data flow rules between each layer.

[0063] 4. This invention proposes a proactive intent planning mechanism, which not only outputs the current intent, but also predicts related intents and proactively queries the user's business status, upgrading intent recognition from passive classification to proactive planning, and preparing for subsequent service solutions.

[0064] like Figure 4 The diagram illustrates the overall architecture principle of the technical solution of this invention. In some specific application scenarios, the technical solution of this invention can be implemented through the following system architecture components: (1) Agent Main Body: Implemented based on the LangChain orchestration framework (Python), embedding the TeleChat3-36B-Thinking large model, responsible for the entire process scheduling and inference. The LangChain AgentExecutor is used to manage the main control loop, maintaining the state dictionary state={phase, intent_curr, plan, slot_values, done}. Each loop executes three phases: observation (reading user input or tool return results) → thinking (constructing the Prompt input TeleChat3-36B-Thinking from the current input, state and list of available tools, the model outputs structured decisions, the decision types include CALL_TOOL / ASK_USER / PUSH_AGENT / GOTO_PHASE / DONE) → action (execute the corresponding operation according to the decision type and update the state). The loop continues until DONE or reaches the maximum number of rounds (20 rounds). TeleChat3-36B-Thinking is the reasoning model used uniformly throughout the entire process of this invention. The same model instance is reused for intent recognition, scheme generation, slot recognition, and master control decision-making. It adapts to different tasks through different system prompts.

[0065] (2) ASR module: It adopts an open source speech recognition model (such as FunASR) to transcribe the user's speech into text in real time.

[0066] (3) Intent Recall Module: The BGE vector model is used to encode and recall intent vectors and build an intent knowledge base. At the same time, the large model is also used to re-identify inputs with low confidence in the vector model to enhance the accuracy of intent recognition.

[0067] (4) MCP Client: Embedded in the Agent orchestration code, it communicates with each MCP Server via the HTTP protocol.

[0068] (5) Multiple MCP Servers: Each server is an independent Python process that encapsulates a type of telecommunications service capability. Internally, it calls the REST APIs of existing CRM, billing, and installation and maintenance systems. Externally, it exposes tools using the MCP standard protocol and listens on an independent HTTP port. When the Agent starts, it aggregates the registration tools to build the local tool registry (tool_registry). Adding new service capabilities only requires deploying a new Server; no modification to the Agent logic is needed.

[0069] (6) Hierarchical memory storage: All are stored in Redis, with L0-L2 indexed by user_id and L3 indexed by scene_tag. The Agent main body, ASR module, BGE module and MCP Client are deployed on the same GPU server, and multiple MCPServers are deployed on different servers in the business network, communicating via HTTP on the enterprise intranet.

[0070] In some specific implementations, the read / write priority and refresh rules of the four-layer memory are as follows: L0 Session Memory: Stores the complete trajectory of the current service T={intent_curr, slot_values, api_results, manual_corrections, exec_result}. It is created when the service starts and written to the S800 archive when the service ends. It is only readable within the current service and is not accessed after the service ends.

[0071] L1 slot memory: Stores intermediate results of slot collection across multiple dialogue rounds. It is updated with each dialogue round and archived and cleared after the service is completed. It is mainly used to restore the context when a user hangs up and calls back.

[0072] L2 User Profile: Stores user-confirmed slot history values ​​and preference settings, indexed by user_id, loaded in S003 and updated in S804. Pre-fill Conflict Rule: When an L2 pre-filled value conflicts with a user's real-time response, the user's real-time response takes precedence. The L2 pre-filled value only serves as a default value to reduce query rounds and does not overwrite the user's actual answer. During the S804 update, the latest value confirmed by the user in this service session overwrites the historical value.

[0073] L3 skill set: storage error correction rules and slot filling strategies, loading general rules in S004, loading business rules according to intent after S300, and adding / updating during S803 runtime.

[0074] In some specific implementations, the matching, conflict, evolution, and elimination rules of the Skill system can be implemented as follows: Skill matching engine rules: For input text, iterate through the loaded Skill set in descending order of confidence. Match the text using the pattern (Python regular expression) of each Skill. Upon finding the first match, execute the action replacement and stop subsequent matching (first-match principle to avoid conflicting replacements). Only Skill replacements with confidence ≥ 0.3 are executed; those with confidence below 0.3 are skipped to prevent low-confidence rules from introducing false corrections.

[0075] Skill Conflict and Deduplication Rules: When S803 generates a new skill, if a skill with the same pattern already exists in L3, compare the actions of the new skill and the existing skill. If they match, only update the confidence (taking the larger value) and hit_count, without adding a duplicate. If they don't match (conflict), retain the skill with the higher confidence. If their confidences are similar (difference < 0.1), retain the skill with the higher hit_count. This ensures that there is always only one skill with the same pattern in L3.

[0076] Skill confidence iteration rule: After each skill match, if the replacement result is recognized by subsequent slots or manually confirmed and adopted, confidence increases by 0.1 (maximum 1.0) and hit_count increases by 1; if the replacement result is rejected by subsequent steps (such as API validation failure or manual correction back to the original value), confidence decreases by 0.1 (minimum 0.1). This iteration mechanism prioritizes high-quality skills whose confidence continues to rise, while low-quality skills whose confidence continues to decline are eventually skipped.

[0077] Skill elimination rules: In the S800 self-evolution closed loop, elimination checks are performed on all Skills in L3: (1) Skills with confidence ≤ 0.1 and hit_count = 0 are directly deleted (never hit and lowest confidence); (2) Skills that have not hit for 30 consecutive days (last_used exceeds 30 days) and confidence < 0.5 are deleted (outdated and low-quality rules); (3) Skills with confidence ≤ 0.1 and the most recent hit result is a failure are deleted (verified as erroneous rules). After elimination, the total number of Skills in L3 can be controlled at the level of several hundred, ensuring millisecond-level latency of the matching engine.

[0078] Adaptive adjustment of intent routing rules: Maintenance strategy for the high-frequency intent set HS: The initial HS is defined by business experts. S800 calculates the vector recall hit rate (the proportion of vector recalls not corrected by LLM) for each intent_i. If an intent is corrected by LLM for N consecutive (N≥5) vector recalls, it is removed from the HS; conversely, if a non-HS intent is confirmed consistent by LLM after N consecutive vector recalls, it is added to the HS. This mechanism enables dynamic optimization of intent routing rules as they are used, reducing unnecessary LLM calls.

[0079] Skills are gradually accumulated through the following three methods: (1) Seed rules from business experts: High-frequency error correction patterns are compiled by telecom customer service experts based on historical ASR transcription error logs and written as Skill JSON records for direct import. For example, the top 50 high-frequency transcription errors of ASR are counted from the call records of customer service number 10000 over the past year. Each error corresponds to a seed Skill, and the initial confidence is set to 0.8; (2) Automatic mining of historical logs: The ASR transcription text and the manually corrected text are compared with the historical customer service dialogue logs. The difference pairs are automatically extracted as Skill candidates and filtered by the confidence threshold before being stored in the database; (3) Automatic generation during S803 runtime: After each service is completed (S800), the Agent automatically generates the new error correction patterns or slot filling strategies discovered this time as Skill records and writes them to L3. Skills from the three sources are uniformly stored in persistent key-value storage, indexed by scene_tag, and the Agent loads them by scene_tag. In some specific implementations, the flow boundary of the three-layer slot verification system is as follows: First layer – L3 skill self-correction (S602): Performs Skill regular expression matching and replacement on the ASR transcribed text and each round of user replies, only executing Skills with confidence ≥ 0.3. The corrected text is then passed to the second layer. If no matching Skill is found, it is directly passed to the second layer.

[0080] The second layer—API automatic verification (S606): For each slot value identified by the LLM, if the slot is bound to an MCP verification tool (such as ID card number verification API, broadband account status query API) in plan.tool_bindings, the Agent will automatically call the verification; if no verification tool is bound, the slot will skip API verification and be directly marked as NO_API_TOOL. API calls have a timeout limit (5 seconds); a timeout is considered verification unavailable and marked as API_TIMEOUT.

[0081] The third layer – manual intervention (S607): Manual intervention is triggered only in the following situations: (1) API verification fails (status=API_REJECTED); (2) no verification tool or verification times out (status=NO_API_TOOL or API_TIMEOUT) and LLM recognition confidence < 0.8; (3) the agent actively requests correction. In other cases (L2 pre-filled + verification passed, LLM recognition + verification passed), the process is directly adopted or pushed to the agent for confirmation, without the need for manual judgment.

[0082] Reverse optimization of manually corrected data: After the agent corrects the slot value in S607, the value before correction and the value after correction are recorded in manual_corrections. The S800 closed loop updates the confidence of the corresponding Skill (if the replacement result of the Skill error correction is overturned, the confidence of the Skill is reduced by 0.1) and L2 user profile (updating the pre-filled default value with the corrected value) in reverse according to the correction content.

[0083] In some specific implementations, the self-evolving agent closed-loop architecture: the "the more you use, the more accurate" implementation process of Skill evolution and intention routing adaptive adjustment: One of the core innovations of this invention lies in constructing a complete self-evolving closed-loop architecture, enabling the system to become "more accurate with use" through Skill evolution and adaptive adjustment of intent routing during continuous use. This closed-loop architecture consists of the following three evolutionary engines: (a) Skill Evolution Engine: The Skill evolution engine manages the entire lifecycle of error correction rules, comprising four stages: "generation, verification, iteration, and elimination," forming a complete self-evolutionary closed loop. 1. Skill Generation Phase: Skills are generated from three sources: business expert seed rules (initial confidence = 0.8), automatic mining from historical logs (initial confidence = 0.5), and automatic generation during S803 runtime (initial confidence = 0.5). When a new skill is generated, the system first checks if a skill with the same pattern exists in L3. If it exists and the action is the same, only the confidence and hit_count are updated; if it exists but the action is inconsistent, conflict resolution is triggered (the one with higher confidence is retained), ensuring that only one skill with the same pattern is always retained.

[0084] 2. Skill Verification Phase: After the generated Skill is triggered for matching in the actual service, the system automatically tracks the fate of the Skill's replacement result in subsequent stages. If the replaced text is correctly recognized as a slot value by the LLM and passes API verification or manual confirmation, the Skill is considered to have successfully matched the Slot; if the replaced text is rejected by API verification or manually corrected back to its original value, the Skill is considered to have failed to match the Slot. The verification result is recorded in the Skill's execution log in real time.

[0085] 3. Skill Iteration Phase: Based on the results of the verification phase, the system dynamically iterates and adjusts the confidence of the skill—for a successful hit, confidence is increased by 0.1 (maximum 1.0), hit_count is increased by 1, and the last_used timestamp is updated; for a failed hit, confidence is decreased by 0.1 (minimum 0.1). This iterative mechanism ensures that the confidence of high-quality skills continuously increases, gaining higher priority in the matching engine; the confidence of low-quality skills continuously decreases, eventually ceasing to be executed because confidence < 0.3. "Increasing accuracy with use" is reflected in the fact that as the number of services increases, the priority of high-quality error correction rules continuously rises, low-quality rules are naturally suppressed, and the system's error correction accuracy for the same type of ASR error shows an increasing trend.

[0086] 4. Skill Elimination Phase: During each S800 self-evolution closed-loop execution, the system performs an elimination check on all skills in L3. Three elimination rules are executed in parallel: direct deletion of skills with confidence <= 0.1 and hit_count = 0 (invalid rules that have never been hit); deletion of skills that have not been hit for 30 consecutive days and confidence < 0.5 (outdated rules); and deletion of skills with confidence <= 0.1 and a recent failed hit (verified erroneous rules). The elimination mechanism ensures that only verified high-quality skills are always retained in L3, and the matching engine latency is controlled within milliseconds.

[0087] (ii) Intent-based adaptive routing engine: The intent routing adaptive engine manages the dynamic optimization of the dual-path routing strategy (vector direct path vs. LLM corrected path) for intent recognition, achieving "better accuracy with use": 1. Routing strategy initialization: The system is initially defined by business experts as a set of high-frequency intents HS. When the vector recall confidence sim_max>=threshold theta (default 0.7), the intents in HS directly use the vector results (skipping LLM calls, fast path). Non-HS intents or low-confidence scenarios need to be confirmed by LLM twice (precise path).

[0088] 2. Route Hit Rate Statistics: In the S800 self-evolutionary closed loop, the system calculates the vector recall hit rate for each intent_i—that is, the proportion of vector recall results that are consistent with LLM confirmation. Hit rate = (number of times the vector recall result is consistent with the LLM confirmation result) / (total number of times the intent is recalled by vector).

[0089] 3. Dynamic Adjustment of Routing Rules: Dynamic evaluation is performed on each intent. If an intent in a HS is corrected by LLM for N consecutive vector recalls (N>=5) (the vector recall result is inconsistent with the LLM result), it indicates that the vector recall of that intent is not reliable enough, and it is removed from the HS. Subsequent attempts by this intent must go through the LLM confirmation path. Conversely, if a non-HS intent is consistently confirmed by LLM after N consecutive vector recalls, it indicates that the vector recall of this intent is reliable enough, and it is added to the HS. Subsequent attempts by this intent can directly use the vector result, skipping LLM calls. "Increasingly accurate with use" is reflected in the fact that, with accumulated use, the HS set gradually converges to a subset of intents that the vector model is truly good at recognizing, the accuracy and efficiency of intent recognition improve simultaneously, and unnecessary LLM calls are continuously reduced.

[0090] 4. Adaptive Feedback Loop: The results of routing rule adjustments have a reverse impact on system performance. After an intention to move out of the HS and take the LLM path is changed, if the LLM recognition accuracy of the intention remains low, the system will mark the intention as a "high-risk intention" in the S802 experience evaluation, triggering knowledge base expansion (S200 adds more training samples), forming a two-level optimization closed loop of "routing adjustment -> performance feedback -> knowledge base expansion".

[0091] (III) User Profile Evolution Engine: The user profile evolution engine manages the accumulation and pre-filling optimization of L2 user profiles, serving as the third dimension of "becoming more accurate with use": 1. Profile Accumulation: After each service is completed (S804), the system overwrites the historical values ​​in L2 with the slot values ​​confirmed by the user in this service. As the number of services increases, L2 gradually accumulates the user's high-frequency intent preferences and frequently used slot values ​​(such as frequently used broadband accounts, frequently used payment amounts, etc.).

[0092] 2. Improved pre-filling hit rate: The actual effect of the L2 pre-filling mechanism in S601 increases with the richness of the profile - the pre-filling hit rate is low in the early stage of the profile (there is little profile data), and the hit rate continues to rise as the service accumulates. The "the more you use it, the more accurate it becomes" is reflected in the fact that the pre-filled slots directly skip the query process, reducing the number of interaction rounds.

[0093] 3. Pre-fill conflict resolution: When the L2 pre-filled value is inconsistent with the user's real-time response, the real-time response shall prevail and L2 shall be updated (S804) to ensure that the profile data always reflects the user's latest status and avoid outdated pre-filled values ​​from interfering with the service process.

[0094] The three evolution engines work together to form the core of the self-evolving agent closed-loop architecture: the Skill evolution engine improves "error correction accuracy", the intent routing adaptive engine improves "intent recognition accuracy and efficiency", and the user profile evolution engine improves "slot pre-filling hit rate". All three take the S800 self-evolving closed-loop node as the unified scheduling entry point and are automatically triggered to execute after each service is completed without manual intervention, enabling the system to achieve multi-dimensional continuous optimization during continuous use.

[0095] In some specific application scenarios, the technical solution of this invention can be implemented through the following process: S000: User calls in with voice messages. The ASR model is used to transcribe the voice messages into text, triggering Agent initialization. The specific steps are as follows: S001: The system receives one voice call from the user; S002: Use the open-source ASR model to transcribe speech x1 into text x2; S003: Trigger Agent initialization, load the current user's L2 user profile P from the hierarchical memory system. u =φ(user_id), if user_id is not found, initialize an empty image P. u = The information covered includes high-frequency intent information and historical slot value information; S004: Load the general ASR error correction rule set S={s1,s2,...,s} from the L3 skill sedimentation layer. k}; S005: Agent master control loop startup.

[0096] S100: Intent recognition is performed using the open-source BGE vector matching model. The detailed steps are as follows: S101: Receive 2 x user texts that have been transcribed; S102: Input the text into the open-source BGE vector model for encoding and vectorization, and use the encoding result as the output of the vector model e2=BGE(x2); S103: Combine the encoding e2 of the current text with the encoding e of each text in the recall knowledge base. i Calculate the cosine similarity score sim(e2,e) i )=e2·e i / (‖e2‖·‖e i ||); S104: Take the intent corresponding to the top 1 text with the highest similarity as the output intent_match of the matching model; S200: The recall knowledge base in S100 needs to be pre-configured in the system. The detailed steps are as follows: S201: Organize all data, with the data format being (text, intent), where text is the text and intent is the intent corresponding to that text; S202: Encode the text in each data entry using the open-source BGE vector matching model; S203: Save the vectorized text and its corresponding original intent as the recall knowledge base KB={(e i intent i )}; S300: Intent Decision-Making and Proactive Intent Planning, the specific steps are as follows: S301: Determine if intent_match belongs to the high-frequency intent set HS and sim_max ≥ θ (θ is the similarity threshold, default 0.7). If the condition is met, use intent_match as the current intent intent_curr and execute S306; S302: If condition S301 is not met, input x2 and the list of all candidate intents (labels) into LLM for intent recognition: Prompt_intent={task, x2, labels}, task="Please perform semantic understanding on the following text and output the intent that is closest to the text.", intent_curr=LLM(Prompt_intent); S303: Related Intent Prediction (Proactive Planning): Input intent_curr, x2, and L2 user profile P_pic into LLM, and output a list of related intents intent_pred=LLM(Prompt_pred), Prompt_pred="task_pred, intent_curr, x2, P_pic", task_pred="Given the user's current intent and profile, predict two related intents that the user may need in the future"; S304: The agent proactively queries the user's current service status: It uses the MCP Client to call the `query_user_status` tool of the MCP Server in the telecommunications business support system, passing in the `user_id`, and obtains `ctx_user = MCP_call(query_user_status, user_id)`. `ctx_user` contains: the name and price of the activated service package, unclosed service tickets from the past 30 days, and reminders of outstanding payments or contract expiration. For example, `ctx_user = "User package = Tianyi Enjoy 129, broadband repair service tickets from last month not closed, no outstanding payments". This information is used for subsequent solution generation to avoid repeated inquiries or recommendations for already subscribed services; S305: Load business-related slot filling strategies (scene_tag=intent_curr) from L3 by intent_curr, supplementing the general error correction rules already loaded in S004; S306: After intent recognition is completed, the service scheme orchestration stage begins.

[0097] S400: Dynamic service orchestration based on the MCP protocol, detailed steps are as follows: S401: The agent queries the customer service knowledge base MCP Server via the MCP Client for the standard service plan corresponding to intent_curr. If it exists, it retrieves steps and slot_schema; S402: If found, push detailed service plan process information to the agent. If the current business processing requires certain slot information, push these unfilled slots together and start executing S501. The agent needs to first ask the user to complete the slot filling before processing the business according to the service plan process; S403: If no results are found, input x2, intent_curr and ctx_user found in S307 into the open source model to generate a service solution. S404: Input prompt for the large model, constructed as: Prompt_plan={task, x2, intent_curr, ctx_user}, where task is the task description: "You are a business expert for an operator, possessing excellent solution generation capabilities. Given a user request text, the user's request intent, and the user's current business status, please generate a solution that addresses the customer's request. Please concisely output the solution's flow. If the solution lacks certain information, please output this information, which needs to be confirmed with the user, along with the solution." S405: Use the Prompt_plan prepared in S404 to generate a solution using a large model: plan_raw=LLM(Prompt_plan), LLM uses TeleChat3-36B-Thinking, and uses NVIDIA A100 Tensor Core GPU for inference; S406: Scheme Verification and Tool Binding: The Agent matches each step in plan_raw with available tools in the MCP tool registry, binds the corresponding MCP tool call to each step, and generates an executable service scheme plan={steps, slot_schema, tool_bindings}. S407: Push the plan to the agent and begin executing S501. The agent needs to first ask the user to complete the data entry before processing the business according to the service plan process.

[0098] S500: Determine whether it is necessary to ask the user for feedback on slot filling. Detailed steps are as follows: S501: Determine if there are any unfilled slots in the output plan of S400, i.e., slot_schema ≠ ; S502: If there are slots to be filled, then execute S601; S503: If there are no slots to be filled, then execute S701; S600: Intelligent slot filling based on hierarchical memory, the specific steps are as follows: S601: L2 Prefilling: Iterate through each unfilled slot_i in slot_schema and query historical values ​​in the L2 user profile. If a value exists, prefill slot_i.value=P_pic[slot_i.name] and mark slot_i.source=L2_PRE_FILL; if the user's subsequent real-time response differs from the prefilled value, the real-time response shall prevail and overwrite the prefilled value. S602: L3 Skill Self-Correction: For ASR transcribed text and user responses in each round, the application has loaded the Skill set (only Skills with confidence ≥ 0.3 are executed, and the first and last skills are matched in descending order of confidence), and regular expression replacement preprocessing is performed; S603: The agent asks the user for slot information and inputs the current dialogue text d_curr and slot_schema into the LLM for slot identification; S604: Prompt_slot = {task, d_curr, slot_schema}, task = "Please identify and output the information in the following text." S605: slot_values=LLM(Prompt_slot); S606: Automatic API Validation: For each slot_i.value, if an MCP validation tool is bound, it will be automatically invoked, with a 5-second timeout. PASS → VERIFIED, FAIL → API_REJECTED, Timeout → API_TIMEOUT, No validation tool → NO_API_TOOL S607: Integrated Decision Making and Manual Intervention: (1) L2_PRE_FILL + VERIFIED → Direct Adoption; (2) LLM Identification + VERIFIED → Push to Agent for Confirmation; (3) API_REJECTED / API_TIMEOUT + LLM Low Confidence / NO_API_TOOL + LLM Low Confidence → Push to Manual Judgment. After the agent makes the correction, mark it as MANUAL_CONFIRMED, and record the correction data in manual_corrections; S608: If the slot information is complete, collect the next slot; otherwise, continue with S602-S607. A single slot can be queried a maximum of 3 times; exceeding this limit will trigger the UNFILLED flag. After all slots have been collected, execute S700.

[0099] S700: Process business according to the service plan process pushed by S400 and the slot information collected by S600. The detailed steps are as follows: S701: The Agent executes each step sequentially according to the order of steps in the plan. For each step_j, the MCP tool bound in S406 is called, and the collected slot values ​​are passed in to perform the business operation: result = MCP_call(tool_j, slot_values); S702: If all steps of the service plan are executed successfully, the current service ends and S800 is executed. S703: If a step fails, the Agent will report the failure information to the agent, who can choose to: (1) correct the slot value and retry the step; (2) skip the step and continue the subsequent process; or (3) terminate the entire service plan.

[0100] S800: Self-evolutionary closed loop: experience accumulation and skill generation, detailed steps are as follows: S801: After the service is completed, the Agent writes the complete service trace T={intent_curr, slot_values,api_results, manual_corrections, exec_result} into the L0 session memory; S802: Experience evaluation - (1) L2 pre-filling successfully reduces the number of query rounds of slots; (2) L3 Skill error correction hits the slot with the actual error (after replacement, LLM is correctly identified → confidence + 0.1, after replacement, it is manually corrected back to the original value → confidence - 0.1); (3) Error identification intercepted by API verification; (4) Manual intervention and correction content, and reverse update of the confidence of the corresponding Skill; S803: Skill Evolution - (1) Addition: When a new reusable pattern is discovered and there is no Skill with the same pattern in L3, a new Skill is generated and written to L3 with an initial confidence of 0.5; (2) Deduplication: When a new Skill with the same pattern conflicts with an existing Skill, the one with higher confidence is retained. If the difference is <0.1, the one with higher hit_count is retained; (3) Elimination: Skills with confidence ≤0.1 and hit_count =0 are directly deleted. Skills that have not been hit for 30 consecutive days and have confidence <0.5 are deleted. Skills that have recently failed to hit and have confidence ≤0.1 are deleted. S804: Adaptive Intent Routing Rules: Calculate the vector recall hit rate of each intent. Intents that are corrected by LLM in N consecutive vector recalls (N≥5) are removed from HS. Non-HS intents that are confirmed by LLM in N consecutive vector recalls are added to HS. S805: User profile update: Overwrite the historical value in L2 with the slot value confirmed by the user in this service; S806: L1 slot memory is cleared after archiving, while L0 session memory is retained for offline analysis.

[0101] In summary, the core of this invention lies in integrating the self-evolving agent closed-loop architecture with a hierarchical memory system to construct a complete intelligent customer service slot filling process of "trigger-identification-decision-orchestration-filling-processing-learning", so as to achieve the system becoming "more accurate with use" as it is continuously used.

[0102] Specifically, the overall process of the technical solution of this invention is summarized as follows: After a user calls in (S000), the system triggers Agent initialization and loads hierarchical memory (L2 user profile, L3 skill accumulation); then it enters the intent recognition stage (S100), quickly matching intents through BGE vector recall; after intent recognition is completed, it enters the intent decision and proactive planning stage (S300), determining the current intent, predicting related intents, querying the user's business status, and loading business skills in a targeted manner; then it enters the service plan orchestration stage (S400), dynamically orchestrating service plans and binding execution tools through the MCP protocol; after the plan is determined, it enters the slot filling stage (S600), using hierarchical memory to perform three-layer verification: pre-filling, skill error correction, LLM recognition, API verification, and manual backup; after slot collection is completed, business processing is executed (S700); finally, it enters the self-evolution closed loop (S800), accumulating the experience of this service, evolving skills, adjusting intent routing, and updating the user profile. The entire process is executed sequentially in the same service, and the context is passed between each stage through the state dictionary (state) of the Agent master control loop.

[0103] The core mechanism of the self-evolutionary closed loop: The S800 self-evolutionary closed loop is the "evolutionary engine" of the entire process, which includes three parallel evolutionary subsystems: (1) Skill evolution engine: manages the entire life cycle of error correction rules through four stages: "generation-verification-iteration-elimination". The confidence of high-quality skills continues to rise and obtain higher priority, while low-quality skills are naturally suppressed and eliminated, so that the error correction accuracy increases with use; (2) Intent routing adaptive engine: dynamically adjusts the high-frequency intent set HS by statistically analyzing the vector recall hit rate of each intent, keeping the intents that the vector model is really good at recognizing in the fast path, and switching unreliable intents to the LLM confirmation path, so that the accuracy and efficiency of intent recognition are improved simultaneously; (3) User profile evolution engine: gradually enriches L2 profile data with service accumulation, the prefill hit rate continues to rise, and the number of interaction rounds is reduced. The three subsystems are automatically triggered after each service with S800 as the unified scheduling entry point, without manual intervention.

[0104] The synergistic relationship between self-evolving closed loop and hierarchical memory: Hierarchical memory provides the data foundation for self-evolving closed loop—L2 user profiles are the data source for the profile evolution engine, L3 skill accumulation is the rule storage for the skill evolution engine, and L0 session memory is the data source for experience evaluation; the self-evolving closed loop nodes (S802-S805) update L2 (S805 updates profiles), L3 (S803 evolves skills), and HS sets (S804 adjusts routes) in reverse, forming a bidirectional data flow of "memory drives machine execution -> execution feedback drives memory evolution". The definition of hierarchical memory ensures that the data at each layer is isolated and does not become contaminated, and the definition of self-evolving closed loop ensures that the evolution process is orderly and controllable. The synergy between the two enables the system to continuously optimize in multiple dimensions during continuous use.

[0105] Compared with the prior art, the present invention has at least the following beneficial effects: (1) The system accuracy continuously improves with the use time - the accuracy of Skill error correction, the accuracy of intent recognition, and the slot prefilling hit rate all show an increasing trend, fundamentally solving the defect of "the system accuracy does not improve with the use time" in traditional linear pipelines; (2) The interaction efficiency is continuously optimized - the L2 prefilling hit rate is improved to reduce the number of query rounds, the HS set optimization reduces unnecessary LLM calls, and the overall service time decreases with use; (3) The system has adaptive capability - it can adapt to new ASR error patterns, new intent distribution changes and user preference migrations without manual intervention.

[0106] In light of the shortcomings of existing technologies, the present invention specifically implements the following technical means: 1. Trigger Agent initialization (S000): Key Technical Points: After a user calls in with voice, the system performs ASR transcription (S001-S002), subsequently triggering Agent initialization (S003-S005). The core of Agent initialization lies in loading two types of key data from the hierarchical memory system: L2 user profile (S003, indexed by user_id, containing high-frequency intent preferences and historical slot values) and L3 general skill set (S004, general ASR error correction rules). If the user_id is not matched, an empty profile is initialized to ensure normal service for new users. After loading is complete, the Agent master loop is started (S005), entering the "observation-thinking-action" loop mode.

[0107] Beneficial effects: During the Agent initialization phase, historical service experience (user profiles and error correction rules) is injected into the current service, so that each service does not start from scratch, but is based on the prior knowledge accumulated in history, laying a data foundation for subsequent pre-filling to reduce queries (L2) and automatic error correction (L3).

[0108] 2. Intent recognition (S100-S200): Key technical points: The module employs a BGE vector model for intent retrieval (S100). User text is encoded and its cosine similarity is calculated against a pre-built intent knowledge base (S200). The top-ranked match is selected. The intent knowledge base needs to be pre-built (S201-S203), involving the organization and encoding of all (text, intent) data. The module's design emphasizes the speed of vector retrieval (millisecond-level), while the accuracy of intent recognition is ensured by the LLM correction path in stage S300.

[0109] Beneficial effects: The vector model provides efficient initial intent recall. S804's intent routing adaptive engine dynamically adjusts which intents can be directly used with vector results (added to HS) and which need secondary confirmation by LLM (removed from HS) based on hit rate statistics, so that intent recognition achieves a dynamic balance between accuracy and efficiency, and is continuously optimized with use.

[0110] 3. Intent Decision Making and Proactive Intent Planning (S300): Key technical points: Intent decision-making employs a dual-path mechanism—for high-frequency intents in the HS and where sim_max >= the threshold theta, the vector result is directly used (S301, fast path); otherwise, it is input into LLM for precise identification (S302, precise path). After the intent is determined, proactive planning is executed: S303 predicts related intents (combining the current intent and user profile, predicting two possible subsequent related intents), S304 proactively queries the user's service status (using MCP to call query_user_status to obtain activated packages, unclosed work orders, overdue payment reminders, etc.), and S305 loads service-related skills according to the current intent.

[0111] Beneficial effects: (1) The dual-path routing mechanism combined with S804 adaptive adjustment maximizes efficiency while ensuring accuracy, and high-frequency reliable intent skips LLM calls; (2) Associated intent prediction enables the system to anticipate the user's possible subsequent needs and prepare for the service plan; (3) Actively querying the user's business status avoids repeated inquiries about already processed business and reduces invalid interactions; (4) Targeted loading of business skills enables the error correction rules to be accurately matched with the current business scenario.

[0112] 4. Service plan arrangement and execution (S400-S700): Key Technical Points: Service scheme orchestration is based on dynamic matching using the MCP protocol (S400) – for standard intents, existing solutions are retrieved from the knowledge base MCP Server (S401-S402); for non-standard intents, solutions are dynamically generated by LLM based on user requirements and business status (S403-S405). The generated solutions become executable solutions after being bound by the tool (S406-S407). Slot filling employs a three-layer validation system (S600) – L3 skill self-correction (S602, regular expression replacement preprocessing), automatic API validation (S606, MCP tool validates slot value validity), manual fallback (S607, triggered only when API fails or LLM has low confidence), and L2 pre-filling reduces query rounds (S601). Business processing sequentially calls the MCP tool according to the scheme steps (S700), allowing for retry, skipping, or termination upon failure.

[0113] Beneficial effects: (1) The MCP protocol encapsulates the backend business system into a plug-and-play tool, with Agent dynamic discovery and invocation. New business capabilities only require the deployment of a new Server without modifying the Agent logic, thus solving the defect of "the lack of standardized interaction channels between the service solution and the backend business system"; (2) The three-layer slot verification system defines clear flow boundaries - L3 only performs Skill replacement for confidence>=0.3, API verification is set to a 5-second timeout, and manual intervention is only triggered under specific conditions. The hierarchy is clear and the responsibilities are distinct, thus solving the defect of "insufficient noise resistance of slot filling"; (3) Manual correction of data reverses the optimization of Skill and user profile, so that the three-layer verification system and the S800 self-evolution closed loop form a closed loop linkage, and manual error correction experience is automatically precipitated into system capabilities.

[0114] like Figure 5 As shown, this embodiment of the invention also provides an intelligent customer service processing device 900, which can implement the above-described method. This device may include: The object call module 901 is used to acquire the incoming voice of the target object, transcribe it into user text through the language recognition module, and call the intelligent agent to load the target profile and general error correction rules; The data loading module 902 is used to obtain the current intent based on the user text through intent recognition, and to load the business error correction rules corresponding to the current intent from the general error correction rules. The scheme orchestration module 903 is used to orchestrate service schemes based on the current intent to obtain executable service schemes; wherein, the executable service scheme includes a list of steps, slot definitions, and tool binding relationships; The slot filling module 904 is used to obtain a set of slot values ​​by slot filling if the slots in the executable service scheme are defined as non-empty. The business processing module 905 is used to call the model context protocol tools bound in the tool binding relationship step by step to execute business processing based on the step list and slot value set; The memory update module 906 is used to update the hierarchical memory of the intelligent agent in response to the execution result of the business process.

[0115] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0116] This invention also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method described above. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0117] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0118] like Figure 6 As shown, Figure 6 The hardware structure of an electronic device 1000 according to another embodiment is illustrated. The electronic device 1000 includes: The processor 1001 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (aSIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention. The memory 1002 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RaM). The memory 1002 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1002 and is called and executed by the processor 1001. Input / output interface 1003 is used to implement information input and output; The communication interface 1004 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 1005 transmits information between various components of the device (e.g., processor 1001, memory 1002, input / output interface 1003, and communication interface 1004); The processor 1001, memory 1002, input / output interface 1003 and communication interface 1004 are connected to each other within the device via bus 1005.

[0119] The electronic device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0120] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0121] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0122] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0123] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0124] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0125] The intelligent customer service business processing method, device, electronic device, storage medium, and program product provided in this invention obtain the incoming voice of the target object, transcribe it into user text through a speech recognition module, and call the intelligent agent to load the target profile and general error correction rules; based on the user text, obtain the current intent through intent recognition, and load the business error correction rules corresponding to the current intent from the general error correction rules; arrange service schemes based on the current intent to obtain an executable service scheme; wherein, the executable service scheme includes a step list, slot definitions, and tool binding relationships; if the slot definitions in the executable service scheme are not empty, obtain a slot value set through slot filling; according to the step list and slot value set, call the model context protocol tools bound in the tool binding relationship step by step to execute the business processing; and update the hierarchical memory of the intelligent agent in response to the execution result of the business processing. This invention acquires the incoming voice of the target object and transcribes it into user text. It then invokes an intelligent agent to load the target profile and general error correction rules, ensuring that each service is based on prior knowledge and avoiding starting from scratch. Based on the user text, it performs intent recognition to obtain the current intent and loads the corresponding business error correction rules from the general error correction rules, ensuring accurate matching between the error correction rules and the current business scenario. Based on the current intent, it orchestrates service solutions to obtain executable service solutions containing a list of steps, slot definitions, and tool binding relationships. It standardizes and associates the service solutions with backend model context protocol tools, improving the executability of the solutions. When slot definitions are not empty, it fills slots to obtain a set of slot values, providing structured input for business processing. It calls the bound tools step-by-step according to the list of steps and the set of slot values ​​to automate business processing. Finally, it updates the hierarchical memory of the intelligent agent in response to the execution results, forming an execution-learning closed loop, enabling continuous optimization of the system with use.

[0126] The embodiments described in this invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of this invention, and do not constitute a limitation on the technical solutions provided by the embodiments of this invention. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this invention are also applicable to similar technical problems.

[0127] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present invention, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0128] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0129] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0130] The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and spirit of the present invention should be within the scope of the claims of the present invention.

Claims

1. A method for processing intelligent customer service transactions, characterized in that, The method includes the following steps: The system acquires the incoming voice of the target object, transcribes it into user text using the speech recognition module, and then calls the intelligent agent to load the target profile and general error correction rules. Based on the user text, the current intent is obtained through intent recognition, and the business error correction rule corresponding to the current intent is loaded from the general error correction rule; Based on the current intent, service solutions are orchestrated to obtain executable service solutions; wherein, the executable service solutions include a list of steps, slot definitions, and tool binding relationships; If the slot in the executable service scheme is defined as non-empty, the slot value set is obtained by slot filling; Based on the list of steps and the set of slot values, the model context protocol tools bound in the tool binding relationship are called step by step to perform business processing; In response to the execution result of the business transaction, the hierarchical memory of the agent is updated.

2. The method according to claim 1, characterized in that, The hierarchical memory includes conversation memory, slot memory, user profile, and skill accumulation. The incoming voice carries the user identifier of the target object. The process of calling the intelligent agent to load the target profile and general error correction rules includes the following steps: The intelligent agent loads the target profile of the target object from the user profile in the hierarchical memory based on the user identifier; If the user identifier does not match any user profile in the user profile, an empty profile is initialized as the target profile. The general error correction rules are loaded from the skill set stored in hierarchical memory. The general error correction rules include the matching mode, replacement action, rule type, scene label, confidence level, hit count, recent usage time, and creation time for each skill.

3. The method according to claim 1, characterized in that, The process of obtaining the current intent based on the user text through intent recognition, and then selectively loading the business error correction rule corresponding to the current intent from the general error correction rules, includes the following steps: The user text is encoded using a general vector coding model to obtain a text vector; Based on the text vector, traverse each text code in the preset recall knowledge base to obtain the cosine similarity between the text vector and each text code; The recall knowledge base is obtained by organizing the full text encoding of various intent data. Each text encoding in the recall knowledge base is associated with an intent type. The text encoding is pre-divided into a high-frequency intent set or a low-frequency intent set based on the intent type. The text encoding corresponding to the highest cosine similarity is taken as the intent matching result; If the intent matching result belongs to the high-frequency intent set and the cosine similarity of the intent matching result is not less than the similarity threshold, the intent type corresponding to the intent matching result is taken as the current intent; otherwise, the user text and the candidate intent list composed of all intent types are input into a preset large language model for intent recognition to obtain the current intent. The result of intent recognition also includes a predicted intent list and a current business status. The predicted intent list is obtained by driving the preset large language model to process based on the current intent, the user text, and the target profile. The current business status is obtained by calling a preset query user status tool index based on the user identifier carried by the incoming voice. The current intent is used as a scene label, and the corresponding business error correction rule is loaded from the general error correction rule. The business error correction rules are used to update the skill accumulation in the hierarchical memory of the intelligent agent.

4. The method according to claim 1, characterized in that, The result of intent recognition also includes the current business status. The process of orchestrating service plans based on the current intent to obtain an executable service plan includes the following steps: The client queries the customer service knowledge base model context protocol server for the standard service plan corresponding to the current intent through the model context protocol client. If the standard service plan is not empty, extract the step list and the slot definition from the standard service plan; If the standard service scheme is empty, an original service scheme including the step list and the slot definition is generated based on the user text, the current intent and the current business state context driven by the preset large language model. The agent matches each step in the step list of the standard service scheme or the original service scheme with the available tools in the Model Context Protocol Tool Registry. Based on the matching results, the agent binds the corresponding Model Context Protocol tool to each step in the step list to determine the tool binding relationship. The executable service solution is obtained by summarizing the list of steps, the slot definition, and the tool binding relationship.

5. The method according to claim 1, characterized in that, The hierarchical memory includes conversation memory, slot memory, user profiles, and skill accumulation. The process of obtaining a slot value set through slot filling includes the following steps: The first unfilled slot defined in the slot definition is taken as the candidate slot; Query the historical values ​​of the candidate slots in the user profile; If the candidate slot has a historical value in the user profile, the slot value of the candidate slot is pre-filled using the historical value, and the slot source of the candidate slot is marked as user profile pre-filling; Obtain the response value of the target object to the candidate slot; If the response value is different from the historical value, the response value is used to overwrite the slot value of the candidate slot and the corresponding historical value in the user profile, and the slot source of the candidate slot is marked as a response confirmation; If the candidate slot does not have a historical value in the user profile and the response value is empty, mark the slot source of the candidate slot as unfilled; The next unfilled slot defined by the slot is taken as the candidate slot, and the step of querying the historical value of the candidate slot in the user profile is returned to execute until all unfilled slots defined by the slot are traversed to obtain the initial slot set. Based on the tool binding relationship, the model context protocol verification tool is invoked to verify the slots in the initial slot set that have the slot value, and the slot status of each slot is obtained. For slots whose status is not "verified passed", the slot value of the corresponding slot is updated by calling a preset large language model or in response to manual intervention. Then, the slot value set is obtained by combining the slot values ​​whose status is "verified passed".

6. The method according to claim 1, characterized in that, The step of calling the model context protocol tool bound in the tool binding relationship to perform business processing step by step according to the step list and the slot value set includes the following steps: The first step in the list of steps is selected as a candidate step. The agent invokes the model context protocol tool corresponding to the candidate step based on the tool binding relationship. Based on the model context protocol tool, the business operation is performed according to the slot value set to obtain the execution result of the candidate step; If the execution result is successful, the next step in the step list is taken as the candidate step, and the execution of the step of calling the model context protocol tool corresponding to the candidate step through the agent based on the tool binding relationship is returned. If the execution result is an execution failure, the failure information of the candidate step is fed back to the agent through the intelligent agent to obtain the agent's response and processing solution; wherein, the processing solution includes retrying the step, skipping the step, or terminating the entire service solution; If the processing solution is to retry this step, update the slot value set based on the slot correction value carried by the processing solution, and return to the step of executing the business operation based on the model context protocol tool according to the slot value set; If the processing solution is to skip this step, the next step in the step list is taken as the candidate step, and the process returns to the step of calling the model context protocol tool corresponding to the candidate step through the agent based on the tool binding relationship; If the proposed solution is to terminate the entire service plan, then the business processing in the list of steps will be terminated.

7. The method according to claim 1, characterized in that, The slot value set corresponds to each slot being marked with a slot source and slot status. The hierarchical memory includes session memory, slot memory, user profile, and skill accumulation. The hierarchical memory of the agent is updated in response to the execution result of the business transaction, including the following steps: The service trajectory corresponding to the business processing is written into the session memory; wherein, the service trajectory includes the current intent, the slot value set, the interface call result, the manual correction record, and the execution result; Based on the slot source and the slot status, update the technical confidence level of each slot corresponding to each skill in the skill accumulation according to the general error correction rule of each slot; The intent types in the preset intent set are updated based on the historical statistical results of the intent recognition. After archiving the data in the slot memory, clear it, and retain the data in the session memory as offline analysis data.

8. An intelligent customer service processing device, characterized in that, The device includes: The target call module is used to acquire the incoming voice of the target object, transcribe it into user text through the language recognition module, and call the intelligent agent to load the target profile and general error correction rules; The data loading module is used to obtain the current intent based on the user text through intent recognition, and to load the business error correction rule corresponding to the current intent from the general error correction rule; The scheme orchestration module is used to orchestrate service schemes based on the current intent to obtain an executable service scheme; wherein, the executable service scheme includes a list of steps, slot definitions, and tool binding relationships; The slot filling module is used to obtain a set of slot values ​​by slot filling if the slot in the executable service scheme is defined as non-empty. The business processing module is used to call the model context protocol tool bound in the tool binding relationship step by step to perform business processing according to the step list and the slot value set; The memory update module is used to update the hierarchical memory of the agent in response to the execution result of the business process.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 7.