A conversational robot routing jump method, device, electronic device and medium

By setting routing nodes and enabling routing jump mechanisms in the conversation robot, the problems of customer correction and business scenario switching are solved, the robot intelligence and conversation experience are improved, and dynamic intent and parameter adjustment are realized.

CN114036277BActive Publication Date: 2024-08-23ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202111349380.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2024-08-23
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

Existing conversational robots are difficult to support customers in correcting previously confirmed problems, and cannot effectively switch between multiple business scenarios, resulting in AI robot chat interactions that are not intelligent enough and reduce user experience.

Method used

By pre-setting routing nodes and enabling routing jump mechanisms, including intention jumps and parameter jumps, corresponding operations are performed based on natural language processing results and preset parameters to achieve dynamic adjustment of intentions and parameters, and support customer corrections and business scenario switching. .

Benefits of technology

It realizes immediate change processing when customers correct previous intentions or parameters, improves robot intelligence and conversation experience, enhances the scalability of robot configuration, and supports multi-business scenario custom logic and scene switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036277B
    Figure CN114036277B
Patent Text Reader

Abstract

The present invention provides a conversational robot routing jump method, device, medium and terminal, the method comprising: presetting routing nodes and enabling routing jump mechanisms, including intention jump and parameter jump; obtaining a corpus to be processed and a target intention, executing intention jump at the current node, and jumping to the node or other robot pointed to by the next hop of the intention jump of the pre-configured current node through the next hop; when the next hop points to a node, through condition setting, executing intention jump or parameter jump at the node pointed to by the next hop, completing the corresponding operation or speech flow of the node pointed to by the next hop; when the next hop points to other robots, executing subsequent actions on the other robots according to the target intention; the present invention can immediately perform change processing when the customer corrects the previous intention or parameter, as well as robot switching in multiple business scenarios, so that the robot is more intelligent and more humanized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer applications, and in particular to a conversational robot routing jump method, device, electronic equipment and medium. Background Art

[0002] With the vigorous development of artificial intelligence, conversational robots have become common. They are usually equipped with natural language processing systems. When a question is thrown to the conversational robot, it will capture the input keywords, find the most appropriate answer from the database through algorithms, and make corresponding responses. Conversational robots can be connected to many organizations' applications, websites, and instant messaging platforms to simulate human conversations or chats.

[0003] However, humans have different ways of talking. Sometimes, they suddenly switch topics or correct what they said before. For example, when a sales robot is asking customers about their intentions, the customer suddenly says, "I was wrong before. My age is 38, not 40." In this case, how the conversational robot can make corrections and respond with corresponding words has become a difficult problem in the industry. At present, there is no good solution to this problem. It cannot support customers to correct answers to previously confirmed questions. Even in outbound call scenarios, it cannot support the switching of multiple business scenarios of the same robot, resulting in the AI ​​robot's lack of intelligence in chat interaction, which reduces the user experience. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a conversational robot routing jump method, device, medium and terminal to solve the above-mentioned technical problems.

[0005] The conversational robot routing jump method provided by the present invention comprises:

[0006] Pre-setting routing nodes and enabling routing jump mechanisms, wherein the enabling routing jump mechanisms include intention jumps for jumping according to natural language processing results and parameter jumps for executing speech flow according to preset parameters;

[0007] Obtain a corpus to be processed and a target intent of the corpus to be processed, execute the intent jump at the current node according to the target intent, and jump to the node or other robot pointed to by the next hop of the intent jump through the pre-configured next hop of the current node intent jump;

[0008] When the next hop points to a node, through conditional settings, the intention jump or parameter jump is performed at the node pointed to by the next hop, and the corresponding operation or speech flow of the node pointed to by the next hop is completed;

[0009] When the next jump points to another robot, subsequent actions are performed on the other robot according to the target intention.

[0010] In one embodiment of the present invention, before executing the intention jump, the method further includes:

[0011] When the target intent of the corpus to be processed changes, a new target intent is obtained, and the new target intent is matched with the original target intent for routing intent. If there is no match, the intent judgment process is exited and the original subsequent process is executed. If there is a match, the intent judgment process is entered. The intent judgment process includes:

[0012] According to the judgment condition pre-set for the route jump, judging whether the target intention enables re-semantic recognition;

[0013] If re-semantic recognition is enabled, the intent jump is performed according to the new target intent;

[0014] If re-semantic recognition is not enabled, the intent is copied or the node jump or robot jump is executed according to the original intent.

[0015] In one embodiment of the present invention, the intention determination process further includes:

[0016] If no judgment condition is set for the route jump in advance, it is directly judged whether the target intent enables re-semantic recognition;

[0017] The intent replication includes replicating the target intent of the current node as a replicated intent to other nodes, and the other nodes execute intent jump according to the replicated intent.

[0018] In one embodiment of the present invention, before executing the intention jump or parameter jump, the following steps are included:

[0019] Determine whether the current state is in the confirmation state. If the state is in the confirmation state, determine whether the current confirmation state is the confirmation state corresponding to the matching routing condition according to the instruction attribute;

[0020] If the confirmation status matches the routing condition, the confirmation reply judgment process is performed.

[0021] If the confirmation status does not match the routing condition, clear the confirmation status and then determine whether the current route needs to be confirmed;

[0022] If the current route needs to be reconfirmed, the confirmation status is processed and the pre-set actions or words in the confirmation status are executed;

[0023] If the current route does not need to be reconfirmed, the route jump is executed.

[0024] In one embodiment of the present invention, when the next hop of the current robot points to another robot:

[0025] Taking the other robot as a target robot to determine whether it is in the task;

[0026] If the target robot is in a task, clear the task stack in the session control;

[0027] If the target robot is not in the task, save the current robot's state, add it to the conversation control robot history list, and continue to determine whether the target robot exists in the list;

[0028] If the target robot exists in the list, the previous state of the target robot is loaded, and the subsequent process of the target robot is entered according to the target intention of the current robot;

[0029] If the target robot does not exist in the list, the target robot is initialized and the subsequent process of the target robot is entered according to the main speech intention of the target robot.

[0030] In one embodiment of the present invention, obtaining the target intent of the corpus to be processed includes:

[0031] Pre-setting a main natural language processor and a plurality of sub-natural language processors, and obtaining the intent of the corpus to be processed through the main natural language processor;

[0032] Assigning the intent of the corpus to be processed to the sub-natural language processors, wherein the query intents of the main natural language processor and the sub-natural language processors are different;

[0033] Obtain intent recognition results from several sub-natural language processors, and feed all recognition results back to the main natural language processor;

[0034] All recognition results are evaluated according to the confidence of the recognition results, and the target intention is obtained according to the evaluation result of the main natural language processor.

[0035] The present invention also provides a conversational robot routing jump method device, comprising:

[0036] A configuration module, used to pre-set routing nodes and enable routing jump mechanisms, wherein the enabled routing jump mechanisms include intention jumps for jumping according to natural language processing results and parameter jumps for executing a speech process according to preset parameters;

[0037] An information collection and processing module is used to obtain a corpus to be processed and a target intent of the corpus to be processed;

[0038] A routing module, used for executing the intention jump at the current node according to the target intention, and jumping to the node or other robot pointed to by the next hop of the intention jump through the pre-configured next hop of the current node intention jump;

[0039] When the next hop points to a node, through conditional settings, the intention jump or parameter jump is performed at the node pointed to by the next hop, and the corresponding operation or speech flow of the node pointed to by the next hop is completed;

[0040] When the next jump points to another robot, subsequent actions are performed on the other robot according to the target intention.

[0041] In one embodiment of the present invention, the information collection and processing module includes a main natural language processor, a plurality of sub-natural language processors and an evaluation unit, and obtains the intent of the corpus to be processed through the main natural language processor; distributes the intent of the corpus to be processed to the sub-natural language processors, and the query intents of the main natural language processor and the sub-natural language processors are different; obtains intent recognition results of the plurality of sub-natural language processors, and feeds all recognition results back to the main natural language processor;

[0042] The evaluation unit evaluates all recognition results according to the confidence of the recognition results, and obtains the target intention according to the evaluation results of the main natural language processor.

[0043] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above methods when executing the computer program.

[0044] The invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above items is implemented.

[0045] Beneficial effects of the present invention: The conversational robot routing jump method, device, electronic device and medium of the present invention, by configuring intention routing jump and parameter routing jump, can jump to the configured node or robot after identifying the corresponding intention or extracting the corresponding parameter, so that when the customer corrects the previous intention or parameter, the change processing can be performed immediately, and the robot switching of multiple business scenarios can be achieved, making the robot more intelligent and more human-like.

[0046] In addition, the present invention can make the connection and jump of the robot's speech smoother through the broadcast speech and confirmation speech in the routing configuration, giving customers a more comfortable conversation experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flow chart of a conversational robot routing jump method in an embodiment of the present invention.

[0048] Figure 2 It is a flow chart of a conversational robot routing jump method in an embodiment of the present invention.

[0049] Figure 3 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.

[0050] Figure 4 It is a schematic diagram of the hardware structure of an electronic device provided by another embodiment of the present invention.

[0051] Figure 5 It is a schematic diagram of the hardware structure of the conversational robot routing jump device of the present invention.

[0052] Figure 6 This is a schematic diagram of route jumps between two robots in the conversational robot route jump method in an embodiment of the present invention.

[0053] Figure 7 It is a schematic diagram of routing jumps between multiple robots in the method for routing jumps of conversational robots in an embodiment of the present invention.

[0054] Figure 8 This is a schematic diagram of prohibited jumps in tasks of the conversational robot routing jump method in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0056] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0057] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0058] like Figure 1 As shown, the conversational robot routing jump method in this embodiment includes:

[0059] S1. Pre-set routing nodes and enable routing jump mechanism, enabling routing jump mechanism includes intention jump for jumping according to natural language processing results and parameter jump for executing speech flow according to preset parameters;

[0060] S2. Obtain a corpus to be processed and a target intent of the corpus to be processed, execute an intent jump at the current node according to the target intent, and jump to the node or other robot pointed to by the next jump of the intent jump through the pre-configured next jump of the current node;

[0061] S3. When the intended next jump points to a node, the intended next jump or parameter jump is executed at the node pointed to by the condition setting, and the corresponding operation or speech process of the node pointed to by the intended next jump is completed;

[0062] S4. When the next jump of the intention jump points to other robots, execute subsequent actions on other robots according to the target intention.

[0063] In this embodiment, "intent" is computer-readable data that indicates that a computer system component has been identified as the meaning indicated by a natural language query, and can be directly processed in the conversational robot through a routing mechanism. The enabling routing jump mechanism in step S1 of this embodiment includes intent routing jump and parameter routing jump. By configuring intent routing and parameter routing, it is possible to jump to the configured node or robot after identifying the corresponding intent or extracting the corresponding parameter, so that when the customer corrects the previous intent or parameter, the change processing can be performed immediately. In addition, through the broadcasting and confirmation words in the routing configuration, the connection and jump of the robot's words can be made smoother, giving customers a more comfortable conversation experience. The routing function has greatly improved the scalability of the robot configuration. The business party where the robot is located can use this function to customize many complex jump logics and scenarios to achieve a wider range of robot configuration. And as a general component, the routing function can also be integrated into other robot business scenarios.

[0064] In step S1 of this embodiment, first, it is necessary to pre-set nodes and enable the routing jump mechanism. The nodes are pre-set and the routing jump mechanism is enabled. The routing jump mechanism includes an intention jump for jumping according to the natural language processing results and a parameter jump for executing the speech process according to preset parameters. Optionally, the routing jump mode can be selected by page configuration. The routing jump mode can select "intention jump" or "parameter jump", and the speech process is jumped according to the intention of natural language processing (NLP) and the robot parameters. Optionally, natural language processing NLP can be divided into three types: simple matching, fuzzy matching and paragraph comprehension. The simple matching tutoring and answering system mainly uses simple keyword matching technology to achieve the matching of questions and related answer items in the answer library, so as to automatically answer questions or provide relevant tutoring. The fuzzy matching tutoring and answering system adds the matching of synonyms and antonyms on this basis. In this way, even if the original keyword in the question cannot find a directly matching answer in the answer library, if the synonymous or antonymous words of the keyword can be matched, the relevant answer entry can still be found in the answer library. In this embodiment, NLP technology can be used to obtain the intent, and then through the configured node transfer, jump to the node involved in processing the corresponding intent, and then perform the corresponding operation, such as obtaining the corresponding information, and adding the relevant broadcasting and confirmation words.

[0065] In step S2 of this embodiment, a corpus to be processed and the target intent of the corpus to be processed are obtained, and according to the target intent, an intent jump is executed at the current node, and the next hop of the intent jump of the current node is pre-configured to jump to the node or other robot pointed to by the next hop of the intent jump. For example, when the system obtains the intent of "asking about premiums", it will follow the intent and jump to the premium node through the configured node transfer to further obtain relevant premium information; jump according to the robot parameters, such as after obtaining the car price parameters, it will also jump to the car price node through routing to obtain further car price information. Finally, relevant broadcasting and confirmation words can also be added.

[0066] In this embodiment, the intention jump specifically includes:

[0067] S201. Obtain target intent and perform routing intent matching according to the target intent.

[0068] S202. If the target intent does not match the routing intent, the routing process is exited and the subsequent process is continued; if the target intent matches the routing intent, the matching routing intent is further judged to determine whether there is a conditional judgment;

[0069] S203. If there is a conditional judgment, then perform the corresponding conditional judgment. If it passes, then determine whether the re-judgment NLP is enabled.

[0070] If re-judgment of NLP is enabled, the node jump or robot jump is executed after the NLP intent is obtained again according to the robot or node to be jumped;

[0071] If re-judgment of NLP is not enabled, the duplication intent or the original intent is continued to be judged;

[0072] S204. If re-determination of NLP is not enabled and the intention is to replicate, the routing is used to replicate the intention and execute node jump or robot jump; if re-determination of NLP is not enabled and the intention is the original, the original intention is used to execute node jump or robot jump.

[0073] According to the different intention routing jumps in the above steps, node jumps or robot jumps are executed, such as Figure 2 shown.

[0074] In this embodiment, when the target intent of the corpus to be processed changes, the new target intent is obtained, and the new target intent is matched with the original target intent for routing intent. If there is no match, the intent judgment process is jumped out and the original subsequent process is executed. If there is a match, the intent judgment process is entered. The intent judgment process includes:

[0075] According to the judgment condition pre-set for the route jump, judging whether the target intention enables re-semantic recognition;

[0076] If re-semantic recognition is enabled, the intent jump is performed according to the new target intent;

[0077] If re-semantic recognition is not enabled, the intent is copied or the node jump or robot jump is executed according to the original intent.

[0078] In steps S3 and S4 of this embodiment, when the next hop of the intended jump points to a node, the intention jump or parameter jump is executed at the node pointed to by the next hop of the intended jump through conditional settings, and the corresponding operation or speech flow of the node pointed to by the next hop of the intended jump is completed. When the next hop of the intended jump points to other robots, subsequent actions are performed on other robots according to the target intention. By setting one or more "conditions", the route jump is conditionally set. For example, the robot's parameters are set with rules such as "verification", "judgment", and "assignment". The type of route can be set, for example, by selecting the "node" route to jump to other nodes for other actions such as "intention replication"; you can also select the "robot" node to jump to other robots for subsequent actions.

[0079] In this embodiment, the processing method with the confirmation process includes:

[0080] S301. First, match the routing rules

[0081] S302: Determine whether the current state is confirmation. If so, determine whether it is a confirmation corresponding to the matching routing condition according to the instruction attribute.

[0082] S303. If the confirmation corresponds to the matching routing condition, a confirmation reply judgment process is performed;

[0083] S304. If the confirmation does not match the routing condition, clear the confirmation status, and then determine whether the current route needs to be confirmed.

[0084] S305. If the current route needs to be reconfirmed, the confirmation status is processed;

[0085] S306. If the current route does not need to be reconfirmed, enter the route jump process.

[0086] In this embodiment, when the next hop of the current robot points to another robot:

[0087] Taking the other robot as a target robot to determine whether it is in the task;

[0088] If the target robot is in a task, clear the task stack in the session control;

[0089] If the target robot is not in the task, save the current robot's state, add it to the conversation control robot history list, and continue to determine whether the target robot exists in the list;

[0090] If the target robot exists in the list, the previous state of the target robot is loaded, and the subsequent process of the target robot is entered according to the target intention of the current robot;

[0091] If the target robot does not exist in the list, the target robot is initialized and the subsequent process of the target robot is entered according to the main speech intention of the target robot.

[0092] For example, according to the intention, the jump route of robot A is judged. If the jump route is the current robot, it is processed according to the process of robot A; if the jump route is robot B, it is judged whether it is in the task;

[0093] If in task, clear the task stack in session control;

[0094] If it is not in the task, save the current state of robot A, add it to the history list of the conversation control robot, and continue to determine whether there is robot B in the robot list;

[0095] If there is robot B in the robot list, load the previous state of robot B and perform a jump intention to enter the process of robot B;

[0096] If there is no robot B in the robot list, initialize robot B, use the main speech intent, and enter the robot B process.

[0097] In this embodiment, if Figure 6 As shown in the figure, when the route jump includes a jump between two robots, the jump path includes:

[0098] 1-Robot A performs skill 1,

[0099] 2-Robot A executes the task with parameter A1,

[0100] 3-Robot A jumps to the starting node of robot B and robot B executes skill 1. It enters for the first time to obtain the global parameter initialization of robot B and enters with the main speech intention;

[0101] 4-Robot B executes the task with parameter B1,

[0102] 5-Robot B jumps back to the last node of robot A and robot A executes the task with parameter A1 and re-enters the task

[0103] 6-Robot A executes the conversation skill. If it jumps during the task, it needs to clear the task stack;

[0104] 7 Robot A jumps back to the last node of B and robot B executes the task with parameter B1.

[0105] 8-Robot B executes the task with parameter A1,

[0106] 9- Robot B performs the dialogue skill,

[0107] 10- Robot B jumps back to the last node of A and robot A executes the dialogue skill.

[0108] 11-Robot A performs skill 4,

[0109] 12-Robot A ends the session control.

[0110] In the jump process between the two robots mentioned above, the task finally obtains the three parameters A1, A2, and B1.

[0111] like Figure 7 As shown, the jump paths of the routing jumps between multiple robots include:

[0112] 1-Robot A performs skill 1,

[0113] 2-Robot A executes the task with parameter A1,

[0114] 3-Robot A jumps to the starting node of robot B and robot B executes skill 1. It enters for the first time to obtain the global parameter initialization of robot B and enters with the main speech intention;

[0115] 4-Robot B executes the task with parameter B1,

[0116] 5-Robot B jumps to the starting node of robot C and robot C executes skill 1.

[0117] 6-Robot C obtains parameter C1;

[0118] 7-Robot C obtains parameter C2;

[0119] 8-Robot C performs skill 4

[0120] 9- End the conversation control, which can be ended in any robot.

[0121] In the above three robot jump processes, the task finally obtains four parameters: A1, B1, C1, and C2.

[0122] In this embodiment, if Figure 8 As shown, the jump paths of the forbidden jump scheme in the task include:

[0123] 1-Robot A performs skill 1,

[0124] 2- When robot A executes a dialogue skill and jumps in a task, it needs to clear the task stack

[0125] 3-Robot A jumps to the starting node of robot B and robot B executes skill 1. It enters for the first time to obtain the global parameter initialization of robot B and enters with the main speech intention;

[0126] 4-Robot B executes the parameter B1 task. At this time, it needs to jump, but the B1 task of robot B is in the task, so the jump is prohibited and robot B executes the parameter B1 task;

[0127] 5-Robot B performs task A1,

[0128] 6-Robot B performs the conversation skill;

[0129] 7-Robot B jumps back to A's save node, and robot A performs the dialogue skill;

[0130] 8-Robot A performs the dialogue skill;

[0131] 9-Robot A performs skill 4,

[0132] 10-End the session control in robot A.

[0133] In this embodiment, by adding whether to enable the jump route, re-judging NLP, the results of the intention jump mainly include duplicating the intention, retaining the original intention and re-identifying the intention. In the process of jump routing, the context of each robot environment is saved, and the corresponding context of the routing turntable also needs to be saved. According to the current NLP request, the routing status is confirmed. Optionally, the router identification number can be used to confirm whether the corresponding conditions are matched during the speech. Since each task is independent, each task has an independent task stack. The task stack is an important part of the task. The role of the task stack mainly includes two aspects. First, when the task is running, the task stack is used to save some local variables; second, when the task is suspended, the task stack can be responsible for saving the running site of the task. When this solution jumps in the task, the task stack needs to be cleared to ensure the jump and return to normal.

[0134] After step S4 of this embodiment, the following steps are also included:

[0135] S5. Integrate intent routing with natural language query intent dispatching, match specific natural language queries with intents from multiple intent matchers, and point to the appropriate dialog query processor through the corresponding intent routing. For example, for a corpus with a specific meaning, the query can be matched with multiple extended natural language processors that can process the query and generate the intent of the query. Each of the extended natural language processors can be such a natural language processor that is independent of the main natural language processor and can return at least one intent and can also return one or more entities for the natural language query. Each extended natural language processor can also extend the natural language processor without relying on the perception of other processors about generating intent; the extended natural language processor can use its own form of natural language query to match the intent with the natural language to identify the intent of the query. It is also possible to provide a way to eliminate ambiguity between multiple intent matchers and dialog query processors by using data such as user rankings, user preferences, contextual information and / or user profiles, and it is possible to receive user input selections, such as selections between different intents and different dialog query processors. Specifically:

[0136] S501. Pre-set a main natural language processor and several sub-natural language processors, and obtain the intention of the corpus to be processed through the main natural language processor;

[0137] S502. Assigning the intent of the corpus to be processed to the sub-natural language processors, where the query intents of the main natural language processor and the sub-natural language processors are different;

[0138] S503. Obtain the intention recognition results of several sub-natural language processors, and feed back all recognition results to the main natural language processor;

[0139] S504. Evaluate all recognition results according to the confidence of the recognition results, and obtain the target intent according to the evaluation results of the main natural language processor.

[0140] In this embodiment, the main natural language processor may have sent a query to a large group of natural language processors, and only a subset of these sub-natural language processors can understand the specific query and return the corresponding intent. If the main natural language processor sends the query of the to-be-processed corpus "I am hungry" to multiple different sub-natural language processors, the sub-natural language processor for the food ordering extension may be programmed to return the intent of the query, and another sub-natural language processor for making a reservation at a restaurant may also be programmed to return the intent of the query, but the sub-natural language processor for the extension of scheduling a taxi may not be programmed to return the intent of the query. Therefore, the main natural language processor may send queries to all three extension natural language processors, but it may only receive the intent of "food ordering" from the food ordering extension natural language processor and the intent of "making a reservation" from the restaurant reservation extension natural language processor. The main natural language processor can match the intent with the corresponding conversation query processor. For example, the extension natural language processor may be part of the same extension as the corresponding conversation query processor, as indicated to the main natural language processor in the registration for the extension. Therefore, after receiving an intent from a specific sub-natural language processor, the main natural language processor can look up the registration for the extension of the sub-natural language processor and find data related to the corresponding dialog query processor. Figure 1 In addition, the sub-natural language processor can also return an identifier (e.g., address, etc.) of the dialog query processor that processes the intent. The main natural language processor can use such an identifier to match the received intent with a matching dialog query processor.

[0141] Correspondingly, such as Figure 5 As shown, this embodiment also provides a conversational robot route jump device, including:

[0142] Configuration module 101, used to pre-set routing nodes and enable routing jump mechanism, wherein the enabled routing jump mechanism includes intention jump for jumping according to natural language processing results and parameter jump for executing the speech process according to preset parameters;

[0143] The information collection and processing module 102 is used to obtain a corpus to be processed and the target intent of the corpus to be processed;

[0144] The routing module 103 is used to execute the intention jump at the current node according to the target intention, and jump to the node or other robot pointed to by the next hop of the intention jump through the pre-configured next hop of the current node intention jump;

[0145] When the next hop points to a node, through conditional settings, the intention jump or parameter jump is performed at the node pointed to by the next hop, and the corresponding operation or speech flow of the node pointed to by the next hop is completed;

[0146] When the next jump points to another robot, subsequent actions are performed on the other robot according to the target intention.

[0147] In this embodiment, the information acquisition and processing module includes a main natural language processor, several sub-natural language processors and an evaluation unit, and obtains the intent of the corpus to be processed through the main natural language processor; dispatches the intent of the corpus to be processed to the sub-natural language processors, and the query intents of the main natural language processor and the sub-natural language processors are different; obtains the intent recognition results of several sub-natural language processors, and feeds all recognition results back to the main natural language processor; the evaluation unit evaluates all recognition results according to the confidence of the recognition results, and obtains the target intent according to the evaluation results of the main natural language processor.

[0148] In this embodiment, "intent" is computer-readable data that indicates that a computer system component has been identified as the meaning indicated by a natural language query, and can be directly processed in the conversational robot through a routing mechanism. The enabling routing jump mechanism in step S1 of this embodiment includes intent routing jump and parameter routing jump. By configuring intent routing and parameter routing, it is possible to jump to the configured node or robot after identifying the corresponding intent or extracting the corresponding parameter, so that when the customer corrects the previous intent or parameter, the change processing can be performed immediately. In addition, through the broadcasting and confirmation words in the routing configuration, the connection and jump of the robot's words can be made smoother, giving customers a more comfortable conversation experience. The routing function has greatly improved the scalability of the robot configuration. The business party where the robot is located can use this function to customize many complex jump logics and scenarios to achieve a wider range of robot configuration. And as a general component, the routing function can also be integrated into other robot business scenarios.

[0149] In this embodiment, a corpus to be processed and the target intent of the corpus to be processed are obtained, and according to the target intent, an intent jump is executed at the current node, and the next hop of the intent jump of the current node is pre-configured to jump to the node or other robot pointed to by the next hop of the intent jump. For example, when the system obtains the intent of "asking about premiums", it will jump to the premium node involved through the configured node transfer in turn, and further obtain relevant premium information; jump according to the robot parameters, such as after obtaining the car price parameters, it will also jump to the car price node through routing to obtain further car price information. Finally, relevant broadcast words and confirmation words can also be added. According to the different intention routing jumps in the above steps, node jumps or robot jumps are executed.

[0150] In this embodiment, when the target intent of the corpus to be processed changes, the new target intent is obtained, and the new target intent is matched with the original target intent for routing intent. If there is no match, the intent judgment process is jumped out and the original subsequent process is executed. If there is a match, the intent judgment process is entered. The intent judgment process includes:

[0151] According to the judgment condition pre-set for the route jump, judging whether the target intention enables re-semantic recognition;

[0152] If re-semantic recognition is enabled, the intent jump is performed according to the new target intent;

[0153] If re-semantic recognition is not enabled, the intent is copied or the node jump or robot jump is executed according to the original intent.

[0154] In this embodiment, when the next hop of the intended jump points to a node, the intention jump or parameter jump is executed at the node pointed to by the next hop of the intended jump through conditional settings, and the corresponding operation or speech flow of the node pointed to by the next hop of the intended jump is completed. When the next hop of the intended jump points to other robots, subsequent actions are performed on other robots according to the target intention. By setting one or more "conditions", the route jump is conditionally set. For example, the robot's parameters are set with rules such as "verification", "judgment", and "assignment". You can set the type of route, for example, select the "node" route to jump to other nodes for other actions such as "intention replication"; you can also select the "robot" node to jump to other robots for subsequent actions.

[0155] In this embodiment, when the next hop of the current robot points to other robots, the other robots are used as target robots to determine whether they are in the task;

[0156] If the target robot is in a task, clear the task stack in the session control;

[0157] If the target robot is not in the task, save the current robot's state, add it to the conversation control robot history list, and continue to determine whether the target robot exists in the list;

[0158] If the target robot exists in the list, the previous state of the target robot is loaded, and the subsequent process of the target robot is entered according to the target intention of the current robot;

[0159] If the target robot does not exist in the list, the target robot is initialized and the subsequent process of the target robot is entered according to the main speech intention of the target robot.

[0160] In this embodiment, before executing the intention jump or parameter jump, the following steps are included:

[0161] Determine whether the current state is in the confirmation state. If the state is in the confirmation state, determine whether the current confirmation state is the confirmation state corresponding to the matching routing condition according to the instruction attribute;

[0162] If the status matches the routing condition, the confirmation reply judgment is processed according to the pre-set announcement and confirmation words;

[0163] If the confirmation status does not match the routing condition, clear the confirmation status and then determine whether the current route needs to be confirmed;

[0164] If the current route needs to be reconfirmed, the confirmation status is processed and the pre-set actions or words in the confirmation status are executed;

[0165] If the current route does not need to be reconfirmed, the route jump is executed.

[0166] In this embodiment, during the jump routing process, the context of each robot environment is saved, and the context of the corresponding routing turntable also needs to be saved. According to the current NLP request, the routing status is confirmed. Optionally, the router identification number can be used to confirm whether the corresponding conditions are matched during the speech. Since each task is independent, each task has an independent task stack. The task stack is an important part of the task. The role of the task stack mainly includes two aspects. First, when the task is running, the task stack is used to save some local variables; second, when the task is suspended, the task stack can be responsible for saving the running site of the task. When this solution jumps in the task, the task stack needs to be cleared to ensure normal jumps and returns.

[0167] In this embodiment, intent routing is combined with natural language query intent dispatching, and a specific natural language query is matched with intents from multiple intent matchers, and is directed to a suitable dialog query processor through the corresponding intent routing. For example, for a corpus of a specific meaning, the query can be matched with multiple extended natural language processors that can process the query, and the intent of the query is generated. Each of the extended natural language processors can be such a natural language processor that is independent of the main natural language processor and can return at least one intent and can also return one or more entities for the natural language query. Each extended natural language processor can also extend the natural language processor without relying on the perception of other processors about generating intent; the extended natural language processor can use its own form of natural language query and the natural language matching of the intent to identify the intent of the query. It is also possible to provide a way to eliminate ambiguity between multiple intent matchers and dialog query processors by using data such as user rankings, user preferences, contextual information and / or user profiles, and it is possible to receive user input selections, such as selections between different intents and different dialog query processors.

[0168] In this embodiment, the main natural language processor may have sent a query to a large group of natural language processors, and only a subset of these sub-natural language processors can understand the specific query and return the corresponding intent. If the main natural language processor sends the query of the to-be-processed corpus "I'm hungry" to multiple different sub-natural language processors, the sub-natural language processor for pizza ordering extension can be programmed to return the intent of the query, and another sub-natural language processor for making a reservation at a restaurant can also be programmed to return the intent of the query, but the sub-natural language processor for the extension of scheduling a taxi ride may not be programmed to return the intent of the query. Therefore, the main natural language processor can send queries to all three extension natural language processors, but it may only receive back the intent of ordering pizza from the pizza ordering extension natural language processor and the intent of making a reservation from the restaurant reservation extension natural language processor. The main natural language processor can match the intent with the corresponding dialogue query processor. For example, the extension natural language processor can be part of the same extension as the corresponding dialogue query processor, as indicated to the main natural language processor in the registration for the extension. Therefore, after receiving an intent from a specific sub-natural language processor, the main natural language processor can look up the registration for the extension of the sub-natural language processor and find data related to the corresponding dialog query processor. Figure 1 The sub-natural language processor can also return an identifier of the dialog query processor that processes the intent. The main natural language processor can use such an identifier to match the received intent with a matching dialog query processor.

[0169] This embodiment adds whether to enable jump routing and re-judge NLP. The results of intent jump mainly include duplicating intent, retaining original intent and re-identifying intent. On this basis, by organically combining natural language query intent dispatch with intent routing and parameter routing, the robot is made more intelligent and more humanized, and the connection and jump of the robot's speech are further made smoother, further providing customers with a more comfortable conversation experience. The routing function in this embodiment also greatly improves the scalability of the robot configuration. The business party where the robot is located can use this function to customize many complex jump logics and scenarios to achieve an increase in the breadth of the robot configuration. And as a general component, the routing function can also be integrated into other robot business scenarios.

[0170] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in this embodiment is implemented.

[0171] This embodiment also provides an electronic terminal, including: a processor and a memory;

[0172] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods in this embodiment.

[0173] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0174] The electronic device provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program so that the electronic terminal executes the various steps of the above method.

[0175] like Figure 3As shown, the electronic device may include: an input device 1100, a first processor 1101, an output device 1102, a first memory 1103 and at least one communication bus 1104. The communication bus 1104 is used to realize the communication connection between the components. The first memory 1103 may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage. Various programs may be stored in the first memory 1103 to complete various processing functions and implement the method steps of this embodiment.

[0176] Figure 4 The hardware structure of the electronic device provided in another embodiment, the electronic device in this embodiment may include a second processor 1201 and a second memory 1202. The second processor 1201 executes the computer program code stored in the second memory 1202 to implement the above embodiment. Figure 1 The method. The second memory 1202 is configured to store various types of data to support operations on the terminal device. Examples of these data include instructions for any application or method for operating on the terminal device, such as messages, pictures, videos, etc. The second memory 1202 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. The electronic device may also include: a communication component 1203, a power supply component 1204, a multimedia component 1205, an audio component 1206, an input / output interface 1207 and / or a sensor component 1208. The specific components included in the terminal device are set according to actual needs, and this embodiment does not limit this.

[0177] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0178] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0179] In the above embodiments, unless otherwise specified, by using serial numbers such as "first", "second", etc. to describe common objects, it only means that they refer to different instances of the same object, rather than using a description that the objects described must adopt a given order, whether temporally, spatially, sequentially or in any other way. In the above embodiments, the description of "this embodiment", "an embodiment", "another embodiment", or "other embodiments" indicates that the specific features, structures or characteristics described in conjunction with the embodiments are included in at least some embodiments, but not necessarily all embodiments. Multiple occurrences of "this embodiment", "an embodiment", and "another embodiment" do not necessarily all refer to the same embodiment. If the specification describes that a component, feature, structure or characteristic "may", "may" or "can" be included, then the specific component, feature, structure or characteristic "may", "may" or "can" be included, then the specific component, feature, structure or characteristic is not necessarily included. If the specification or claim mentions "one" element, it does not mean that there is only one element. If the specification or claim mentions "another" element, it does not exclude the presence of more than one other element.

[0180] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0181] The present invention can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like.

[0182] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0183] In the above-described embodiments, although the invention has been described in conjunction with specific embodiments of the invention, many substitutions, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. For example, other storage structures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed. Embodiments of the invention are intended to encompass all such substitutions, modifications, and variations that fall within the broad scope of the appended claims.

[0184] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A conversational robot routing jump method, characterized in that: include: Pre-setting routing nodes and enabling routing jump mechanisms, wherein the enabling routing jump mechanisms include intention jumps for jumping according to natural language processing results and parameter jumps for executing speech flow according to preset parameters; Obtain a corpus to be processed and a target intent of the corpus to be processed, execute the intent jump at the current node according to the target intent, and jump to the node or other robot pointed to by the next hop of the intent jump through the pre-configured next hop of the current node intent jump; When the next hop points to a node, through conditional settings, the intention jump or parameter jump is performed at the node pointed to by the next hop, and the corresponding operation or speech flow of the node pointed to by the next hop is completed; When the next jump points to another robot, executing subsequent actions on the other robot according to the target intention; Before executing the intention jump, it also includes: When the target intent of the corpus to be processed changes, a new target intent is obtained, and the new target intent is matched with the original target intent for routing intent. If there is no match, the intent judgment process is exited and the original subsequent process is executed. If there is a match, the intent judgment process is entered. The intent judgment process includes: According to the judgment condition pre-set for the route jump, judging whether the target intention enables re-semantic recognition; If re-semantic recognition is enabled, the intent jump is performed according to the new target intent; If re-semantic recognition is not enabled, the intent is copied or the node jump or robot jump is executed according to the original intent.

2. The conversational robot routing jump method according to claim 1, characterized in that: The intention judgment process also includes: If no judgment condition is set for the route jump in advance, it is directly judged whether the target intent enables re-semantic recognition; The intent replication includes replicating the target intent of the current node as a replicated intent to other nodes, and the other nodes execute intent jump according to the replicated intent.

3. The conversational robot routing jump method according to claim 1, characterized in that: Before executing the intention jump or parameter jump include: Determine whether the current state is in the confirmation state. If the state is in the confirmation state, determine whether the current confirmation state is the confirmation state corresponding to the matching routing condition according to the instruction attribute; If the status matches the routing condition, the confirmation reply judgment is processed according to the pre-set announcement and confirmation words; If the confirmation status does not match the routing condition, clear the confirmation status and then determine whether the current route needs to be confirmed; If the current route needs to be reconfirmed, the confirmation status is processed and the pre-set actions or words in the confirmation status are executed; If the current route does not need to be reconfirmed, the route jump is executed.

4. The conversational robot routing jump method according to claim 3, characterized in that: When the next hop of the current robot points to another robot: Taking the other robot as a target robot to determine whether it is in the task; If the target robot is in a task, clear the task stack in the session control; If the target robot is not in the task, save the current robot's state, add it to the conversation control robot history list, and continue to determine whether the target robot exists in the list; If the target robot exists in the list, the previous state of the target robot is loaded, and the subsequent process of the target robot is entered according to the target intention of the current robot; If the target robot does not exist in the list, the target robot is initialized and the subsequent process of the target robot is entered according to the main speech intention of the target robot.

5. The conversational robot routing jump method according to claim 1, characterized in that: The target intentions for obtaining the corpus to be processed include: Pre-setting a main natural language processor and a plurality of sub-natural language processors, and obtaining the intent of the corpus to be processed through the main natural language processor; Assigning the intent of the corpus to be processed to the sub-natural language processors, wherein the query intents of the main natural language processor and the sub-natural language processors are different; Obtain intent recognition results from several sub-natural language processors, and feed all recognition results back to the main natural language processor; All recognition results are evaluated according to the confidence of the recognition results, and the target intention is obtained according to the evaluation result of the main natural language processor.

6. A method and device for routing jump of a conversational robot, characterized in that: include: A configuration module, used to pre-set routing nodes and enable routing jump mechanisms, wherein the enabled routing jump mechanisms include intention jumps for jumping according to natural language processing results and parameter jumps for executing a speech process according to preset parameters; An information collection and processing module is used to obtain a corpus to be processed and a target intent of the corpus to be processed; A routing module, used for executing the intention jump at the current node according to the target intention, and jumping to the node or other robot pointed to by the next hop of the intention jump through the pre-configured next hop of the current node intention jump; When the next hop points to a node, through conditional settings, the intention jump or parameter jump is performed at the node pointed to by the next hop, and the corresponding operation or speech flow of the node pointed to by the next hop is completed; When the next jump points to another robot, executing subsequent actions on the other robot according to the target intention; Before executing the intention jump, it also includes: When the target intent of the corpus to be processed changes, a new target intent is obtained, and the new target intent is matched with the original target intent for routing intent. If there is no match, the intent judgment process is exited and the original subsequent process is executed. If there is a match, the intent judgment process is entered. The intent judgment process includes: According to the judgment condition pre-set for the route jump, judging whether the target intention enables re-semantic recognition; If re-semantic recognition is enabled, the intent jump is performed according to the new target intent; If re-semantic recognition is not enabled, the intent is copied or the node jump or robot jump is executed according to the original intent.

7. The conversational robot routing jump method and device according to claim 6, characterized in that: The information collection and processing module includes a main natural language processor, a plurality of sub-natural language processors and an evaluation unit, and obtains the intention of the corpus to be processed through the main natural language processor; Assigning the intent of the corpus to be processed to the sub-natural language processors, wherein the query intents of the main natural language processor and the sub-natural language processors are different; Obtain intent recognition results from several sub-natural language processors, and feed all recognition results back to the main natural language processor; The evaluation unit evaluates all recognition results according to the confidence of the recognition results, and obtains the target intention according to the evaluation results of the main natural language processor.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Computerized natural language query intent dispatching

    CN109716325A

  • Multi-round dialogue intelligent voice interaction system and device

    CN110209791A

  • Multi-dialogue response system based on directed graph

    CN110942769A

  • Method, device and equipment for intelligently calling robot and storage medium

    CN111694939A

  • Intelligent outbound method and device, computer equipment and storage medium

    CN111696558A