WO2021082836A1 - Procédé de dialogue avec un robot, appareil et dispositif, ainsi que support d'enregistrement lisible par ordinateur - Google Patents

Procédé de dialogue avec un robot, appareil et dispositif, ainsi que support d'enregistrement lisible par ordinateur Download PDF

Info

Publication number
WO2021082836A1
WO2021082836A1 PCT/CN2020/117925 CN2020117925W WO2021082836A1 WO 2021082836 A1 WO2021082836 A1 WO 2021082836A1 CN 2020117925 W CN2020117925 W CN 2020117925W WO 2021082836 A1 WO2021082836 A1 WO 2021082836A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
instance
input information
scene instance
information
Prior art date
Application number
PCT/CN2020/117925
Other languages
English (en)
Chinese (zh)
Inventor
何柯君
夏晓松
覃非
Original Assignee
中国银联股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2021082836A1 publication Critical patent/WO2021082836A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/243Natural language query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing

Definitions

  • This application relates to the technical field of robot dialogue, and in particular to a method, device, equipment and computer-readable storage medium for robot dialogue.
  • a robot with a dialogue function is essentially a computer program that communicates with people through voice or text.
  • robots with dialogue functions have been widely used in finance, education, medical care, e-commerce, smart devices and other fields. Excellent robots can significantly improve people's work efficiency, saving enterprises more manpower and time costs.
  • Robots in related technologies rely on a knowledge base to achieve dialogue.
  • the knowledge base is divided into three parts: matching rules, question and answer knowledge base, and response template.
  • the input information is first analyzed through natural language technology to determine the user’s intention, and then the knowledge base’s matching rules are used to match the most similar problem to the input information, and then according to The response template gives the corresponding answer.
  • natural language processing, machine learning, text mining and other technologies are used to optimize the matching method to improve the accuracy of the robot's response.
  • the embodiments of the present application provide a robot dialogue method, device, equipment, and computer-readable storage medium, which can simplify the process of the robot searching for response information and improve the efficiency and accuracy of the robot dialogue.
  • an embodiment of the present application provides a robot dialogue method, which includes:
  • an embodiment of the present application provides a robot dialogue device, which includes:
  • the control module is used to obtain the user's input information; call the scene instance in the scene library to determine the target scene instance matched by the input information; display the response information returned by the execution unit;
  • the scene library is used to store preset scene instances
  • the execution unit is configured to query response information of the input information in the target scene instance in a preset resource warehouse; and return the response information to the control module;
  • the resource warehouse is used to store the input information contained in each scenario instance and the corresponding response information.
  • an embodiment of the present application provides a robot dialogue device, which includes a processor and a memory storing computer program instructions;
  • the processor implements the robot dialogue method described in the first aspect of the embodiments of the present application when the processor executes the computer program instructions.
  • an embodiment of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores computer program instructions.
  • the robot described in the first aspect of the embodiments of the present application is implemented. Dialogue method.
  • the embodiment of the application is provided with scene instances corresponding to different dialogue scenes. After the user's input information is successfully matched with the pre-stored scene instance, the query and reply of response information are performed according to the matched target scene instance. It can be seen that this embodiment limits the search range of the response information, thereby reducing the amount of data corresponding to the search range, and also simplifies the process of searching for the response information, thereby improving the efficiency of the robot conversation. Moreover, after the search process is simplified, the possibility of searching errors is reduced, thereby improving the accuracy of the conversation reply.
  • FIG. 1 is a schematic flowchart of an embodiment of the robot dialogue method of the present application
  • FIG. 2 is a schematic flowchart of another embodiment of the robot dialogue method of the present application.
  • FIG. 3 is a schematic flowchart of another embodiment of the robot dialogue method of the present application.
  • FIG. 4 is a schematic structural diagram of an embodiment of the robot dialogue device of the present application.
  • FIG. 5 is a schematic structural diagram of another embodiment of the robot dialogue device of the present application.
  • Fig. 6 is a schematic diagram of the hardware structure of an embodiment of the robot dialogue device of the present application.
  • Robots with conversational functions can significantly improve the efficiency of data center operations.
  • robots with conversational functions have begun to be used in application scenarios such as intelligent customer service and Chatbot-based Operations (ChatOps).
  • the key to the realization of dialogue-enabled robotics technology is to build a knowledge base that meets the needs.
  • Two core functional components need to be designed around the knowledge base, namely, Natural Language Understanding (NLU) and Natural Language Expression (Natural Language Generation, NLG). ).
  • NLU Natural Language Understanding
  • NLG Natural Language Generation
  • the realization algorithm model of robot dialogue in related technologies is mainly divided into two types: retrieval model and generative model:
  • the embodiments of the application are applied to a retrieval model, and the retrieval model requires that the knowledge base be divided into three parts: matching rules, question and answer knowledge base, and response template.
  • the retrieval model requires that the knowledge base be divided into three parts: matching rules, question and answer knowledge base, and response template.
  • After obtaining the user's input information first analyze the user's intentions through natural language technology, and then use the matching rules of the knowledge base to match the closest question to the question library, and then give the corresponding answer according to the response template.
  • natural language processing, machine learning, text mining and other technologies are used to optimize the matching method to improve the accuracy of the robot's response.
  • the retrieval model is more suitable for scenarios where the scope of use is clear and the dialogue intent is clear.
  • the answer of the robot based on the retrieval model is of high quality, and there will be no grammatical errors, unclear semantics, and confusion in the dialogue response. Therefore, the robot dialogue operation oriented to the enterprise scene is mainly realized based on the retrieval model.
  • the embodiment of the present application achieves the purpose of improving the efficiency and accuracy of the dialogue by dividing specific scenes for the dialogue of the robot.
  • Fig. 1 shows a schematic flowchart of an embodiment of the robot dialogue method of the present application.
  • the robot dialogue method may include:
  • the human-computer interaction between the user and the robot may be voice interaction, or realized through a touch screen or keyboard.
  • this application does not limit specific human-computer interaction methods.
  • a similar conversational intention of the user should be summarized, that is, a scenario instance of the robot.
  • the possible input intentions of the user can be divided based on the scene through the scene instance, so that it is convenient to provide a personalized response for each type of scene in the subsequent, and can make the robot have better responsiveness, and can adapt to the needs of complex and changeable application scenarios. .
  • this design ensures that the new scene instance will not cause query interference to the existing scene instance after the addition of the new scene instance, and realizes the rapid expansion of the robot dialogue range.
  • the display method here may be display on the screen, or voice broadcast, or display through a user terminal connected to the robot, etc.
  • the application does not limit the specific display method.
  • the embodiment of the present application is provided with scene instances corresponding to different dialogue scenes. After the user's input information is successfully matched with the pre-stored scene instance, the query and display of response information are performed according to the matched template scene instance. It can be seen that this embodiment limits the search range of the response information, thereby reducing the amount of data corresponding to the search range, and also simplifies the search process of the response information, thereby improving the efficiency of the robot conversation. Moreover, after the search process is simplified, the possibility of searching errors is reduced, thereby improving the accuracy of the conversation reply.
  • the present application also provides other embodiments, as shown in FIG. 2, which shows a schematic flowchart of another embodiment of the robot dialogue method of the present application.
  • the method for determining the target scene instance matched by the input information may include:
  • S102b Determine whether the input information is valid input in the last matched scene instance, if so, use the last matched scene instance as the target scene instance; go to S103;
  • S102c Among the scene instances included in the preset scene library, determine the target scene instance matching the input information, and save the target scene instance as the most recently matched scene instance, and then proceed to S103.
  • the successfully matched scene instance after each successful matching of the scene instance, the successfully matched scene instance will be saved, for example, it can be saved through a cache, so that after the next user input information, if the user's input information matches the most recently matched scene instance , It is no longer necessary to query and match the scene instance, but can directly query the response information under the most recently matched scene instance, that is, the embodiment of the present application can realize the state maintenance of multiple rounds of conversations and reduce the number of conversation query scene instances. The amount of data at the same time improves the efficiency of session processing.
  • the user can switch between scene instances and realize multiple rounds of dialogue between the user and the robot.
  • the above valid input refers to that the input information meets the input requirements of the most recently matched scene instance.
  • the process of judging whether the input information is valid input can be: judging whether the input information meets the preset input rules of the last matched scene instance; or it can also be: matching the input information with the last matched scene instance If it matches, it means it is a valid input.
  • the method of saving the successfully matched scene instance may be: using the successfully matched scene instance to update the previously saved scene instance of the most recent match. In this way, at most, only one matching scene instance, that is, one target scene instance, can be saved at the same time.
  • the update may not be performed, but the scene instance that was successfully matched this time is directly saved separately. In this case, there may be a situation in which multiple matched scene instances are saved at the same time. After each input information is received, it is only necessary to determine whether the input information is valid input in the last saved scene instance.
  • the specific method used above is not limited in this application.
  • S102 may further include:
  • the method of determining the target scene instance matching the input information specifically includes: The preset matching order is sequentially matched with the scene instances contained in the scene library. If the matching is successful, the matching operation is stopped.
  • the preset matching order is: first match the professional scene instance, then match the retrieval scene instance, and finally match the session Scene instance.
  • each professional scene instance contained in the scene library determine whether there is a target scene instance matching the input information
  • retrieval scene instance is a target scene instance, then proceed to S103; if the retrieval scene instance is not a target scene instance, it is determined whether the conversation scene instance contained in the scene library is a target scene instance matching the input information.
  • the matching between the input information and the scene instance in this embodiment refers to the complete match between the key text feature in the input information and the text feature of the scene instance. That is, the matching process is as follows: extract the key text features in the input information; compare the key text features with the text features of the scene instance currently undergoing the matching process, if the two are exactly the same, the matching is successful; otherwise, the matching fails.
  • the conversation can be divided into three types: professional conversation, retrieval conversation, and conversation scenario conversation.
  • the search type dialogue includes some queries for professional knowledge, such as Frequently Asked Questions (FAQ) and so on.
  • Conversational conversations include natural communication conversations, such as daily greetings.
  • the content of professional type conversations includes other conversations besides the above two, mainly some content related to the enterprise, such as the position of the company employee, the employee's business scope, the company's business scope, and the company's product list. Since the professional scene has a wide range of more complex conversational requirements, the professional scene includes multiple professional scene instances, while the retrieval scene and the conversation scene only include one scene instance.
  • all the scene instances in the scene library may be formed into a work sequence in a certain order to facilitate the traversal of the scene instances during the scene process.
  • the priority order of the scene instances is the professional scene instance, the retrieval scene instance, and the conversation scene instance.
  • Multiple professional scene instances can be sorted according to the preset weight and creation time of the scene instance.
  • This method can facilitate the traversal process of scene instances and find matching scene instances as soon as possible.
  • the robot can distinguish different users, and can simultaneously establish multiple conversation flows for different users.
  • the way to distinguish different users may be voiceprint recognition, or may also be distinguished according to the user's login account, which is not limited in this application.
  • the robot can distinguish between different users, there can only be one conversation flow at the same time, and the input information obtained by the robot can come from different users.
  • the user’s input information may not be entered strictly in accordance with the input rules or input fields. Therefore, it cannot be completely matched with the professional scene instance. However, because the user’s input information actually belongs to the scope of the professional scene instance, even If it is matched with the retrieval scene instance or the conversation scene instance, the matching will not succeed, which will lead to the failure of the response and reduce the usability of the robot.
  • the method may also include :
  • the recommended professional scene instance is taken as the target scene instance.
  • the robot recommends the professional scene instance suitable for the user's input information, so that when the user's input information is not rigorous enough, the appropriate professional scene can be selected as much as possible
  • the instance responds to it to improve the accuracy of the robot conversation.
  • the process of judging whether there is a recommended professional scene instance in the scene library may be:
  • the professional scene instance whose matching degree reaches the preset matching degree threshold is taken as the recommended professional scene instance.
  • the professional scene instance where the matching degree of the text feature and the key text feature in the input information exceeds the preset matching degree threshold is recommended, because the meaning of the input information is basically determined by the key text in the input information.
  • the characteristics are determined, therefore, the professional scene instance that can reach a certain degree of matching with the key text characteristics is likely to be the content that the user wants to query.
  • the recommended professional scene instance is determined according to whether the user's input information is similar to the professional scene instance, but because the user's input information is not accurate, there may be multiple recommended professions found at the same time. In the case of the scene instance, and the recommended professional scene instance may also be different from the user's needs, if the recommended professional scene instance is directly used by default, it may cause the wrong response message to be returned to the user.
  • the method further includes:
  • the recommended professional scene instance is taken as the target scene instance.
  • the user can select one of them as the recommended professional scene instance according to their actual needs. In the case that there is only one recommended professional scene instance, the user can also determine whether the recommended professional scene instance meets his own needs. Therefore, in these embodiments, the recommended professional scene instance is not directly used, but the user selects the professional scene instance according to his own needs. The user experience is better and the reliability of the robot dialogue is higher.
  • each pre-stored scenario instance includes a preset execution rule
  • the execution rule includes each state node corresponding to the user's input information and the execution operation corresponding to each state node.
  • state nodes can include any of the following combinations: input information enters the scene instance for the first time, waiting for input information, input information is invalid, input information is valid, the scene instance exits due to unresponsiveness beyond a preset time, and the scene implementation is actively ended.
  • other state nodes can also be included.
  • the execution rules corresponding to different scene instances can be the same or different.
  • the execution rules corresponding to specific scene instances can be determined according to actual conditions, such as personalized design according to user intentions. Not limited.
  • the robot conversation method may also include:
  • the input information is an instance of entering the target scene for the first time, extract the user authority corresponding to the input information;
  • the user's authority determine whether it is allowed to query the response information of the input information in the target scenario instance through the resource warehouse.
  • the input information entering the target scene instance for the first time refers to: the current target scene instance is obtained by matching the current input information, rather than the last matched scene instance, that is, after the target scene instance is successfully matched, The response message has not been queried in this scenario instance. Since each scenario instance corresponds to part of the information in the resource warehouse, this part of information may not be inquired by everyone. Therefore, for the scenario instance corresponding to this part of the information that requires permission to query, enter the target for the first time after entering the information After the scenario instance, you need to first determine the user authority corresponding to the current input information. If the user has the authority, he can find the corresponding response information from the resource warehouse and reply. This method can meet the permission setting requirements of different information in the enterprise scenario, and enrich the scope of the robot's dialogue scenario.
  • the method for extracting the user authority corresponding to the input information may be: obtaining the user identifier carried in the input information, and querying the user authority corresponding to the user identifier in the pre-stored authority list.
  • the user ID can be a user name or account number, etc.
  • the acquisition method can be to receive the user ID input by the user through a touch screen or keyboard, or it can also be a comparison of the voiceprint information input by the voice to obtain the user ID. Not limited.
  • the robot conversation method further includes:
  • the saved scene event status is updated according to the response information, and the scene event status includes the key features of the response information.
  • the control logic for the state of the scene event can be implemented by methods such as a finite state machine or a decision tree.
  • step S103 of some embodiments of the present application the process of querying the input information in the preset resource warehouse for response information in the target scenario instance may include:
  • the response information is determined by the saved scene event state and input information, so that the robot can conduct a continuous dialogue with the user, and meet the purpose of the user's multiple rounds of dialogue.
  • the identification information of the target scene instance and the status of the scene event are saved, in order to achieve the continuous execution of multiple rounds of conversations and reduce the number of repeated matching scene instances.
  • the conversation information of the previous user is always saved, it will not only take up a large storage space, but also affect the conversation processing of subsequent users.
  • the robot conversation method further includes: deleting the target scene instance corresponding to the case that the user’s input information is not received within a preset time from the moment the scene event state is updated. All the saved information of the, the saved information includes the scene event status and the identification information of the target scene instance.
  • the time is started at the time when the state of the scene event is updated each time (that is, the time when a dialogue is completed). If the user's input information is not received within the preset time, it is likely to indicate that the user has stopped the dialogue with the robot Therefore, at this time, the related information about the previous user dialogue (that is, the saved scene event state and the identification information of the target scene instance) can be deleted.
  • This method can reduce the storage space occupied by excessive invalid saved information during the dialogue between the robot and the user, and reduce the influence between the dialogues of different users.
  • the traditional robot knowledge base is constructed based on combed knowledge, and cannot call the Application Programming Interface (API) interface and data source of the external platform.
  • API Application Programming Interface
  • the robot is not flexible enough in the dialogue process, and its ability to adapt to scene changes is poor.
  • the resource warehouse may include at least two of an offline database, a preset knowledge base, a tool script, and an open API.
  • some pre-edited offline data can be stored in the offline database, such as the names of the employees of the enterprise and the names of the businesses that the employees are responsible for.
  • the preset knowledge base can include explanations of some professional terms and knowledge content related to the business of the enterprise.
  • Tool scripts can include some corporate business-related script names, script content, and script download links.
  • API is an application program interface. The robot can call the corresponding application level through the open API, or access the corresponding platform for data acquisition. Therefore, through the above methods, the functional boundaries of traditional task-based robots are broken, the data sources of the resource warehouse are greatly expanded, and the flexibility of the robot in the dialogue process and the expansion ability to adapt to scene changes are improved.
  • Fig. 3 shows a schematic flowchart of another embodiment of the robot dialogue method of the present application.
  • the dialogue flow between the user and the robot can include:
  • S202 Judge whether there is a scene instance of the most recent match saved, if there is, go to S203; if not, go to S204;
  • S203 Judge whether the input information is valid input in the last matched scene instance, if it is valid input, go to S208; if it is invalid input, go to S204;
  • S205 Determine whether there is a recommended professional scene instance that can be used as a target scene instance in the scene library, if it exists, go to S208; if it does not exist, go to S206;
  • S206 Determine whether the retrieval scene instance contained in the scene library is a target scene instance matching the input information, if yes, go to S208; if not, go to S207;
  • S207 Determine whether the conversation scene instance included in the scene library is a target scene instance matching the input information, and if the matching is successful, enter S208;
  • the embodiments of the present application are provided with scene instances corresponding to different dialogue scenes. After the user's input information is successfully matched with the scene instances in the preset scene library, the response information is processed according to the target scene instance obtained by the match. Inquiries and responses. It can be seen that this embodiment limits the search range of the response information, thereby reducing the amount of data corresponding to the search range, and simplifies the process of searching for the response information, thereby improving the efficiency of the robot conversation. Moreover, after the search process is simplified, the possibility of searching errors is reduced, thereby improving the accuracy of the conversation reply.
  • the embodiment of the present application saves the most recently matched scene instance, so that it may no longer be necessary to match the scene instance after receiving the user's input information next time, thereby further improving the efficiency of the robot conversation. And by setting recommended professional scene instances, it is possible to reduce the situation where matching scene instances cannot be found, and to improve the reliability of the robot conversation.
  • Chatbot The systems that Zhang San is responsible for include: small and micro merchant service platforms, and QRC, a two-dimensional code system.
  • Chatbot Checking the permission is passed, it is checking for you...
  • Chatbot INC000107-0113:39 to deal with the transaction wave of ICBC Guangdong Branch.
  • Chatbot Exited the operation and maintenance event query window. I can continue to serve you.
  • the robot After the robot obtains the user input information "Hello", it checks that there is no currently saved scene instance of the most recent match. It traverses the work sequence of matching professional scene instances without success, there is no recommended professional scene instance, and the search scene instance is not matched. Finally, Call the conversation scenario instance to process the input information, the input information matches the natural conversation "Hello” in the conversation scenario instance successfully, and a response message of "Hello” is generated, "Welcome to the operation robot, what can I do for you?" Reply.
  • the robot After the robot obtains the user input information "Zhang San", it checks that there is no currently saved scene instance of the most recent match, the work sequence of traversing the matching professional scene instance is unsuccessful, and there is no recommended professional scene instance, and the scene instance matches the input information. Success, in line with the text characteristics of the address book in the retrieval scenario instance.
  • the retrieval scenario instance obtains the address book information of "Zhang San” by querying the address book, and generates response information to return to the user.
  • the robot After the robot obtains the user input information "Yes", it checks the current recommended professional scene instance, confirms the user's intention to enter the scene instance according to the user input information, updates the saved target scene instance to "query system” and deletes the professional scene recommendation In the state, the scene instance of the "query system” is called to process the user's input information.
  • Responsible systems include: small and micro merchant service platform, QR code system QRC.”
  • response messages are generated and returned to users.
  • the robot After the robot obtains the user's input information "How is the ICBC incident handled by Zhang San", it checks the dialogue status.
  • the currently saved professional scene instance is the "query system”, and calls the professional scene instance to process the user's input information.
  • the "query system” professional scene instance judges the input information to be invalid according to the user's input information, and then checks whether there is a recommended professional scene instance according to the input information "How is the ICBC incident handled by Zhang San” (this embodiment is based on the aforementioned In the case that the input information is invalid in the matched scene instance, directly retrieve the recommended professional scene instance scheme), and find that the text characteristics of the scene instance matching the "query operation and maintenance event" match the recommended conditions, and generate a prompt "May I ask” Do you want to switch to the "Operation and Maintenance Event Query” window?" Return to the user.
  • the robot After the robot obtains the user input information "Yes”, it checks that there are currently recommended professional scene instances, confirms the user's intention to enter the scene instance based on the user input information, updates the saved target scene instance to "query operation and maintenance events" and deletes the profession In the recommended state of the scene, the scene instance of the "query operation and maintenance event" is called to process the user's input information.
  • the "query operation and maintenance event" professional scenario example first analyzes the state node of the user's input information that meets the "first entry” state, and invokes the execution operation of the state node to extract the user authority corresponding to the input information. After the user permission check is passed, a prompt “Check permission passed, querying for you" is generated and returned to the user.
  • the robot After the robot obtains the user input information "1", it checks that there is currently a matching professional scene instance "query operation and maintenance event", and calls the professional scene instance to process the user input.
  • the robot continuously monitors the life cycle of the matched professional scene instance saved by the user.
  • the life cycle of the "query operation and maintenance event" is 1 minute. If the user has no subsequent input within 1 minute, the scene instance will be logged out after 1 minute, that is, delete "Query operation and maintenance event” corresponds to all the saved information, and generate a prompt "Exited the operation and maintenance event query window. I can continue to serve you” to inform the user that the currently matched professional scene instance has been cancelled.
  • FIG. 4 shows a schematic structural diagram of an embodiment of the robot dialogue device of the present application.
  • the robot dialogue device 300 may include:
  • the scene library 320 is used to store preset scene instances
  • the resource warehouse 340 is used to store various input information and corresponding response information under each scene instance; the resource warehouse 340 is a resource collection of knowledge, data, and calling functions that the robot depends on;
  • the control module 310 is used to obtain the user's input information; call the scene instance in the scene library 320 to determine the target scene instance matched by the input information; display the response information returned by the execution unit 330;
  • the execution unit 330 is used to query the response information of the input information in the target scene instance in the preset resource warehouse 340; and return the response information to the control module 310, where the execution unit 330 is a functional adapter for the robot to operate the resource warehouse 340,
  • the resources in each resource warehouse 340 such as knowledge bases, APIs, etc., need to be adapted using a separate execution unit 330.
  • the execution unit 330 provides operation support for the scene instance to process user input.
  • the embodiment of the present application is provided with scene instances corresponding to different dialogue scenes. After the user's input information is successfully matched with the scene instances in the preset scene library, the query and display of response information are performed according to the matched target scene instances. It can be seen that this embodiment limits the search range of the response information, thereby reducing the amount of data corresponding to the search range, and also simplifies the search process of the response information, thereby improving the efficiency of the robot conversation. Moreover, after the search process is simplified, the possibility of searching errors is reduced, thereby improving the accuracy of the conversation reply. Among them, the control module 310 implements matching and invocation of scene instances through the functional interface provided by the scene library 320.
  • the scene library 320 may further include: composing all scene instances into a working sequence in a certain order, so that the control module 310 can traverse the scene instances.
  • the priority order of the scene instances is professional scene instance, retrieval scene instance, and conversation scene instance. Multiple professional scene instances can be sorted according to the preset weight and creation time of the scene instance. Of course, this application does not limit this. This method can facilitate the traversal process of the control module 310, and find a matching scene instance as soon as possible.
  • the scene library 320 may further include: under the control of the control module 310, the cache module 350 saves the identification information of the successfully matched scene instance.
  • control module 310 further includes:
  • the life cycle management unit is used to control the scene library 320 to delete all the saved information corresponding to the target scene instance in the cache module 350 when the user's input information is not received within a preset time from the time the scene event state is updated,
  • the saved information includes the status of the scene event and the identification information of the target scene instance.
  • the time is started every time the scene event status is updated, that is, the time when a dialogue is completed. If the user's input information is not received within the preset time, it is likely that the user has stopped the dialogue with the robot. Therefore, at this time, the related information about the conversation with the previous user can be deleted, and the related information about the conversation with the previous user is the saved scene event state and the identification information of the target scene instance.
  • This method can reduce the storage space occupied by excessive invalid saved information during the dialogue between the robot and the user, and reduce the influence between the dialogues of different users.
  • the scene library 320 can also be used to perform operations such as creation, deletion, and management of scene instances under the control of the control module 310.
  • FIG. 5 shows a schematic structural diagram of another embodiment of the robot dialogue device of the present application.
  • the robot dialogue device 300 may also include a cache module 350: for storing successfully matched scene instances.
  • the control module 310 may include:
  • the input information obtaining unit is used to obtain the input information of the user
  • the scene determination unit is configured to use the most recently matched scene instance as the target when the most recently matched scene instance is stored and the input information is valid input in the most recently matched scene instance Scene instance; in the case that the most recently matched scene instance is not saved, the matching unit is triggered.
  • the matching unit is used to determine the target scene instance matching the input information among the scene instances included in the preset scene library, and save the target scene instance as the most recently matched scene instance.
  • the response unit is used to respond according to the response information returned by the execution unit 330.
  • the scene instance is saved, which can be specifically cached, so that after the user inputs information the next time, if the user's input information matches the saved scene instance of the most recent match, then It is no longer necessary to query and match scene instances, but can directly query response information under the most recently matched scene instance, that is, the embodiment of the present application can realize the state maintenance of multiple rounds of conversations, and reduce the time when the conversation is inquired about the scene instance. The amount of data improves the efficiency of session processing.
  • the scene determination unit may also be used to trigger the matching unit when the input information is an invalid input in the last matched scene instance.
  • the matching unit may be used to: match the input information with the scene instances contained in the preset scene library 320 in a preset matching order, and if the matching is successful Next, the successfully matched scene instance is obtained, and the above matching operation is stopped.
  • the preset matching sequence is: first match the professional scene instance, then match the retrieval scene instance, and finally match the conversation scene instance.
  • the matching unit may be used to: obtain key text features in the input information; compare the key text features with the text features of the scene instance currently undergoing the matching process, if If the two are exactly the same, the match is successful; otherwise, the match fails.
  • control module 310 can perform preliminary processing of the input information, including decomposition, filtering, and extraction of key text features of the input information.
  • the matching unit specifically includes:
  • the professional matching unit is used to determine whether there is a target scene instance matching the input information in each professional scene instance included in the scene library 320, if it exists, trigger the execution unit 330 if it does not exist, trigger the search matching unit;
  • the search matching unit is used to determine whether the search scene instance contained in the scene library 320 is a target scene instance matching the input information; if so, trigger the execution unit 330; if not, trigger the conversation matching unit;
  • the conversation matching unit is used to determine whether the conversation scene instance contained in the scene library is a target scene instance matching the input information, and if so, trigger the execution unit 330.
  • the matching unit may further include a recommended matching unit, and the professional matching unit triggers the recommended matching unit when none of the matching succeeds.
  • the recommendation matching unit may be used to determine whether there is a recommended professional scene instance in the scene library 320; if there is a recommended professional scene instance, use the recommended professional scene instance as the target scene instance.
  • the robot recommends the professional scene instance suitable for the user's input information, so that when the user's input information is not rigorous enough, the appropriate scene can be selected as much as possible
  • the instance responds to it to improve the accuracy of the robot conversation.
  • the recommended matching unit of some embodiments of the present application may specifically include: extracting key text features in the input information; determining the degree of matching between the key text features and the text features of each professional scene instance contained in the scene library 320; The professional scene instance whose matching degree reaches the preset matching degree threshold is taken as the recommended professional scene instance.
  • the professional scene instance where the matching degree of the text feature and the key text feature in the input information exceeds the preset matching degree threshold is recommended, because the meaning of the input information is basically determined by the key text in the input information.
  • the characteristics are determined, therefore, the professional scene instance that can reach a certain degree of matching with the key text characteristics is likely to be the content that the user wants to query.
  • the recommended matching unit may further include:
  • the prompt unit is used to display the prompt information of whether to enter the recommended professional scene instance; in the case of receiving the entry instruction input by the user, the recommended professional scene instance is taken as the target scene instance.
  • the user can select one of them as the recommended professional scene instance according to their actual needs. In the case that there is only one recommended professional scene instance, the user can also determine whether the recommended professional scene instance meets his own needs. Therefore, in these embodiments, the recommended professional scene instance is not directly used, but the user selects the professional scene instance according to his own needs. The user experience is better and the reliability of the robot dialogue is higher.
  • the scene determination unit may also be used to trigger the recommended matching unit when the input information is invalid in the scene instance of the last match. Thereby reducing the matching time of scene instances and improving the efficiency of dialogue.
  • FIG. 5 shows a schematic structural diagram of a robot dialogue device provided by another embodiment of the present application; in some embodiments of the present application, the robot dialogue device 300 further includes:
  • the scene instance module 360 is used to control the execution unit 330 to obtain response information according to the user's input information and the current target scene instance.
  • scenario instance module 360 may further include:
  • the authority determining unit is used to extract the user authority corresponding to the input information when the input information is entering the target scene instance for the first time; according to the user authority, determine whether to allow the execution unit 330 to query the response information of the input information in the target scene instance.
  • the input information entering the target scene instance for the first time refers to: the current target scene instance is obtained by matching according to the current input information, rather than the last matched scene instance, that is, the current target scene instance is matched after the match is successful. ,
  • the response message has not been queried in this scenario instance. Since each scenario instance corresponds to part of the information in the resource warehouse 340, this part of information may not be inquired by everyone with permission. Therefore, for the scenario instance corresponding to this part of the information that requires permission to query, enter the information for the first time.
  • the user authority corresponding to the current input information needs to be determined first. If the user has the authority, the corresponding response information can be searched from the resource warehouse 340 to reply. This method can meet the permission setting requirements of different information in the enterprise scenario, and enrich the scope of the robot's dialogue scenario.
  • the scenario instance module 360 may further include:
  • the state control unit is used to update the state of the scene event stored in the cache module 350 according to the response information.
  • the state of the scene event includes the key features of the response information.
  • the cache module 350 can also be used to save scene state information.
  • the scene instance module 360 can also be used to: determine the information to be queried according to the saved scene event state and input information; and query the information to be queried through the execution unit 330 Response information under the target scenario instance.
  • the resource warehouse 340 may include at least two of an offline database, a preset knowledge base, a tool script, and an open API.
  • some pre-edited offline data can be stored in the offline database, such as the names of the employees of the enterprise and the names of the businesses that the employees are responsible for.
  • the preset knowledge base can include explanations of some professional terms and knowledge content related to the business of the enterprise.
  • Tool scripts can include some corporate business-related script names, script content, and script download links.
  • API is an application program interface. The robot can call the corresponding application level through the open API, or access the corresponding platform for data acquisition. Therefore, through the above method, the functional boundary of the traditional task-based robot is broken, the data source of the resource warehouse 340 is greatly expanded, and the flexibility of the robot in the dialogue process and the expansion ability to adapt to scene changes are improved.
  • the robot dialogue method and device in the embodiments of the present application can be implemented by a robot dialogue device.
  • Fig. 6 shows a schematic diagram of the hardware structure of an embodiment of the robot dialogue device of the present application.
  • the robot dialogue device 400 includes an input device 401, an input interface 402, a central processing unit 403, a memory 404, an output interface 405, and an output device 406.
  • the input interface 402, the central processing unit 403, the memory 404, and the output interface 405 are connected to each other through the bus 410, and the input device 401 and the output device 406 are respectively connected to the bus 410 through the input interface 402 and the output interface 405, and then communicate with the robot device 400 other components are connected.
  • the input device 401 receives input information from the outside, and transmits the input information to the central processing unit 403 through the input interface 402; the central processing unit 403 processes the input information based on the computer executable instructions stored in the memory 404 to generate output Information, the output information is temporarily or permanently stored in the memory 404, and then the output information is transmitted to the output device 406 through the output interface 405; the output device 406 outputs the output information to the outside of the robot dialogue device 400 for the user to use.
  • the robot dialogue device shown in FIG. 6 can also be implemented as including: a memory storing computer-executable instructions; and a processor, which can implement what is described in the embodiments of the present application when executing the computer-executable instructions Robot dialogue method and device.
  • the embodiments of the present application also provide a computer-readable storage medium on which computer program instructions are stored; when the computer program instructions are executed by a processor, the robot dialogue method provided in the embodiments of the present application is implemented.
  • Examples of computer-readable storage media may be non-transitory computer-readable storage media, including ROM, RAM, magnetic disks, or optical disks.
  • the functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware, or a combination thereof.
  • hardware When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, and so on.
  • ASIC application specific integrated circuit
  • the elements of this application are programs or code segments used to perform required tasks.
  • the program or code segment may be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link through a data signal carried in a carrier wave.
  • Machine-readable medium may include any medium that can store or transmit information.
  • machine-readable media examples include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and so on.
  • the code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.

Abstract

L'invention concerne un procédé, un appareil et un dispositif de dialogue avec un robot, ainsi qu' support d'enregistrement lisible par ordinateur. Le procédé de dialogue avec un robot comprend les étapes consistant à : acquérir des informations d'entrée d'un utilisateur ; déterminer une instance de scénario cible correspondant aux informations d'entrée ; interroger, dans un entrepôt prédéfini de ressources, des informations de réponse pour les informations d'entrée dans l'instance de scénario cible ; et afficher les informations de réponse. Selon les modes de réalisation de la présente demande, le processus d'un robot recherchant des informations de réponse peut être simplifié, ce qui permet d'améliorer l'efficacité et la précision de dialogue avec un robot.
PCT/CN2020/117925 2019-10-30 2020-09-25 Procédé de dialogue avec un robot, appareil et dispositif, ainsi que support d'enregistrement lisible par ordinateur WO2021082836A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911044588.X 2019-10-30
CN201911044588.XA CN110955675B (zh) 2019-10-30 2019-10-30 机器人对话方法、装置、设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2021082836A1 true WO2021082836A1 (fr) 2021-05-06

Family

ID=69976506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117925 WO2021082836A1 (fr) 2019-10-30 2020-09-25 Procédé de dialogue avec un robot, appareil et dispositif, ainsi que support d'enregistrement lisible par ordinateur

Country Status (2)

Country Link
CN (1) CN110955675B (fr)
WO (1) WO2021082836A1 (fr)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955675B (zh) * 2019-10-30 2023-12-19 中国银联股份有限公司 机器人对话方法、装置、设备及计算机可读存储介质
CN111639218A (zh) * 2020-05-12 2020-09-08 广东小天才科技有限公司 一种口语训练的交互方法及终端设备
CN113488036A (zh) * 2020-06-10 2021-10-08 海信集团有限公司 一种多轮语音交互方法、终端及服务器
CN112035650A (zh) * 2020-09-07 2020-12-04 贝壳技术有限公司 信息处理方法、装置、计算机可读存储介质及电子设备
CN112860862B (zh) * 2021-02-01 2022-11-11 北京邮电大学 人机对话中智能体对话语句的生成方法和装置
CN112948555B (zh) * 2021-03-03 2023-09-01 北京奇艺世纪科技有限公司 人机交互方法、装置、电子设备及存储介质
CN113806503A (zh) * 2021-08-25 2021-12-17 北京库睿科技有限公司 一种对话融合方法和装置及设备
CN114510557A (zh) * 2022-01-21 2022-05-17 民商数字科技(深圳)有限公司 自动回复机器人及其控制方法
CN117076649B (zh) * 2023-10-13 2024-01-26 卓世科技(海南)有限公司 一种基于大模型思维链的应急信息查询方法及装置

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094315A (zh) * 2015-06-25 2015-11-25 百度在线网络技术(北京)有限公司 基于人工智能的人机智能聊天的方法和装置
CN105487663A (zh) * 2015-11-30 2016-04-13 北京光年无限科技有限公司 一种面向智能机器人的意图识别方法和系统
CN106056207A (zh) * 2016-05-09 2016-10-26 武汉科技大学 一种基于自然语言的机器人深度交互与推理方法与装置
CN106095834A (zh) * 2016-06-01 2016-11-09 竹间智能科技(上海)有限公司 基于话题的智能对话方法及系统
JP2017037588A (ja) * 2015-08-14 2017-02-16 富士ゼロックス株式会社 情報処理装置及び情報処理プログラム
CN107103005A (zh) * 2016-02-23 2017-08-29 阿里巴巴集团控股有限公司 问答语料的收集方法及装置
CN107741976A (zh) * 2017-10-16 2018-02-27 泰康保险集团股份有限公司 智能应答方法、装置、介质和电子设备
CN110019848A (zh) * 2017-12-22 2019-07-16 深圳市优必选科技有限公司 对话交互方法、装置及机器人
CN110955675A (zh) * 2019-10-30 2020-04-03 中国银联股份有限公司 机器人对话方法、装置、设备及计算机可读存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729471A (en) * 1995-03-31 1998-03-17 The Regents Of The University Of California Machine dynamic selection of one video camera/image of a scene from multiple video cameras/images of the scene in accordance with a particular perspective on the scene, an object in the scene, or an event in the scene
GB0718259D0 (en) * 2007-09-19 2007-10-31 Olton Ltd Apparatus and method for information processing
CN105975511A (zh) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 智能对话的方法及装置
CN109299320B (zh) * 2018-10-30 2020-09-25 上海智臻智能网络科技股份有限公司 一种信息交互方法、装置、计算机设备和存储介质

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094315A (zh) * 2015-06-25 2015-11-25 百度在线网络技术(北京)有限公司 基于人工智能的人机智能聊天的方法和装置
JP2017037588A (ja) * 2015-08-14 2017-02-16 富士ゼロックス株式会社 情報処理装置及び情報処理プログラム
CN105487663A (zh) * 2015-11-30 2016-04-13 北京光年无限科技有限公司 一种面向智能机器人的意图识别方法和系统
CN107103005A (zh) * 2016-02-23 2017-08-29 阿里巴巴集团控股有限公司 问答语料的收集方法及装置
CN106056207A (zh) * 2016-05-09 2016-10-26 武汉科技大学 一种基于自然语言的机器人深度交互与推理方法与装置
CN106095834A (zh) * 2016-06-01 2016-11-09 竹间智能科技(上海)有限公司 基于话题的智能对话方法及系统
CN107741976A (zh) * 2017-10-16 2018-02-27 泰康保险集团股份有限公司 智能应答方法、装置、介质和电子设备
CN110019848A (zh) * 2017-12-22 2019-07-16 深圳市优必选科技有限公司 对话交互方法、装置及机器人
CN110955675A (zh) * 2019-10-30 2020-04-03 中国银联股份有限公司 机器人对话方法、装置、设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN110955675B (zh) 2023-12-19
CN110955675A (zh) 2020-04-03

Similar Documents

Publication Publication Date Title
WO2021082836A1 (fr) Procédé de dialogue avec un robot, appareil et dispositif, ainsi que support d'enregistrement lisible par ordinateur
KR101872863B1 (ko) 채팅봇을 이용한 비즈니스 지원 방법
US11315560B2 (en) Method for conducting dialog between human and computer
US10817578B2 (en) Method and system for providing context based adaptive response to user interactions
US20180075335A1 (en) System and method for managing artificial conversational entities enhanced by social knowledge
US9373322B2 (en) System and method for determining query intent
US11481184B2 (en) Database systems and methods for conversation-driven dynamic updates
CN111611368B (zh) 多轮对话中公共场景对话回溯的方法和装置
US11461398B2 (en) Information platform for a virtual assistant
CN107786430A (zh) 机器人聊天方法及系统
CN110675867A (zh) 智能对话方法、装置、计算机设备及存储介质
KR102307380B1 (ko) 자연어 처리 기반 콜센터 지원 시스템 및 방법
US11615790B1 (en) Disambiguating contacts using relationship data
US10964321B2 (en) Voice-enabled human tasks in process modeling
US8051026B2 (en) Rules collector system and method with user interaction
KR20220155957A (ko) 슬롯 필링 기반의 챗봇 서비스 제공 방법 및 장치
CN114238745A (zh) 一种提供搜索结果的方法及装置、电子设备和介质
CN113360590A (zh) 兴趣点信息的更新方法、装置、电子设备及存储介质
US10606621B2 (en) Assisting users to execute content copied from electronic document in user's computing environment
CN111782776A (zh) 一种通过填槽实现意图识别的方法和装置
KR102518901B1 (ko) 블록 컴포넌트를 이용한 챗봇 서비스 제공 방법 및 장치
US20240073161A1 (en) Message processing method, information processing apparatus, and program
CN114221920B (zh) 基于人工智能的自动接触方法、装置、计算机设备及介质
US11669581B2 (en) Automated hyperlinks for draft emails
JP7093844B2 (ja) 対話システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20881031

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20881031

Country of ref document: EP

Kind code of ref document: A1