Intelligent dialogue method, device, computer device and storage medium
By configuring agenda trigger points in the dialogue flow of the chatbot, determining whether user behavior matches intent information, obtaining agenda execution strategy information, and initiating dialogue information, the complexity of the dialogue flow caused by the uncertainty of user behavior is solved, and flexible dialogue flow management is achieved.
Patent Information
- Application Number
- CN202111393252.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2041-11-23
AI Technical Summary
Existing technologies suffer from complex configuration and reduced flexibility in dialogue interaction processes when faced with uncertainties in user dialogue behavior.
By configuring agenda trigger nodes in the dialogue flow of the chatbot, it can determine whether the user's behavior is consistent with the intent information, obtain the agenda execution strategy information, and initiate dialogue information according to the strategy, thereby simplifying the process configuration and flexibly responding to the uncertainty of user behavior.
It effectively simplifies the configuration of the dialogue process, can flexibly handle dialogue processes that are not in the pre-set order, simplifies the flexibility of the dialogue process, and avoids the problem of unknown situations in the dialogue system.
Smart Images

Figure CN114186037B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of artificial intelligence, in particular to an intelligent dialogue method and device, computer equipment and storage medium. BACKGROUND
[0002] With the development of artificial intelligence technology, dialogue interaction technology has emerged. The dialogue management mode based on the process is commonly used in the industry. A certain business process in a specific business scenario, such as querying an order, urging payment, and confirming marketing intent, can be considered as a dialogue flow. The process of multi-round dialogue is called dialogue flow. The dialogue interaction process between the computer equipment such as intelligent robots and the user is basically composed of reply nodes and trigger nodes. The reply node is used to organize reply content and reply actions, and the trigger node is used to judge and control the process direction. Through the combination of the two nodes, the flexible configuration requirements of the multi-round dialogue process can be basically met.
[0003] However, with the deepening of the business, in order to adapt to the uncertainty of the user's dialogue behavior, such as not answering in the order set in advance, it leads to a very complex dialogue interaction process configuration, and the flexibility is greatly reduced. SUMMARY
[0004] Therefore, it is necessary to provide an intelligent dialogue method, device, computer equipment and storage medium for the above technical problems.
[0005] An intelligent dialogue method, characterized in that the method comprises:
[0006] When the dialogue flow of the dialogue robot is executed to the trigger node configured with the agenda, it is judged whether the user behavior is consistent with the intent information in the agenda trigger intent;
[0007] When the user behavior is consistent with the intent information, the agenda execution strategy information is obtained;
[0008] When the agenda execution strategy information indicates immediate execution, it is judged whether the user behavior is consistent with the node trigger intent;
[0009] If yes, the dialogue information of the node branch corresponding to the trigger node is initiated, and after the dialogue information of the node branch is initiated, the dialogue information corresponding to the agenda target branch is output;
[0010] After outputting the dialogue information corresponding to the agenda target branch, the dialogue flow is continued.
[0011] In one embodiment, the agenda execution strategy information includes first agenda execution strategy information and second agenda execution strategy information.
[0012] The agenda execution strategy information includes:
[0013] When the user behavior is consistent with the intention information, it is determined whether the trigger node is configured with a precondition.
[0014] When the precondition is not configured, first agenda execution strategy information corresponding to the unconfigured precondition is acquired.
[0015] When the precondition is configured, second agenda execution strategy information corresponding to the configured precondition is acquired.
[0016] In one of the embodiments, when the precondition is configured, acquiring the second agenda execution strategy information corresponding to the configured precondition includes:
[0017] When the precondition is configured, it is determined whether the user behavior is consistent with the precondition.
[0018] If yes, second agenda execution strategy information corresponding to the user behavior consistent with the precondition is acquired.
[0019] If no, second agenda execution strategy information corresponding to the user behavior inconsistent with the precondition is acquired.
[0020] In one of the embodiments, the method further includes:
[0021] Initiating the dialog information of the node branch corresponding to the trigger node.
[0022] After initiating the dialog information of the node branch, processing the dialog information of the current round of the dialog flow and the dialog information of the agenda to obtain the dialog information corresponding to the agenda target branch.
[0023] Outputting the dialog information corresponding to the agenda target branch.
[0024] In one of the embodiments, the processing the dialog information of the current round of the dialog flow and the dialog information of the agenda to obtain the dialog information corresponding to the agenda target branch includes:
[0025] When the configured agenda dialog parameter is not to output dialog information, the dialog information of the current round of the dialog flow is selected as the dialog information corresponding to the agenda target branch.
[0026] When the configured agenda dialogue parameter is to concatenate dialogue information, the dialogue information of the current dialogue process is concatenated with the dialogue information of the agenda to obtain the dialogue information corresponding to the agenda target branch.
[0027] When the configured agenda dialogue parameter is to replace dialogue information, the agenda dialogue information is selected as the dialogue information corresponding to the agenda target branch.
[0028] In one embodiment, the method further includes:
[0029] If not, output the dialogue information corresponding to the agenda target branch;
[0030] After outputting the dialogue information corresponding to the agenda target branch, the dialogue process continues.
[0031] In one embodiment, the method further includes:
[0032] When the agenda execution strategy information indicates a postponement, the dialogue process continues.
[0033] When the current node in the dialogue flow is detected to be a target node, the target branch corresponding to the target node is taken as the agenda target branch, and the dialogue information corresponding to the agenda target branch is output.
[0034] After outputting the dialogue information corresponding to the agenda target branch, continue executing the dialogue process.
[0035] An intelligent dialogue device, the device comprising:
[0036] The first judgment module is used to determine whether the user's behavior is consistent with the intent information in the agenda triggering intent when the dialogue flow of the chatbot reaches the triggering node configured with the agenda.
[0037] The acquisition module is used to acquire agenda execution strategy information when the user's behavior is consistent with the intent information;
[0038] The second judgment module is used to determine whether the user behavior is consistent with the node triggering intent when the agenda execution strategy information indicates immediate execution;
[0039] The initiation module is used to initiate dialogue information for the node branch corresponding to the triggering node if the condition is met, and to output dialogue information for the agenda target branch after initiating the dialogue information.
[0040] The continuation module is used to continue the dialogue process after outputting the dialogue information corresponding to the agenda target branch.
[0041] In one of the embodiments, the agenda execution strategy information includes first agenda execution strategy information and second agenda execution strategy information; the obtaining module is further configured to determine whether a precondition is configured for the trigger node when the user behavior is consistent with the intention information; obtain the first agenda execution strategy information corresponding to the case where the precondition is not configured when the precondition is not configured; and obtain the second agenda execution strategy information corresponding to the case where the precondition is configured when the precondition is configured.
[0042] In one of the embodiments, the obtaining module is further configured to determine whether the user behavior is consistent with the precondition when the precondition is configured; obtain the second agenda execution strategy information corresponding to the case where the user behavior is consistent with the precondition when the user behavior is consistent with the precondition; and obtain the second agenda execution strategy information corresponding to the case where the user behavior is not consistent with the precondition when the user behavior is not consistent with the precondition.
[0043] In one of the embodiments, the initiating module is further configured to initiate the dialogue information of the node branch corresponding to the trigger node; and process the dialogue information of the current round of the dialogue process and the dialogue information of the agenda to obtain the dialogue information corresponding to the agenda target branch after the dialogue information of the node branch is initiated; and output the dialogue information corresponding to the agenda target branch.
[0044] In one of the embodiments, the initiating module is further configured to select the dialogue information of the current round of the dialogue process as the dialogue information corresponding to the agenda target branch when the configured agenda dialogue parameter is not to output dialogue information; splice the dialogue information of the current round of the dialogue process and the dialogue information of the agenda to obtain the dialogue information corresponding to the agenda target branch when the configured agenda dialogue parameter is to splice dialogue information; and select the dialogue information of the agenda as the dialogue information corresponding to the agenda target branch when the configured agenda dialogue parameter is to replace dialogue information.
[0045] In one of the embodiments, the initiating module is further configured to output the dialogue information corresponding to the agenda target branch when the user behavior is not consistent with the precondition; and the continuing execution module is further configured to continue executing the dialogue process after the dialogue information corresponding to the agenda target branch is outputted.
[0046] In one of the embodiments, the apparatus further includes:
[0047] The postponing execution module is configured to continue executing the dialogue process when the agenda execution strategy information indicates postponing execution; output the dialogue information corresponding to the agenda target branch when the current node in the dialogue process is determined to be a target node, and the target branch corresponding to the target node is taken as the agenda target branch; and continue executing the dialogue process after the dialogue information corresponding to the agenda target branch is outputted.
[0048] A computer device comprising a memory and a processor, the memory storing a computer program, the computer program being executed by the processor to cause the processor to perform the steps of the intelligent conversation method.
[0049] A computer readable storage medium storing a computer program, the computer program being executed by a processor to cause the processor to perform the steps of the intelligent conversation method.
[0050] The intelligent conversation method, device, computer device and storage medium, by when the conversation flow of the conversation robot is executed to the trigger node configured with the agenda, judging whether the user behavior is consistent with the intent information in the agenda trigger intent; when the user behavior is consistent with the intent information, obtaining the agenda execution strategy information; when the agenda execution strategy information indicates immediate execution, judging whether the user behavior is consistent with the node trigger intent; if yes, initiating the conversation information of the node branch corresponding to the trigger node, and after initiating the conversation information of the node branch, outputting the conversation information corresponding to the agenda target branch; after outputting the conversation information corresponding to the agenda target branch, continuing to execute the conversation flow. By configuring the agenda for the trigger node in the conversation flow, and obtaining the corresponding execution strategy information according to the user behavior, initiating the conversation information based on the execution strategy information, the configuration of the conversation flow is simplified, and at the same time, the problem that the conversation flow cannot cope with unknown conditions due to the uncertainty of the user behavior is effectively avoided. When the user does not conduct the conversation according to the pre-set order, the conversation flow can also be flexibly coped with. BRIEF DESCRIPTION OF DRAWINGS
[0051] Figure 1 Application environment diagram of the intelligent conversation method in one embodiment;
[0052] Figure 2 Flowchart of the intelligent conversation method in one embodiment;
[0053] Figure 3a Agenda configuration interface of the intelligent conversation method in one embodiment;
[0054] Figure 3b Agenda configuration interface of the intelligent conversation method in another embodiment;
[0055] Figure 4 Flowchart of the intelligent conversation method in another embodiment;
[0056] Figure 5 Step flowchart of the delayed execution in one embodiment;
[0057] Figure 6 Structural block diagram of the intelligent conversation method device in one embodiment;
[0058] Figure 7 Structure block diagram of the intelligent conversation method device in another embodiment;
[0059] Figure 8 Internal structure diagram of the computer device in an embodiment. DETAILED DESCRIPTION
[0060] For the purpose, technical solutions and advantages of the present application to be more clear and explicit, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0061] The intelligent conversation method provided by the present application can be applied in an application environment as shown in Figure 1 . In the application environment, a terminal 102 and a server 104 are included.
[0062] The terminal 102 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.
[0063] The server 104 can be a standalone physical server, or a service node in a blockchain system. The service nodes in the blockchain system form a peer-to-peer (P2P) network among them. The P2P protocol is an application layer protocol running on the transmission control protocol (TCP) protocol.
[0064] In addition, the server 104 can also be a server cluster composed of multiple physical servers, which can be a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (CDN), and big data and artificial intelligence platform.
[0065] The terminal 102 and the server 104 can be connected through communication connection modes such as Bluetooth, universal serial bus (USB) or network, which is not limited herein.
[0066] In an embodiment, as shown in Figure 2 , an intelligent conversation method is provided, which can be applied to a server and a terminal. Taking the case where the method is applied to the terminal in Figure 1 for example, the method includes the following steps:
[0067] S202, when the dialog flow of the dialog robot is executed to the trigger node configured with the agenda, it is judged whether the user behavior is consistent with the intent information in the agenda trigger intent.
[0068] The dialog robot refers to a computer program that interacts or talks with the user in dialog information. The dialog robot can be installed on a terminal or a server. The dialog flow refers to the process of multi-round dialog. Dialog refers to a certain business process in a certain business scenario, such as querying an order, urging payment, and confirming marketing intent. The dialog flow is composed of a series of nodes. A node includes node name, trigger intent, dialog information responding to user behavior, and other information. The agenda is composed of key links. When all key links are executed, the entire agenda is completed. The agenda is usually configured on the node of the dialog flow. The key link contains a precondition and an agenda execution strategy. The trigger node refers to the node in the dialog flow. The user behavior refers to the intent expressed by the user in the text information input to the dialog robot in the terminal. The agenda trigger intent refers to the intent for triggering the execution of the agenda. The intent information refers to the text content configured in the trigger intent.
[0069] For example, the trigger node is "confirm yourself", the trigger node is configured with an agenda, the agenda trigger intent is "has paid", the intent information in the agenda trigger intent is "I have paid", and the user behavior is "I have paid" or "I have paid". The user behavior is consistent with the intent information in the agenda trigger intent.
[0070] S204, when the user behavior is consistent with the intent information, the agenda execution strategy information is acquired.
[0071] The agenda execution strategy information refers to the information related to the steps of the agenda execution. The agenda execution strategy information includes first agenda execution strategy information and second agenda execution strategy information. The first agenda execution strategy information refers to the corresponding agenda execution strategy information acquired directly according to the user behavior when no precondition is configured. The first agenda execution strategy information refers to the corresponding agenda execution strategy information acquired according to the user behavior and the precondition when the precondition is configured.
[0072] Specifically, when the user behavior is consistent with the intent information, the terminal judges whether the trigger node is configured with a precondition. When no precondition is configured, the first agenda execution strategy information corresponding to the unconfigured precondition is acquired. When the precondition is configured, the second agenda execution strategy information corresponding to the configured precondition is acquired.
[0073] In one embodiment, when a precondition is configured, the step of the terminal obtaining the second agenda execution policy information corresponding to the configured precondition includes: the terminal determining whether the user behavior is consistent with the precondition (determining whether the precondition is valid); if yes (if valid), then obtaining the second agenda execution policy information corresponding to the user behavior being consistent with the precondition; if no (if invalid), then obtaining the second agenda execution policy information corresponding to the user behavior being inconsistent with the precondition.
[0074] For example, the trigger node is "Confirm Myself". This trigger node sets the precondition of "Confirm Myself". When the user's behavior is "I am the person", it is determined that the user's behavior is consistent with the precondition (the precondition is met). Then, the second agenda execution strategy information corresponding to the user's behavior consistent with the precondition is obtained. When the user's behavior is "I am not the person", it is determined that the user's behavior is inconsistent with the precondition (the precondition is not met). Then, the second agenda execution strategy information corresponding to the user's behavior inconsistent with the precondition is obtained.
[0075] S206, when the agenda execution strategy information indicates immediate execution, determine whether the user's behavior is consistent with the node triggering intent.
[0076] Among them, node trigger intent refers to the intent used to trigger the execution of the trigger node.
[0077] Specifically, when the agenda execution strategy information indicates immediate execution, the terminal determines whether the user's behavior is consistent with the intent information in the node's trigger intent.
[0078] In one embodiment, the dialogue process continues even when the agenda execution strategy information indicates that it should be ignored.
[0079] S208, if so, initiate the dialogue information of the node branch corresponding to the trigger node, and after initiating the dialogue information of the node branch, output the dialogue information corresponding to the agenda target branch.
[0080] Among them, a node branch refers to the node branch (jump path) configured by the trigger node, and a trigger node can be configured with multiple node branches. The agenda target branch is a branch pre-configured in the agenda.
[0081] Specifically, when the terminal determines whether the user's behavior matches the node's trigger intent... Figure 1 When the time comes, initiate the dialogue information of the node branch corresponding to the trigger node; after initiating the dialogue information of the node branch, process the dialogue information of the current dialogue process and the dialogue information of the agenda to obtain the dialogue information corresponding to the agenda target branch; output the dialogue information corresponding to the agenda target branch.
[0082] In one embodiment, the steps for the terminal to process the dialogue information of the current round of dialogue and the dialogue information of the agenda include: when the configured agenda dialogue parameter (dialogue output configuration) is set to not output dialogue information, the terminal selects the dialogue information of the current round of dialogue as the dialogue information corresponding to the agenda target branch; when the configured agenda dialogue parameter (dialogue output configuration) is set to concatenate dialogue information (concatenate dialogue), the dialogue information of the current round of dialogue and the dialogue information of the agenda are concatenated to obtain the dialogue information corresponding to the agenda target branch; when the configured agenda dialogue parameter (dialogue output configuration) is set to replace dialogue information (replace dialogue), the agenda dialogue information is selected as the dialogue information corresponding to the agenda target branch.
[0083] In one embodiment, when the terminal determines that the user's behavior is inconsistent with the node's triggering intent, it outputs the dialogue information corresponding to the agenda target branch; after outputting the dialogue information corresponding to the agenda target branch, it continues to execute the dialogue process.
[0084] For example, when the agenda execution strategy information indicates immediate execution, the node trigger intent is "repaid".
[0085] If the intent information in the node trigger intent is "I have repaid the loan," and the user behavior is also "I have repaid the loan," then the user behavior is determined to be consistent with the intent information in the node trigger intent. If the dialogue information initiating the node branch is "Received," and the configured agenda dialogue parameters (dialogue output configuration) are concatenated dialogue information (concatenated dialogue), and the dialogue information in this round of dialogue is "You have no outstanding debts," and the agenda dialogue information is "Thank you for your cooperation," then the dialogue information corresponding to the output agenda target branch will be "You have no outstanding debts, thank you for your cooperation."
[0086] S210: After outputting the dialogue information corresponding to the agenda target branch, continue executing the dialogue process.
[0087] For example, such as Figure 3a The image shows an intelligent dialogue method agenda configuration interface in one embodiment. The terminal configuration process includes: the terminal clicks to enter dialogue flow management, under Task Dialogue Flow - Agenda First Round, selects the agenda, clicks Add, and then... Figure 3b As shown, enter another agenda configuration interface, and configure according to different business needs: agenda name, trigger node, trigger intent, target node, target branch, preconditions, etc.
[0088] After configuration, you can proceed as follows: Figure 3a The interface shown queries the corresponding agenda configuration in response to input of the agenda name or trigger node.
[0089] For example, such as Figure 4 The diagram shown illustrates a flowchart of an intelligent dialogue method. The steps of intelligent dialogue may include, for example: Figure 4The illustrated steps.
[0090] The intelligent dialogue method described above, by judging whether the user behavior is consistent with the intention information in the agenda trigger intention when the dialogue flow of the dialogue robot is executed to the trigger node configured with the agenda; when the user behavior is consistent with the intention information, obtaining the agenda execution strategy information; when the agenda execution strategy information indicates immediate execution, judging whether the user behavior is consistent with the node trigger intention; if yes, initiating the dialogue information of the node branch corresponding to the trigger node, and outputting the dialogue information corresponding to the agenda target branch after initiating the dialogue information of the node branch; after outputting the dialogue information corresponding to the agenda target branch, continue to execute the dialogue flow. By configuring the agenda for the trigger node in the dialogue flow, and obtaining the corresponding execution strategy information according to the user behavior, initiating the dialogue information based on the execution strategy information, the configuration of the dialogue flow is simplified, and at the same time, the problem that the dialogue flow cannot cope with unknown conditions due to the uncertainty of the user behavior is effectively avoided. When the user does not follow the pre-set order for the dialogue, the dialogue flow can also be flexibly coped with.
[0091] In one embodiment, as Figure 5 illustrated, the step of deferred execution includes:
[0092] S502, when the agenda execution strategy information indicates deferred execution, continue to execute the dialogue flow.
[0093] Specifically, when the agenda execution strategy information indicates deferred execution, the terminal continues to execute the dialogue flow from the trigger node.
[0094] S504, when it is detected that the current node in the dialogue flow is the target node, taking the target branch corresponding to the target node as the agenda target branch, and outputting the dialogue information corresponding to the agenda target branch.
[0095] Wherein, the current node refers to the current node of the dialogue flow, the target node refers to the node corresponding to the target branch pre-configured, and the target branch refers to the branch pre-configured corresponding to the target node. The target branch, the agenda target branch refers to the branch (jump path) corresponding to the agenda.
[0096] Specifically, when it is detected that the current node in the dialogue process is the target node, the target branch corresponding to the target node is taken as the agenda target branch, after the dialogue information of the agenda target branch is initiated, when the configured agenda dialogue parameter (dialogue output configuration) is not to output dialogue information, the terminal selects the dialogue information of the current dialogue process as the dialogue information corresponding to the agenda target branch; when the configured agenda dialogue parameter (dialogue output configuration) is to splice dialogue information (spliced dialogue), the dialogue information of the current dialogue process and the dialogue information of the agenda are spliced to obtain the dialogue information corresponding to the agenda target branch; when the configured agenda dialogue parameter (dialogue output configuration) is to replace dialogue information (replacement dialogue), the agenda dialogue information is selected as the dialogue information corresponding to the agenda target branch, and the dialogue information corresponding to the agenda target branch is obtained; and the dialogue information corresponding to the agenda target branch is output.
[0097] S506, after outputting the dialogue information corresponding to the agenda target branch, the dialogue process is continued to be executed.
[0098] For example, when the agenda execution strategy information indicates deferred execution, the terminal continues to execute the dialogue process. The user behavior is "I am myself", the current node is the "confirm yourself" target node, the target node is "confirm yourself", the target branch is "confirm yourself", the current node is the target node, and the target branch corresponding to the target node is "I am myself". The dialogue information of the current dialogue process is "thank you for your cooperation", the dialogue information of the agenda is "your outstanding amount is 500 yuan", when the configured agenda dialogue parameter (dialogue output configuration) is to replace dialogue information (replacement dialogue), the output dialogue information corresponding to the agenda target branch is "your outstanding amount is 500 yuan".
[0099] In this embodiment, by continuing to execute the dialogue process when the agenda execution strategy information indicates deferred execution, taking the target branch corresponding to the target node as the agenda target branch when it is detected that the current node in the dialogue process is the target node, outputting the dialogue information corresponding to the agenda target branch, and continuing to execute the dialogue process after outputting the dialogue information corresponding to the agenda target branch. Simplify the configuration of the dialogue process, while effectively avoiding the problem that the dialogue process cannot cope with unknown conditions due to the uncertainty of user behavior. When the user does not follow the pre-set order for the dialogue, the dialogue process can also be flexible.
[0100] It should be understood that, although Figures 2-5 The steps in the flowchart of the application are displayed in sequence according to the direction of the arrow, but these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, Figures 2-5At least one of the steps in the method can include a plurality of steps or stages which are not necessarily performed at the same time but can be performed at different times and in which the order of the steps or stages is not necessarily sequential but can be performed in rotation or alternation with other steps or steps or stages in other steps.
[0101] In one embodiment, as shown in FIG. 6, an intelligent dialogue method device is provided, which can be a software module or a hardware module, or a combination of the two as part of a computer device, and specifically includes a first judgment module 602, an acquisition module 604, a second judgment module 606, an initiation module 608, and a continuation execution module 610. Figure 6
[0102] The first judgment module 602 is configured to determine whether the user behavior is consistent with the intent information in the agenda trigger intent when the dialogue flow of the dialogue robot is executed to the trigger node configured with the agenda.
[0103] The acquisition module 604 is configured to acquire the agenda execution strategy information when the user behavior is consistent with the intent information.
[0104] The second judgment module 606 is configured to determine whether the user behavior is consistent with the node trigger intent when the agenda execution strategy information indicates immediate execution.
[0105] The initiation module 608 is configured to initiate the dialogue information of the node branch corresponding to the trigger node and output the dialogue information corresponding to the agenda target branch if the user behavior is consistent with the node trigger intent.
[0106] The continuation execution module 610 is configured to continue executing the dialogue flow after outputting the dialogue information corresponding to the agenda target branch.
[0107] In one embodiment, the agenda execution strategy information includes first agenda execution strategy information and second agenda execution strategy information. The acquisition module 604 is further configured to determine whether the trigger node is configured with a precondition when the user behavior is consistent with the intent information. When the precondition is not configured, the acquisition module 604 acquires the first agenda execution strategy information corresponding to the unconfigured precondition. When the precondition is configured, the acquisition module 604 acquires the second agenda execution strategy information corresponding to the configured precondition.
[0108] In one embodiment, the acquisition module 606 is further configured to determine whether the user behavior is consistent with the precondition when the precondition is configured. If the user behavior is consistent with the precondition, the acquisition module 606 acquires the second agenda execution strategy information corresponding to the user behavior consistent with the precondition. If the user behavior is not consistent with the precondition, the acquisition module 606 acquires the second agenda execution strategy information corresponding to the user behavior inconsistent with the precondition.
[0109] In one embodiment, the initiating module 608 is further configured to initiate the dialogue information of the node branch corresponding to the trigger node; after initiating the dialogue information of the node branch, process the dialogue information of the current round of dialogue procedure and the dialogue information of the agenda, to obtain the dialogue information of the agenda target branch; and output the dialogue information of the agenda target branch.
[0110] In one embodiment, the initiating module 608 is further configured to, when the configured agenda dialogue parameter is not to output dialogue information, select the dialogue information of the current round of dialogue procedure as the dialogue information of the agenda target branch; when the configured agenda dialogue parameter is to splice dialogue information, splice the dialogue information of the current round of dialogue procedure and the dialogue information of the agenda, to obtain the dialogue information of the agenda target branch; and when the configured agenda dialogue parameter is to replace dialogue information, select the dialogue information of the agenda as the dialogue information of the agenda target branch.
[0111] In one of the embodiments, the initiating module 608 is further configured to, if not, output the dialogue information of the agenda target branch; and the continuing execution module 610 is further configured to, after outputting the dialogue information of the agenda target branch, continue to execute the dialogue procedure.
[0112] In one embodiment, as shown in FIG. 6, the apparatus further includes a postponing execution module 612, wherein: Figure 7
[0113] The postponing execution module 612 is configured to, when the agenda execution strategy information indicates postponing execution, continue to execute the dialogue procedure; when it is detected that the current node in the dialogue procedure is the target node, take the target branch corresponding to the target node as the agenda target branch, and output the dialogue information of the agenda target branch; and after outputting the dialogue information of the agenda target branch, continue to execute the dialogue procedure.
[0114] The aforementioned intelligent dialogue method, device, computer equipment, and storage medium, when the dialogue robot's dialogue flow reaches a trigger node configured with an agenda, determine whether the user's behavior is consistent with the intent information in the agenda triggering intent; if the user's behavior is consistent with the intent information, obtain agenda execution strategy information; if the agenda execution strategy information indicates immediate execution, determine whether the user's behavior is consistent with the node triggering intent; if so, initiate dialogue information for the node branch corresponding to the trigger node, and after initiating the dialogue information for the node branch, output the dialogue information corresponding to the agenda target branch; after outputting the dialogue information corresponding to the agenda target branch, continue executing the dialogue flow. By configuring the trigger nodes in the dialogue flow with an agenda and obtaining the corresponding execution strategy information based on the user's behavior, and initiating dialogue information based on the execution strategy information, the configuration of the dialogue flow is simplified, while effectively avoiding the problem of the dialogue flow being unable to cope with unknown situations due to the uncertainty of user behavior. This allows the dialogue flow to flexibly respond even when the user does not engage in dialogue in a pre-set order.
[0115] For specific limitations regarding intelligent dialogue devices, please refer to the limitations on intelligent dialogue methods described above, which will not be repeated here. Each module in the aforementioned intelligent dialogue device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0116] In one embodiment, a computer device is provided, which may be a terminal or a server. In this embodiment, the computer device is described as a terminal, and its internal structure diagram is as follows. Figure 8 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an intelligent dialogue method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad located on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0117] Those skilled in the art can understand that Figure 8 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0118] In one embodiment, a computer device is also provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0119] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps in the above-mentioned method embodiments.
[0120] In one embodiment, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium. The processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.
[0121] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. Any reference to memory, storage, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not as a limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0122] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, however, as long as the combinations do not conflict with each other, they should be considered to be within the scope of the present disclosure.
[0123] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be pointed out that for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. An intelligent dialog method, characterized by, The method comprises: When the dialogue flow of the dialogue robot is executed to a trigger node configured with an agenda, it is determined whether the user behavior is consistent with the intent information in the agenda trigger intent configured on the trigger node; When the user behavior is consistent with the intent information in the agenda trigger intent, agenda execution strategy information corresponding to the agenda is obtained, the agenda execution strategy information comprising immediate execution or delayed execution; When the agenda execution strategy information indicates immediate execution, it is determined whether the user behavior is consistent with the node trigger intent of the trigger node; If the user behavior is consistent with the node trigger intent, the dialogue information of the node branch corresponding to the trigger node is initiated, and after the dialogue information of the node branch is initiated, when the configured agenda dialogue parameter is no output of dialogue information, the dialogue information of the current round of the dialogue flow is selected as the dialogue information corresponding to the agenda target branch, when the configured agenda dialogue parameter is splicing dialogue information, the dialogue information of the current round of the dialogue flow and the dialogue information of the agenda are spliced to obtain the dialogue information corresponding to the agenda target branch, when the configured agenda dialogue parameter is replacement dialogue information, the dialogue information of the agenda is selected as the dialogue information corresponding to the agenda target branch, and the dialogue information corresponding to the agenda target branch is output; if the user behavior is not consistent with the node trigger intent, the dialogue information corresponding to the agenda target branch is output; When the agenda execution strategy information indicates delayed execution, the dialogue flow is continued to be executed from the trigger node; when it is detected that the current node in the dialogue flow is a target node pre-configured by the agenda, the target branch corresponding to the target node is taken as an agenda target branch, and the dialogue information corresponding to the agenda target branch is output; After the dialogue information corresponding to the agenda target branch is output, the dialogue flow is continued to be executed.
2. The method of claim 1, wherein, The agenda execution strategy information comprises first agenda execution strategy information and second agenda execution strategy information; The obtaining of the agenda execution strategy information when the user behavior is consistent with the intent information in the agenda trigger intent comprises: When the user behavior is consistent with the intent information in the agenda trigger intent, it is determined whether a precondition is configured for the trigger node; When the precondition is not configured, first agenda execution strategy information corresponding to the precondition is obtained; When the precondition is configured, second agenda execution strategy information corresponding to the precondition is obtained.
3. The method of claim 2, wherein, The obtaining of the second agenda execution strategy information corresponding to the precondition when the precondition is configured comprises: When the precondition is configured, it is determined whether the user behavior is consistent with the precondition; If yes, the second agenda execution strategy information corresponding to the case that the user behavior is consistent with the precondition is obtained; If no, the second agenda execution strategy information corresponding to the case that the user behavior is not consistent with the precondition is obtained.
4. An intelligent dialog apparatus characterized by comprising: The device comprises: The first judging module is configured to judge whether the user behavior is consistent with the intention information in the agenda trigger intention configured on the trigger node when the dialogue flow of the dialogue robot is executed to the trigger node configured with the agenda. The obtaining module is configured to obtain agenda execution strategy information corresponding to the agenda when the user behavior is consistent with the intention information in the agenda trigger intention, the agenda execution strategy information including immediate execution or delayed execution. The second judging module is configured to judge whether the user behavior is consistent with the node trigger intention of the trigger node when the agenda execution strategy information indicates immediate execution. The initiating module is configured to initiate dialogue information of a node branch corresponding to the trigger node if the user behavior is consistent with the node trigger intention, and select dialogue information of the dialogue flow of the current round as dialogue information of an agenda target branch after the dialogue information is initiated, splice the dialogue information of the current round with dialogue information of the agenda to obtain dialogue information of the agenda target branch if the configured agenda dialogue parameter is splicing dialogue information, select the dialogue information of the agenda as dialogue information of the agenda target branch if the configured agenda dialogue parameter is replacing dialogue information, and output the dialogue information of the agenda target branch; output dialogue information of the agenda target branch if the user behavior is not consistent with the node trigger intention. The delayed execution module is configured to continue to execute the dialogue flow from the trigger node when the agenda execution strategy information indicates delayed execution, and output dialogue information of an agenda target branch when it is detected that a current node in the dialogue flow is a target node of the agenda preconfigured. The continuing execution module is configured to continue to execute the dialogue flow after the dialogue information of the agenda target branch is outputted.
5. The apparatus of claim 4, wherein, The agenda execution strategy information includes first agenda execution strategy information and second agenda execution strategy information, and the obtaining module is further configured to judge whether a precondition is configured for the trigger node when the user behavior is consistent with the intention information in the agenda trigger intention. The first agenda execution strategy information corresponding to the precondition not configured is obtained when the precondition is not configured. The second agenda execution strategy information corresponding to the precondition configured is obtained when the precondition is configured.
6. The apparatus of claim 5, wherein, The obtaining module is further configured to judge whether the user behavior is consistent with the precondition when the precondition is configured, obtain the second agenda execution strategy information corresponding to the user behavior consistent with the precondition if yes, and obtain the second agenda execution strategy information corresponding to the user behavior not consistent with the precondition if no. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. The processor executes the computer program to realize the steps of the method in any one of claims 1 to 3.
8. A computer readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 3.
9. A computer program product comprising computer instructions stored in a computer readable storage medium, characterized in that, The computer instructions, when executed by a processor, implement the steps of the method of any one of claims 1 to 3.
Citation Information
Patent Citations
Man-machine interaction method and device and electronic equipment
CN110472030A
Intelligent dialogue method and device, computer equipment and storage medium
CN112669011A