Chat robot debugging method and device, electronic equipment and storage medium
By displaying execution information in the chatbot test interface, users can debug within the same interface, which solves the problem of cumbersome debugging processes in the existing technology and improves efficiency and user experience.
Patent Information
- Application Number
- CN202311864673.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-08-30
AI Technical Summary
During the chat robot testing process, the debugging process in the existing technology is cumbersome, and users need to frequently jump to the между chat test interface, JSON code page and build page, resulting in low efficiency.
Provides a chat robot debugging method. By displaying human-machine dialogue and chat robot execution information in the test interface, users can view the execution information of the response content in the same interface, quickly locate problems and debug without frequent jumps.
It simplifies the chatbot debugging process and improves debugging efficiency. Users can directly modify the intent category and edit the response content in the test interface, reducing the number of page jumps and reducing debugging costs.
Smart Images

Figure CN118568208A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more particularly, to a debugging method, device, electronic device, and storage medium for a chatbot. Background Art
[0002] A chatbot (also known as a conversational bot) is a program designed to simulate human conversation or chat, capable of engaging in conversation with humans through dialogue or text. With the rapid development of technologies like artificial intelligence, chatbots have found widespread application in fields such as marketing, customer service, entertainment, and education. Examples include ticket booking bots, restaurant ordering bots, and customer service assistants.
[0003] Before the chatbot is put into use, that is, after it is built, it is necessary to conduct rigorous testing on the built robot to ensure that the entire question-and-answer process with the user can run smoothly and without error in the actual application scenario, that is, to ensure that normal conversations with users can be achieved in the actual application scenario and ultimately meet user expectations.
[0004] In the related art, when testing a chatbot, the user is required to conduct a dialogue test with the robot in the chat test interface to determine whether the chatbot can respond quickly and accurately to the user's questions. If a problem is found in the dialogue test, the user is usually required to leave the current chat test interface and open the JSON and other code pages to see where the problem occurred and the cause of the problem. In addition, after the user finds the root cause of the error, he or she needs to return to the chatbot's setup page to modify the part of the chatbot where the error occurred. Once there are many problems, the user needs to frequently jump between the chat test interface, JSON code page and setup page, resulting in a cumbersome debugging process and low debugging efficiency. Summary of the Invention
[0005] The present disclosure provides a debugging method, device, electronic device and storage medium for a chat robot, in order to at least solve the problem in the above-mentioned related technologies that the debugging process is cumbersome and the debugging efficiency is low when testing the chat robot.
[0006] According to a first aspect of an embodiment of the present disclosure, a method for debugging a chat robot is provided, comprising: providing a test interface; displaying a target test message input by the user and the chat robot's response content to the target test message in a first area of the test interface in response to a message input operation performed by a user through the test interface; displaying execution information corresponding to the response content provided by the chat robot to the target test message in a second area of the test interface, wherein the execution information includes the chat robot's intention recognition result for the target test message, so that the user can determine whether the chat robot accurately recognizes the user's intention; and modifying the intention category corresponding to the target test message in response to the user's intention debugging operation on the intention recognition result.
[0007] Optionally, a text input box is also provided on the test interface, and in response to the user's message input operation through the test interface, the target test message input by the user and the chat robot's response content to the target test message are displayed in the first area of the test interface, including: in response to the user's message input operation through the text input box, the target test message and the chat robot's response content to the target test message are displayed in the first area of the test interface.
[0008] Optionally, a first control is also provided in the second area, and the first control is used for the user to issue intent debugging instructions; in response to the user's intention debugging operation on the intent recognition result, the intent category corresponding to the target test message is modified, including: in response to the user's first click operation on the first control, the intent recognition result is switched to a modifiable state; in response to the user's modification operation on the modifiable intent recognition result, the intent category corresponding to the target test message is modified to the intent category specified by the modification operation.
[0009] Optionally, the execution information also includes the word slot extraction result of the chat robot for the target test message, so that the user can determine whether the chat robot extracts the word slot accurately.
[0010] Optionally, a second control corresponding to the response content is also provided in the first area, and the second control is used for the user to edit the response content of the target test message; the debugging method also includes: in response to the user's second click operation on the second control, displaying an editing question and answer interface, wherein editable robot response content is provided on the editing question and answer interface; in response to the user's editing operation on the editable robot response content, obtaining the user-edited response content; and establishing an association relationship between the target test message and the edited response content.
[0011] Optionally, a third control is also provided on the question-and-answer editing interface, and the third control is used for the user to add the response content corresponding to the target test message; the debugging method also includes: in response to the user's third click operation on the third control, providing a response content input box; in response to the user's input operation through the response content input box, obtaining the response content entered by the user; and establishing an association relationship between the target test message and the response content entered by the user.
[0012] Optionally, the chat robot includes at least one chat robot; the execution information also includes at least one of the following items: attribute information of the current chat robot that provides response content to the target test message; attribute information of the task node at which the current chat robot provides the response content; attribute information of the next task node to which the current chat robot jumps after providing the response content; and word slot information extracted from the historical conversation between the current chat robot and the user.
[0013] According to a second aspect of an embodiment of the present disclosure, a debugging device for a chat robot is provided, comprising: a test interface providing module, configured to provide a test interface; a test message display module, configured to display a target test message input by a user and a response content of the chat robot to the target test message in a first area of the test interface in response to a message input operation performed by a user through the test interface; an execution information display module, configured to display execution information corresponding to the response content provided by the chat robot to the target test message in a second area of the test interface, wherein the execution information includes an intention recognition result of the chat robot for the target test message, so that the user can determine whether the chat robot accurately recognizes the user's intention; an intention debugging module, configured to modify the intention category corresponding to the target test message in response to the user's intention debugging operation on the intention recognition result.
[0014] Optionally, a text input box is also provided on the test interface, and the test message display module is configured to: in response to the message input operation performed by the user through the text input box, display the target test message and the chat robot's response content to the target test message in the first area of the test interface.
[0015] Optionally, a first control is also provided in the second area, and the first control is used for the user to issue intent debugging instructions; the intent debugging module is configured to: in response to the user's first click operation on the first control, switch the intent recognition result to a modifiable state; in response to the user's modification operation on the modifiable intent recognition result, modify the intent category corresponding to the target test message to the intent category specified by the modification operation.
[0016] Optionally, the execution information also includes the word slot extraction result of the chat robot for the target test message, so that the user can determine whether the chat robot extracts the word slot accurately.
[0017] Optionally, a second control corresponding to the response content is also provided in the first area, and the second control is used for the user to edit the response content of the target test message; the debugging device also includes: an editing question and answer interface display module, configured to display an editing question and answer interface in response to the user's second click operation on the second control, wherein editable robot response content is provided on the editing question and answer interface; a first response content acquisition module, configured to obtain the user-edited response content in response to the user's editing operation on the editable robot response content; a first association relationship establishment module, configured to establish an association relationship between the target test message and the edited response content.
[0018] Optionally, a third control is also provided on the question-and-answer editing interface, and the third control is used for the user to add the response content corresponding to the target test message; the debugging device also includes: an input box providing module, configured to provide a response content input box in response to the user's third click operation on the third control; a second response content acquisition module, configured to obtain the response content input by the user in response to the user's input operation through the response content input box; a second association relationship establishment module, configured to establish an association relationship between the target test message and the response content input by the user.
[0019] Optionally, the chat robot includes at least one chat robot; the execution information also includes at least one of the following items: attribute information of the current chat robot that provides response content to the target test message; attribute information of the task node at which the current chat robot provides the response content; attribute information of the next task node to which the current chat robot jumps after providing the response content; and word slot information extracted from the historical conversation between the current chat robot and the user.
[0020] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the debugging method of the chatbot according to the present disclosure.
[0021] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the debugging method of the chat robot according to the present disclosure.
[0022] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
[0023] In the present disclosure, during the testing of a chatbot, the test interface may include a first area for displaying human-computer dialogue and a second area for displaying chatbot execution information. If the user discovers during the test that the chatbot's response to the user's target test message is inaccurate or there is no response, the user can conveniently view the execution information corresponding to the chatbot's response to the target test message within the test interface, thereby quickly locating the problem. The user can then debug the chatbot within the current test interface based on the execution information, i.e., the user can debug the chatbot without frequently jumping to any page, thereby simplifying the debugging process and improving debugging efficiency.
[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0026] Figure 1 is a schematic diagram illustrating a chatbot building page according to an exemplary embodiment of the present disclosure;
[0027] Figure 2 is a schematic diagram illustrating a dialog test without errors, a dialog test with errors, and finding the root cause of the error by viewing JSON code according to an exemplary embodiment of the present disclosure;
[0028] Figure 3 is a flowchart illustrating a debugging method of a chatbot according to an exemplary embodiment of the present disclosure;
[0029] Figure 4 is a schematic diagram illustrating a test interface according to an exemplary embodiment of the present disclosure;
[0030] Figure 5 is a schematic diagram showing that, according to an exemplary embodiment of the present disclosure, an execution information "unrecognized intent" is replaced with a "get intent" button by clicking an intent debugging button;
[0031] Figure 6 is a schematic diagram showing displaying an intent acquisition interface by clicking a “Get Intent” button according to an exemplary embodiment of the present disclosure;
[0032] Figure 7is a schematic diagram illustrating an intention input box included in an intention acquisition interface according to an exemplary embodiment of the present disclosure;
[0033] Figure 8 is a schematic diagram illustrating an intent list included in an intent acquisition interface according to an exemplary embodiment of the present disclosure;
[0034] Figure 9 is a schematic diagram showing displaying an edit question-and-answer button for a target test message in a first area according to an exemplary embodiment of the present disclosure;
[0035] Figure 10 is a schematic diagram showing a display editing question and answer interface according to an exemplary embodiment of the present disclosure;
[0036] Figure 11 is a schematic diagram illustrating that a dialog test is continued directly on the current test interface after debugging is completed according to an exemplary embodiment of the present disclosure;
[0037] Figure 12 1 is a schematic diagram showing the composition of a skin care product recommendation chatbot according to an exemplary embodiment of the present disclosure;
[0038] Figure 13 is a schematic diagram illustrating a test interface for debugging a skin care product recommendation chatbot according to an exemplary embodiment of the present disclosure;
[0039] Figure 14 is a block diagram illustrating a debugging apparatus for a chatbot according to an exemplary embodiment of the present disclosure;
[0040] Figure 15 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0042] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0043] It should be noted that the phrase "at least one of the items" in this disclosure includes three types of parallel situations: "any one of the items", "a combination of any multiple items of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. For another example, "performing at least one of step 1 and step 2" includes the following three parallel situations: (1) performing step 1; (2) performing step 2; and (3) performing steps 1 and 2.
[0044] The intelligent conversational artificial intelligence (AI) platform is a platform for building, training, and managing conversational robots. Through the conversational AI platform, developers and operators use the different types of component capabilities provided by the platform, such as the "slot collection unit," "interface call unit," and "conversation response unit," to build intelligent conversational capabilities for a range of user scenarios, such as conversational robots and virtual assistants.
[0045] Figure 1 : is a schematic diagram showing a chatbot building page according to an exemplary embodiment of the present disclosure. The interface includes a component list area, in which three different types of components are displayed. Figure 1 The interface shows three types of components: "word slot collection unit", "interface call unit" and "dialogue response unit". These three types of components can be used to build a dialogue robot, that is, a chat robot.
[0046] Among them, the "dialogue reply unit" is mainly used to allow the chatbot to send messages to users, guide or inquire about the user's intentions; the purpose of the "slot collection unit" is: when the chatbot needs to ask the user and obtain necessary and key information from the user's reply message, the slot collection unit is required. At the same time, the chatbot will also determine the unit to which the dialogue process will jump next based on the extracted information to achieve dialogue management. The purpose of the "interface call unit" is: in the dialogue process, sometimes the chatbot needs to obtain multiple information from a third-party interface, and fill this information into the corresponding receiving slot for continued use in subsequent processes. At this time, this purpose can be achieved by using a multi-slot interface unit. The multi-slot interface unit can complete the acquisition of multiple slot values within one unit through a single call to the third-party interface.
[0047] Furthermore, the "intent" mentioned above refers to what the user wants to accomplish. Examples include obtaining weather conditions, booking train tickets, ordering food, obtaining instructions for handling a task, and completing the task. The "slot" mentioned above is a variable that stores the key information required for the intent. It can be inherited across conversations, and the chatbot provides subsequent actions and feedback based on the value in the slot.
[0048] For example, suppose the user's intent is to order train tickets. Key elements required for ordering train tickets include departure location, destination, departure time, passengers, and seat class. In this case, the word slots associated with the "order train tickets" intent might be: "departure location," "destination," "departure time," "passengers," and "seat class." By engaging in a conversation with the user, the chatbot can extract the corresponding slot values for each of these five slots from the user's reply. Based on these extracted slot values, the chatbot can then purchase train tickets that meet these requirements and push information about the purchased tickets to the user.
[0049] In related technologies, users mainly build chatbots by dragging and dropping component atoms. Although this way of building chatbots reduces the construction cost, it is only the initial link in the chatbot application process. After the construction is completed, users still need to conduct rigorous testing to ensure that the entire question-and-answer process between the chatbot and the user can run smoothly and accurately in the actual application scenario, that is, to ensure that the chatbot can have normal conversations with the user in the actual application scenario and ultimately meet the user's expectations.
[0050] During the chatbot testing phase, users often spend a significant amount of time analyzing errors and debugging the build process. This is because various errors are common during testing, and these errors are often only presented as error messages. This makes it difficult for users to accurately determine the cause of the error, for example, whether the chatbot failed to interpret a specific intent or a word slot was incorrectly filled. To resolve these issues, users often need to leave the chatbot testing interface and open a code page, such as JSON, to identify the specific issue and its cause. Furthermore, once the user has identified the source of the error, they must return to the chatbot build page to modify the error-prone portion. If multiple issues arise, users must frequently switch between the chatbot testing interface, the JSON code page, and the build page, resulting in a cumbersome and inefficient debugging process.
[0051] Furthermore, only employees with a computer background can understand the relevant code content. For users without a computer background, it is very difficult to understand JSON code, which will further increase the debugging cost of the chatbot.
[0052] Figure 2 1 is a diagram illustrating a dialog test without errors, a dialog test with errors, and finding the root cause of the error by viewing the JSON code according to an exemplary embodiment of the present disclosure. Figure 2 In the error-free dialogue test interface, the "skin care product recommendation" chatbot can accurately identify the user's intention and complete the skin care product recommendation; Figure 2 In the dialog test interface, an error occurs. The "Skincare Recommendation" chatbot fails to recognize the user's intent and fails to recommend skincare products. At this point, the user can open the JSON code page to view the root cause of the error.
[0053] It can be seen that although users expect to be able to build chatbots and intelligent customer service by themselves to reduce their workload, the technical complexity of the construction process forces users to debug back and forth repeatedly, which undoubtedly increases the cost of using chatbots.
[0054] In order to solve the above-mentioned problems existing in the related art, the present disclosure provides a debugging method, device, electronic device and storage medium for a chat robot. During the testing process of the chat robot, a first area for human-computer dialogue and a second area for displaying chat robot execution information can be displayed in the test interface. If the user finds that the chat robot's response to the user's target test message is inaccurate or there is no response during the test process, the user can easily check the execution information corresponding to the response content provided by the chat robot to the target test message in the test interface, and then quickly locate the problem. The user can then debug the chat robot in the current test interface based on the execution information, that is, the user can debug the chat robot without frequently jumping to any page, which simplifies the debugging process and improves debugging efficiency.
[0055] Figure 3 is a flowchart illustrating a debugging method of a chatbot according to an exemplary embodiment of the present disclosure.
[0056] First of all, it should be noted that the chatbot disclosed in the present invention can be a chatbot based on a large language model.
[0057] Reference Figure 3In step 301, a test interface may be provided, and a user (e.g., a tester) may conduct a conversation with the chatbot in the test interface to test whether the chatbot's performance meets the requirements. The test interface may include two areas, namely a first area and a second area. The "first area" may be a human-computer dialogue display area, which is used to display the conversation between the user and the chatbot, that is, to display the target test message input by the user and the chatbot's response information to the target test message. The tester can determine whether the chatbot has accurately responded to the user's target test message based on the content displayed in this area.
[0058] The above-mentioned "second area" can be used to display the execution information corresponding to the response content provided by the chat robot to the target test message. The execution information is used to describe the execution process of the chat robot receiving the target test message and then providing the response content. Specifically, it may include: the chat robot's intention recognition result for the target test message; the chat robot's word slot extraction result for the target test message; when the chat robot includes multiple robots, the relevant information of the current chat robot that provides a response to the target test message, such as name, type, etc.; when the chat robot is constructed by component nodes, the relevant information of the task node that provides the response content, such as node, name type, etc.; attribute information of the next task node to jump to after providing the response content; word slot information extracted from the historical conversation between the chat robot and the user, etc. This application does not make any specific restrictions on this, that is, the above-mentioned execution information can be any information that can help testers locate problems with the chat robot.
[0059] Exemplarily, in one embodiment of the present disclosure, the execution information may be natural language information obtained by converting the chatbot's error from JSON code form into a natural language form.
[0060] It should be noted that, as mentioned above, only employees with a computer background can understand the content of JSON code. For users without a computer background, it is very difficult to understand JSON code. If users are required to browse the JSON code page to find the root cause of the problem, they may find it difficult to accurately find the node where the problem occurs and the cause of the problem due to their lack of professional computer knowledge. Therefore, in the present disclosure, the execution information of the chatbot can be converted from JSON code to natural language form and presented to the user. At this time, even if the employee does not have a professional computer background, he or she can easily understand the specific meaning of the execution information, and then debug the chatbot. That is, the user does not need to undergo special training to find the root cause of the error, which reduces the debugging cost of the chatbot.
[0061] In step 302, in response to the message input operation performed by the user through the test interface, the target test message input by the user and the chat robot's response content to the target test message can be displayed in the first area of the test interface.
[0062] For example, after a user enters the skincare product recommendation test interface, the chatbot can directly send a greeting message to the user in the first area of the test interface. For example, the "greeting message to the user" can be "Hello, welcome to the skincare product recommendation, how can I help you?" At this time, the user can send a target test message in the first area of the test interface to reply to the greeting message. For example, the target test message can be "I want to buy skincare products."
[0063] Figure 4 is a schematic diagram illustrating a test interface according to an exemplary embodiment of the present disclosure. Figure 4 The test interface may include two areas: the area on the right may be the aforementioned "first area," and the area on the left may be the aforementioned "second area." In the first area on the right, a message is displayed in which the chatbot greets the user: "Hello, welcome to our skincare product recommendation site. How may I help you?" Furthermore, the user's target test message in response to the greeting message is displayed: "I want to buy skincare products." Furthermore, Figure 4 The "first area" on the right side and the "second area" on the left side can both be independent sliding areas, that is, they can both be independent areas for turning pages or sliding up and down.
[0064] According to an exemplary embodiment of the present disclosure, a text input box may also be provided on the above-mentioned test interface. In response to the user's message input operation through the text input box, the target test message and the chat robot's response content to the target test message may be displayed in the first area of the test interface.
[0065] For example, return reference Figure 4 , Figure 4 A text input box is displayed at the bottom of the test interface, and a send button is displayed to the right of the text input box. Furthermore, a text prompt is displayed in the text input box: "Press Enter or Click Send after entering your content." Users can enter messages in the text input box, and the first area of the test interface displays the target test message entered by the user and the chatbot's response to the target test message.
[0066] In this way, by setting a text input box in the first area of the test interface, the user can input a test message in the first area of the test interface through the text input box. The operation steps of inputting the test message are simple, convenient and fast.
[0067] Optionally, errors in the chatbot's response to the target test message can be determined and displayed through the execution information in the second area. According to an exemplary embodiment of the present disclosure, errors in the chatbot can be determined by the following method:
[0068] The target test message can be compared with statements stored in a statement library. The statement library may contain pre-stored statements for triggering a conversational function of a chatbot associated with the test interface. If the target test message does not match any of the statements, it can be determined that the chatbot associated with the test interface has an error in failing to recognize the intent corresponding to the target test message.
[0069] It should be noted that a chatbot can be a combination, that is, it can include multiple chatbots, each of which can correspond to different functions, and each chatbot can correspond to a trigger node, which can store statements for triggering the chatbot's conversation function. For example, for the "Order Train Tickets" chatbot, the statements stored in its trigger node can include: "I want to book a train ticket," "Book me a train ticket," "Can you book a train ticket?", "Can you book me a train ticket?", "Give me a train ticket," and so on. In this way, if a test message sent by a user in the first area of the test interface matches a statement stored in the trigger node of the "Order Train Tickets" chatbot, the conversation function of the "Order Train Tickets" chatbot can be triggered, that is, the "Order Train Tickets" chatbot can be used to receive the user account that sent the test message.
[0070] Alternatively, for a "skin care product recommendation" chatbot, the phrases stored in its trigger node may be: "I want to order skin care products," "Order skin care products for me," "Can skin care products be ordered?", "Can you order skin care products for me?", "Give me a skin care product," etc. In this way, if a test message sent by a user in the first area of the test interface matches a phrase stored in the trigger node of the "skin care product recommendation" chatbot, the conversation function of the "skin care product recommendation" chatbot can be triggered, i.e., the "skin care product recommendation" chatbot can be triggered to receive the user account that sent the test message.
[0071] Moreover, the aforementioned “the test message matches a certain statement stored in the trigger node of the chat robot” means that the test message and the statement stored in the trigger node of the chat robot have the same or similar substantive meaning, that is, it is not required that the test message and the statement stored in the trigger node of the chat robot are exactly the same text, as long as the actual meanings expressed by the two are close.
[0072] In this way, when a test message is received, it can be compared with the sentences stored in the chatbot's sentence library, and the intended intent of the test message can be identified based on the comparison results. Because the chatbot's sentence library stores a large number of sentences with similar semantics but different expressions, the chatbot's sentence library has a strong generalization ability to identify user intent, which ensures relatively accurate identification of user intent.
[0073] Return to reference Figure 4 ,exist Figure 4 In the first area on the right side of the test interface shown, the target test message sent by the user is: "I want to buy skin care products". If the target test message does not match any sentence in the sentence library of the chatbot bound to the test interface, it can be determined that the chatbot bound to the test interface has an error in not being able to recognize the intent corresponding to the target test message. In this case, you can Figure 4 The second area on the left side of the test interface is displayed, indicating that the execution information of the intention to be achieved by the target test message "I want to buy skin care products" cannot be recognized. For example, the execution information may be: "Unrecognized intention".
[0074] Optionally, in one embodiment, the chatbot's intention recognition result can be obtained and displayed in the second area. Figure 4 If the user finds that the chatbot’s response to “I want to buy skin care products” is “I don’t know how to answer you”, it can be determined that there is a problem with the chatbot, and then the user can pay attention to the intent recognition results in the second area. At this time, if the intent recognition result is found to be “unrecognized intent”, the user can determine that the chatbot cannot recognize the intent category of “I want to buy skin care products”, and then the chatbot can be debugged.
[0075] According to an exemplary embodiment of the present disclosure, the above-mentioned execution information may further include the chatbot's word slot extraction results for the target test message, so that the user can determine whether the chatbot extracts the word slots accurately.
[0076] For example, the chatbot can extract slot values for the target test message, and the extracted slot values can be displayed in the execution information so that the user can check the extracted slot values to determine whether the chatbot has accurately extracted the slots.
[0077] Optionally, the slot value may be the slot value required to be extracted for the slot corresponding to the chatbot's target node. The target node may be the node currently in conversation with the user account that sent the target test message. Subsequently, if the slot value required to be extracted for the slot corresponding to the target node is not extracted from the target test message, it may be determined that the chatbot has an error in being unable to extract a slot value.
[0078] For example, for the target test message: "I want to buy skin care products", the word slot value can be extracted. If the word slot value required to be extracted for the word slot corresponding to the target node is not extracted from the target test message: "I want to buy skin care products", it can be determined that the chatbot has an error in being unable to extract the word slot value. At this time, you can Figure 4 The second area on the left side of the test interface is displayed with execution information indicating that a word slot value cannot be extracted from the target test message: "I want to buy skin care products." For example, the execution information may be: "Unrecognized word slot."
[0079] In step 303, the chatbot's response to the target test message may be displayed in the second area of the test interface. The response information may include the chatbot's intent recognition result for the target test message, allowing the user to determine whether the chatbot accurately recognizes the user's intent.
[0080] For example, as mentioned above, Figure 4 The second area on the left side of the test interface shows that the chatbot cannot recognize the execution information of the target test message: "Unrecognized Intent", or Figure 4 The second area on the left side of the test interface shows the execution information that the chatbot cannot extract the word slot value from the target test message: "Unrecognized word slot".
[0081] In step 304, in response to the user's intention debugging operation on the above intention recognition result, the intent category corresponding to the target test message can be modified.
[0082] According to an exemplary embodiment of the present disclosure, a first control may also be provided in the above-mentioned second area, and the first control may be used for the user to issue an intent debugging instruction. In response to the user's first click operation on the first control, the intent recognition result may be switched to a modifiable state. Next, in response to the user's modification operation on the modifiable intent recognition result, the intent category corresponding to the target test message may be modified to the intent category specified by the modification operation. Furthermore, the target test message and the modified accurate intent category may be added to the training database of the chatbot for training the chatbot, so that the chatbot can accurately identify the user's intent when it encounters the same or similar problems in the future.
[0083] Return to reference Figure 4 , Figure 4 A second area on the left side of the test interface may also display a first control, namely, an intent debugging button. A first click operation on the intent debugging button input by a user based on the execution information may be received. Specifically, the first click operation on the intent debugging button may be received based on the execution information indicating that the chatbot cannot recognize the intended intent of the target test message.
[0084] Next, in response to the first click operation, an intent acquisition interface may be displayed in the second area. For example, in response to the first click operation, the chatbot originally displayed in the second area cannot recognize the execution information of the intent that the target test message intends to implement: "Unrecognized Intent" may be replaced with a "Get Intent" button. Figure 5 1 is a diagram illustrating an exemplary embodiment of the present disclosure in which, by clicking an intent debugging button, the execution information "Unrecognized Intent" is replaced with a "Get Intent" button. The user can manually click the "Get Intent" button to display the intent acquisition interface in the second area. Figure 6 1 is a schematic diagram showing that an intention acquisition interface is displayed by clicking a “get intention” button according to an exemplary embodiment of the present disclosure. Then, a target intention input by a user in the intention acquisition interface may be received.
[0085] According to an exemplary embodiment of the present disclosure, the intention acquisition interface may include an intention input box. Figure 7 1 is a schematic diagram showing an intention input box included in an intention acquisition interface according to an exemplary embodiment of the present disclosure. Figure 7 The intent input box may display a text prompt message: "Please enter your intent." The target intent entered by the user in the intent input box included in the intent acquisition interface may be received.
[0086] In this way, the user can specify a specific intent for the target test message in the intent input box contained in the intent acquisition interface according to his or her needs, which provides better autonomy and flexibility in specifying a specific intent for the target test message.
[0087] According to an exemplary embodiment of the present disclosure, an intent list may be displayed in the above-mentioned intent acquisition interface, and the intent list may include multiple intents. Figure 8 1 is a schematic diagram showing an intention list included in an intention acquisition interface according to an exemplary embodiment of the present disclosure. Figure 8The intent list may include multiple intent categories. For example, these multiple intent categories may include "women's skin care," "men's skin care," "youth skin care," "elderly skin care," and so on. An intent selection operation input by a user within the intent list may be received. Next, in response to the received intent selection operation, a target intent category may be selected from the multiple intent categories included in the intent list.
[0088] This also allows the intent list to be displayed within the intent acquisition interface, allowing users to select a specific intent from the list as the target test message's corresponding intent. This eliminates the need for users to manually enter the intent's name to specify a specific intent for the target test message, eliminating the tedious step of manually entering the intent's name. This makes specifying a specific intent simple, convenient, and quick.
[0089] Optionally, in one embodiment of the present disclosure, a chatbot acquisition interface may be displayed in the second area of the test interface. A target chatbot entered by a user in the chatbot acquisition interface may be received. The target chatbot may be one of the chatbots bound to the test interface.
[0090] Next, the target test message can be added to the trigger node of the target chat robot, so that when the target test message is detected in the first area during the subsequent debugging process, the target chat robot can be triggered to receive the user account that sent the target test message.
[0091] In this way, when it is determined that the chat robot bound to the test interface cannot recognize the intention corresponding to the target test message, the user can obtain a specific chat robot according to his or her needs, and add the target test message to the trigger node of the acquired specific chat robot. Through such a setting during the test process, it can be ensured that in the actual application scenario, each message sent by the user can have a chat robot that matches the intention the user wants to achieve to receive the user in a timely manner, thereby ensuring that the user's purpose and expectations are quickly achieved. Furthermore, the present disclosure can automatically add the target test message to the trigger node of the acquired specific chat robot, that is, the user can debug the chat robot without any page jump, which simplifies the debugging process and improves debugging efficiency.
[0092] Optionally, in one embodiment of the present disclosure, the chatbot acquisition interface may include a chatbot input box. A target chatbot entered by a user in the chatbot input box within the chatbot acquisition interface may be received. For example, the name of the target chatbot entered by the user in the chatbot input box within the chatbot acquisition interface may be received.
[0093] In this way, users can specify specific intents for the target test message in the chat robot input box contained in the chat robot acquisition interface according to their own needs. That is, they can specify the chat robot used to receive the target test message by entering the name of a specific chat robot in the chat robot input box. The autonomy and flexibility of specifying specific intents for the target test message are better.
[0094] Optionally, in one embodiment of the present disclosure, the chatbot acquisition interface may further display a chatbot list, which may include chatbots bound to the test interface. It should be noted that there may be multiple chatbots bound to the test interface, but these multiple chatbots should be chatbots with slightly different intents. That is, the intents corresponding to these chatbots are similar, but they may differ slightly in the target audience and the specific functions they implement.
[0095] Exemplarily, the multiple chat robots bound to the test interface may be “women's skin care chat robot”, “men's skin care chat robot”, “youth group skin care chat robot”, “elderly group skin care chat robot”, and so on.
[0096] A chatbot selection operation input by a user in the chatbot list may be received. Next, in response to the received chatbot selection operation, a target chatbot may be selected from the chatbots bound to the test interface and included in the chatbot list.
[0097] In this way, a chatbot list can be displayed in the chatbot acquisition interface, allowing users to select a specific chatbot from the chatbot list as the chatbot to receive the target test message. This eliminates the need for users to manually enter the chatbot's name in order to specify a specific chatbot to receive the target test message. This eliminates the tedious step of manually entering the chatbot's name, making the process of specifying a specific chatbot simple, convenient, and quick.
[0098] According to an exemplary embodiment of the present disclosure, a second control corresponding to the response content may be further provided in the first area, and the second control may be used for allowing the user to edit the response content of the target test message.
[0099] In response to a second click of the second control, a Q&A editing interface may be displayed. The Q&A editing interface may include editable robot response content. Next, in response to the user editing the editable robot response content, the edited response content may be retrieved. An association may then be established between the target test message and the edited response content.
[0100] Exemplarily, the first area may also display an edit question and answer button for the target test message, and the edit question and answer button is the second control. Figure 9 2 is a schematic diagram showing an exemplary embodiment of the present disclosure in which an edit question-answer button for a target test message is displayed in a first area. Figure 9 , since the user has specified the target intent in the intent acquisition interface, Figure 9 The "Get Intent" button in the second area of the test interface will be replaced with the target intent specified by the user. For example, the target intent could be "skin care." Alternatively, if the chatbot has correctly identified the intent corresponding to the user's target test message, the target intent will be displayed in the second area.
[0101] Optionally, in one embodiment of the present disclosure, assuming that the chatbot specified by the user for the target test message: "I want to buy skin care products" is a "skin care" chatbot, the above-mentioned "Get Intent" button will be replaced with the name of the "skin care" chatbot specified by the user: "skin care".
[0102] It should be noted that in the case where the dialogue test process is forced to terminate due to failure to identify the intent of the target test message or failure to extract the word slot value, a fallback strategy can also be used. For example, the fallback strategy can be a sentence: "I don't know how to reply to you." Figure 9 For the target test message, "I want to buy skin care products," since the intended purpose of this test message cannot be identified, the above-mentioned fallback strategy can be sent in the first area of the test interface: "I don't know how to reply to you." Furthermore, the above-mentioned "Edit Q&A button" can be displayed near this fallback strategy.
[0103] A second click operation of the user on the edit question and answer button based on the execution information may be received. Then, in response to the received second click operation, an edit question and answer interface may be displayed. Figure 10 2 is a schematic diagram showing a display editing question and answer interface according to an exemplary embodiment of the present disclosure. Figure 10 , the editing question and answer interface displays the target test message that the user previously sent in the first area of the test interface: "I want to buy skin care products."
[0104] Next, a reply message entered by the user in the Q&A editing interface in response to the target test message can be received. Specifically, the user can directly enter a reply message in response to the target test message "I want to buy skin care products" in the "Robot Answer" input box: "Are you buying it for yourself or for someone else?" Then, an association can be established between the target test message "I want to buy skin care products" and the user-entered answer: "Are you buying it for yourself or for someone else?" The target test message and the reply message can then be associated and stored in the chatbot's training database for training the chatbot, so that the chatbot will know how to respond to the same or similar questions in the future.
[0105] Optionally, in one embodiment of the present disclosure, the above-mentioned reply message can be added to the current node. This allows the chatbot to use the reply message added to the current node to reply to the target test message if a target test message is detected in the first region during subsequent debugging. For example, the reply message added to the current node can reply to the target test message: "Are you buying this for yourself or someone else?" The target test message: "I want to buy skin care products" can be replied to. The "current node" can be the node among the multiple nodes included in the chatbot that is currently in conversation with the user account that sent the target test message.
[0106] In this way, by adding the user-set reply message to the chatbot's node for the user account currently receiving the target test message, it can be ensured that when the chatbot receives the same or similar messages during actual use, it knows how to respond, thereby ensuring that the conversation between the user and the chatbot can proceed smoothly and achieve the user's goals and expectations. Furthermore, the present disclosure can automatically update the user's set reply message to the chatbot, that is, the user can debug the chatbot without any page jump, simplifying the debugging process and improving debugging efficiency.
[0107] According to an exemplary embodiment of the present disclosure, a third control may be provided on the above-mentioned question-answer editing interface, and the third control may be used for allowing the user to add response content corresponding to the target test message.
[0108] In response to the user's third click operation on the third control, a response content input box may be provided. Next, in response to the user's input operation through the response content input box, the response content entered by the user may be obtained. Then, an association relationship may be established between the target test message and the response content entered by the user.
[0109] For example, refer to Figure 10The Q&A editing interface may display a "Add Answer" option, which is the third control mentioned above. In response to the user's third click operation on the "Add Answer" option, a response content input box may be provided to add a response content to the user question, i.e., the target test message. In other words, a single user question can correspond to multiple robot answers.
[0110] Furthermore, after debugging is completed, you can continue to conduct dialogue testing on the current test interface, that is, after debugging is completed, you can directly continue to verify whether the performance of the chatbot can meet the preset requirements on the current test interface. Figure 11 It is a schematic diagram showing that the dialogue test is continued directly on the current test interface after the debugging is completed according to an exemplary embodiment of the present disclosure.
[0111] It should be noted that users can decide which component nodes the chatbot contains and which component nodes should be connected based on their own needs. For example, Figure 12 : is a schematic diagram showing the composition of a skin care product recommendation chatbot according to an exemplary embodiment of the present disclosure. Figure 12 The skin care product recommendation chatbot contains a total of 10 component nodes, namely: "Start" node, "Ask gender" node, "Ask whether it is sensitive skin" node, "Ask age" node, "Ask the target of purchase" node, "Ask what type of skin care products you want to buy" node, "Recommendation description" node, "Recommend product" node, "Complete task" node and "Abnormal process" node.
[0112] Among them, the "start" node is the aforementioned "trigger node", that is, the "start" node stores at least one sentence for triggering the dialogue function of the corresponding chat robot.
[0113] The "Ask Gender" node is primarily used to inquire about the user's gender. The node is named "Ask Gender," and its corresponding phrase can be "Are you a boy or a girl?" The corresponding word slot is "gender," and the conditional jump logic for this node can include two options: "Gender confirmed equals male" and "Gender confirmed equals female."
[0114] The "Ask if you have sensitive skin" node is mainly used to inquire whether the user's skin type is sensitive. The name of the "Ask if you have sensitive skin" node is "Ask if you have sensitive skin", the corresponding wording of the "Ask if you have sensitive skin" node can be "Is your skin type sensitive?", the corresponding word slot of the "Ask if you have sensitive skin" node is "skin type", and the conditional jump logic corresponding to the "Ask if you have sensitive skin" node can include two items: "sensitive skin" and "not sensitive skin".
[0115] The "Ask Age" node is primarily used to inquire about the user's age. The node is named "Ask Age," and its corresponding phrase can be "How old are you?" The corresponding word slot is "age," and the corresponding conditional jump logic can include two options: "Age is less than or equal to 30 years old" and "Age is greater than 30 years old."
[0116] The "Ask the person for whom the purchase is intended" node is mainly used to inquire about who the user is buying skin care products for. The name of the "Ask the person for whom the purchase is intended" node is "Ask the person for whom the purchase is intended", the corresponding language of the "Ask the person for whom the purchase is intended" node can be "Are you buying it for yourself or for someone else?", the corresponding word slot of the "Ask the person for whom the purchase is intended" node can be "the person for whom the purchase is intended", and the conditional jump logic corresponding to the "Ask the person for whom the purchase is intended" node can include two items, namely: "the person for whom the purchase is intended is equal to oneself", and "the person for whom the purchase is intended is equal to other people". Among them, "the person for whom the purchase is intended is equal to oneself" means that the user who is currently talking to the chatbot is buying skin care products for himself; "the person for whom the purchase is intended is equal to other people" means that the user who is currently talking to the chatbot is buying skin care products for someone other than himself.
[0117] The node "Ask if you want to buy hydrating / whitening skin care products" is mainly used to ask users whether they want to buy hydrating or whitening skin care products. The name of the node "Ask if you want to buy hydrating / whitening skin care products" is "Ask if you want to buy hydrating / whitening skin care products", the corresponding wording of the node "Ask if you want to buy hydrating / whitening skin care products" can be "Which type of skin care products do you want to buy, hydrating or whitening?", the corresponding word slot of the node "Ask if you want to buy hydrating / whitening skin care products" is "the type of skin care products you want to buy", and the conditional jump logic of the node "Ask if you want to buy hydrating / whitening skin care products" can include two items, namely: "Want to buy hydrating skin care products" and "Want to buy whitening skin care products".
[0118] The "Recommendation Description" node is primarily used to send a skincare product recommendation to the user after collecting the corresponding slot values for each slot in the skincare product recommendation chatbot. For example, the corresponding phrase for the "Recommendation Description" node might be "Based on your situation, I recommend this facial cleanser." The name of this "Recommendation Description" node is "Recommendation Description."
[0119] The "Recommended Products" node is mainly used to call the Application Programming Interface (API) provided by the service provider based on the word slot value extracted from the conversation with the user, and then push the relevant information of the product obtained by calling the API to the user. For example, "relevant information about the product" may include but is not limited to: the name of the product, the function introduction of the product, the origin of the product, etc. The name of the "Recommended Products" node is "Recommended Products"; the conditional jump logic corresponding to the "Recommended Products" node may include two items, namely: "Successful call to the API to complete the skin care product recommendation", and "Interface call exception causes the skin care product recommendation to fail."
[0120] The "Task Completed" node is primarily used to send a prompt to the user after successfully recommending a skincare product, indicating that the skincare product recommendation service has ended. For example, the prompt could be, "This skincare product recommendation has ended. Thank you for your trust. Goodbye." The name of the "Task Completed" node is "Task Completed."
[0121] The "Exception Process" node is primarily used to send a notification to the user when a skincare product recommendation fails due to an API call exception. For example, the notification could be "Sorry, the access address is incorrect." The name of this "Exception Process" node is "Exception Process."
[0122] It should be noted that multiple conditional jump logics of the preceding component node can point to different subsequent component nodes, or can point to different conditional jump logics of the same subsequent component node, or can all point to the same conditional jump logic of the same subsequent component node. This needs to be set based on actual conditions. Figure 12 The connection method between different component nodes shown in the figure is only an exemplary description.
[0123] According to an exemplary embodiment of the present disclosure, the above-mentioned chatbot may include at least one chatbot.
[0124] The execution information may also include at least one of the following items:
[0125] Attribute information of the current chatbot that provides response content to the target test message; attribute information of the task node to which the current chatbot provides response content; attribute information of the next task node to which the current chatbot jumps after providing the response content; and word slot information extracted from the historical conversation between the current chatbot and the user.
[0126] For example, assuming that Figure 12 The skin care product recommendation chatbot shown in the figure is being debugged, and has currently been debugged to the 4th component node of the skin care product recommendation chatbot, namely the "Ask Age" node. Figure 13 3 is a schematic diagram illustrating a test interface for debugging a skin care product recommendation chatbot according to an exemplary embodiment of the present disclosure.
[0127] Reference Figure 13 , Figure 13 The right area of the test interface is the dialogue test area. From the dialogue content contained in the dialogue test area, we can know that the robot currently receiving users is the "skin care product recommendation chat robot"; the currently extracted word slot values are: "gender = female" and "skin type = not sensitive skin"; the fourth component node of the skin care product recommendation chat robot has been debugged, that is, the "ask about age" node; the next node adjacent to the current node among the multiple nodes contained in the current robot, that is, the node to be jumped to is the "ask about the target of the purchase" node and the "ask about the hydrating / whitening type of skin care products you want to buy" node. The above information can also be displayed on Figure 13 In the second area of the test interface.
[0128] In this way, in addition to displaying the recognized intent and extracted word slot values in the test interface, other information related to the debugging process can also be displayed, so that users can have an intuitive and clear understanding of the debugging progress and other situations, and have a comprehensive and complete grasp of the overall debugging process.
[0129] Furthermore, as mentioned above, the fourth component node of the skincare product recommendation chatbot has been debugged, namely the "Ask Age" component node. The type of this component node is "Word Slot Collection Unit", that is, this component node needs to extract word slot values from the messages sent by users. Return to Reference Figure 13 The user's current reply message is: "What does 'how old are you?'" Obviously, the "Ask Age" component node cannot extract the word slot value, i.e., the specific age value, from this message. At this point, the dialog test process is forced to terminate at the currently debugged component node, i.e., the "Ask Age" component node.
[0130] Next, the user can manually edit a reply message to the message "What does your age mean?" For example, the reply message can be: "What is your age?" It should be noted that the implementation process of editing a reply message to the target test message has been explained in detail above and will not be repeated here.
[0131] Then, the user's reply message "How old are you?" to the message "What does your age mean?" can be automatically added to the fourth component node of the skincare product recommendation chatbot, namely the "Ask Age" node. This way, during subsequent debugging, when the "What does your age mean?" message is detected in the first area, the reply message "How old are you?" added to the "Ask Age" node can be used to reply to the test message "What does your age mean?"
[0132] It should be noted that the phrase "how old are you?" is quite formal, and some users may not know its specific meaning. In this case, the user's response may not be the message the chatbot is looking for. In this case, the chatbot may not be able to extract the word slot value from the user's response, which may cause the dialogue test process to be forced to terminate. However, the phrase "how old are you?" is relatively easy to understand, and most users can understand its meaning. In this case, the user can be easily induced to say the response message the chatbot needs. In this case, the chatbot is likely to successfully extract the word slot value from the user's response message, thus ensuring the smooth progress of the dialogue test process and avoiding the phenomenon of debugging being blocked due to the inability to extract word slot values.
[0133] Furthermore, when multiple lines of speech exist within the same component node, an upper limit on the number of times each line of speech can be sent can be set. Furthermore, if the word slot value required by the component node cannot be extracted for a long time, the multiple lines of speech contained in the component node can be sent in the conversation area in a loop traversal manner until the number of times each line of speech has been sent reaches the upper limit for that line of speech, or until a word slot value is successfully extracted. It should be noted that the multiple lines of speech contained within the same component node can have the same or similar actual meaning but are described in different ways.
[0134] For example, for the aforementioned "Ask Age" node, it may contain two phrases: "How old are you this year?" and "How old are you?". If the word slot value required for the "Ask Age" node is not extracted for a long time, the two phrases contained in the component node can be sent in the conversation area in a loop traversal manner. For example, the phrase "How old are you this year?" can be sent in the conversation area first. If the word slot value is not extracted from the message replied to by the user based on the phrase "How old are you this year?", the phrase "How old are you this year?" can be sent in the conversation area. If the word slot value is still not extracted from the message replied to by the user based on the phrase "How old are you this year?", the phrase "How old are you this year?" can be sent again in the conversation area until the number of times each phrase is sent reaches the upper limit of the number of times for that phrase, or until a word slot value is successfully extracted.
[0135] In this way, by sending words with the same or similar actual meaning but different description methods multiple times, the user can be induced to say the reply message required by the chat robot with a high probability. That is, at this time, the chat robot can successfully extract the word slot value from the user's reply message with a high probability, thereby ensuring that the dialogue test process proceeds smoothly, avoiding the phenomenon that the word slot value cannot be extracted due to the single word or the low frequency of word sending, thereby causing the debugging process to be blocked.
[0136] Figure 14 is a block diagram illustrating a debugging apparatus of a chatbot according to an exemplary embodiment of the present disclosure.
[0137] Reference Figure 14 The debugging device 1400 of the chat robot may include a test interface providing module 1401, a test message display module 1402, an execution information display module 1403 and an intention debugging module 1404.
[0138] The test interface providing module 1401 can provide a test interface, and a user (e.g., a tester) can conduct a conversation with the chatbot in the test interface to test whether the chatbot's performance meets the requirements. The test interface can include two areas, namely a first area and a second area. The "first area" can be a human-computer dialogue display area, which is used to display the dialogue between the user and the chatbot, that is, displaying the target test message input by the user and the chatbot's response information to the target test message. The tester can determine whether the chatbot has accurately responded to the user's target test message based on the content displayed in this area.
[0139] The above-mentioned "second area" can be used to display the execution information corresponding to the response content provided by the chat robot to the target test message. The execution information is used to describe the execution process of the chat robot receiving the target test message and then providing the response content. Specifically, it may include: the chat robot's intention recognition result for the target test message; the chat robot's word slot extraction result for the target test message; when the chat robot includes multiple robots, the relevant information of the current chat robot that provides a response to the target test message, such as name, type, etc.; when the chat robot is constructed by component nodes, the relevant information of the task node that provides the response content, such as node, name type, etc.; attribute information of the next task node to jump to after providing the response content; word slot information extracted from the historical conversation between the chat robot and the user, etc. This application does not make any specific restrictions on this, that is, the above-mentioned execution information can be any information that can help testers locate problems with the chat robot.
[0140] Exemplarily, in one embodiment of the present disclosure, the execution information may be natural language information obtained by converting the chatbot's error from JSON code form into a natural language form.
[0141] It should be noted that, as mentioned above, only employees with a computer background can understand the content of JSON code. For users without a computer background, it is very difficult to understand JSON code. If users are required to browse the JSON code page to find the root cause of the problem, they may find it difficult to accurately find the node where the problem occurs and the cause of the problem due to their lack of professional computer knowledge. Therefore, in the present disclosure, the execution information of the chatbot can be converted from JSON code to natural language form and presented to the user. At this time, even if the employee does not have a professional computer background, he or she can easily understand the specific meaning of the execution information, and then debug the chatbot. That is, the user does not need to undergo special training to find the root cause of the error, which reduces the debugging cost of the chatbot.
[0142] In response to the message input operation performed by the user through the test interface, the test message display module 1402 can display the target test message input by the user and the chat robot's response content to the target test message in the first area of the test interface.
[0143] For example, after a user enters the skincare product recommendation test interface, the chatbot can directly send a greeting message to the user in the first area of the test interface. For example, the "greeting message to the user" can be "Hello, welcome to the skincare product recommendation, how can I help you?" At this time, the user can send a target test message in the first area of the test interface to reply to the greeting message. For example, the target test message can be "I want to buy skincare products."
[0144] According to an exemplary embodiment of the present disclosure, a text input box may also be provided on the above-mentioned test interface. In response to the user's message input operation through the text input box, the test message display module 1402 may display the target test message and the chat robot's response content to the target test message in the first area of the test interface.
[0145] In this way, by setting a text input box in the first area of the test interface, the user can input a test message in the first area of the test interface through the text input box. The operation steps of inputting the test message are simple, convenient and fast.
[0146] According to an exemplary embodiment of the present disclosure, the above-mentioned execution information may further include the chatbot's word slot extraction results for the target test message, so that the user can determine whether the chatbot extracts the word slots accurately.
[0147] For example, a slot value can be extracted for a target test message. The slot value can be the slot value required to be extracted for the slot corresponding to the chatbot's target node, which can be the node currently in conversation with the user account that sent the target test message. If the slot value required for the slot corresponding to the target node is not extracted from the target test message, it can be determined that the chatbot has an error in being unable to extract a slot value.
[0148] For example, a slot value can be extracted for the target test message "I want to buy skin care products." If the slot value required for the slot corresponding to the target node is not extracted from the target test message "I want to buy skin care products," it can be determined that the chatbot has an error in extracting the slot value. In this case, the execution information indicating that the slot value could not be extracted from the target test message "I want to buy skin care products" can be displayed in the second area on the left side of the test interface. For example, this execution information can be: "Unrecognized slot."
[0149] The execution information display module 1403 can display the execution information corresponding to the chatbot's response content to the target test message in the second area of the test interface. The execution information may include the chatbot's intent recognition result for the target test message, so that the user can determine whether the chatbot accurately recognizes the user's intent.
[0150] In response to the user's intention debugging operation on the above intention recognition result, the intention debugging module 1404 can modify the intent category corresponding to the target test message.
[0151] According to an exemplary embodiment of the present disclosure, a first control may also be provided in the second area, and the first control may be used for the user to issue an intent debugging instruction. In response to the user's first click operation on the first control, the intent debugging module 1404 may switch the intent recognition result to a modifiable state. Next, in response to the user's modification operation on the modifiable intent recognition result, the intent debugging module 1404 may modify the intent category corresponding to the target test message to the intent category specified by the modification operation.
[0152] According to an exemplary embodiment of the present disclosure, the chatbot debugging apparatus 1400 may further include a Q&A interface display module, a first response content acquisition module, and a first association relationship establishment module. A second control corresponding to the response content may also be provided in the first area, allowing the user to edit the response content of the target test message.
[0153] In response to a second click operation on the second control by the user, the Q&A editing interface display module may display a Q&A editing interface. The Q&A editing interface may include editable robot response content. Next, in response to a user editing operation on the editable robot response content, the first response content acquisition module may acquire the user-edited response content. The first association establishment module may then establish an association between the target test message and the edited response content.
[0154] According to an exemplary embodiment of the present disclosure, the chatbot debugging apparatus 1400 may further include an input box providing module, a second response content acquisition module, and a second association relationship establishment module. A third control may also be provided on the Q&A editing interface, allowing the user to add a response content corresponding to the target test message.
[0155] In response to the user's third click operation on the third control, the input box providing module may provide a response content input box. Next, in response to the user's input operation through the response content input box, the second response content obtaining module may obtain the response content entered by the user. Then, the second association establishing module may establish an association between the target test message and the response content entered by the user.
[0156] According to an exemplary embodiment of the present disclosure, the above-mentioned chatbot may include at least one chatbot.
[0157] The execution information may also include at least one of the following items:
[0158] Attribute information of the current chatbot that provides response content to the target test message; attribute information of the task node to which the current chatbot provides response content; attribute information of the next task node to which the current chatbot jumps after providing the response content; and word slot information extracted from the historical conversation between the current chatbot and the user.
[0159] In this way, in addition to displaying the recognized intent and extracted word slot values in the test interface, other information related to the debugging process can also be displayed, so that users can have an intuitive and clear understanding of the debugging progress and other situations, and have a comprehensive and complete grasp of the overall debugging process.
[0160] Figure 15 is a block diagram illustrating an electronic device 1500 according to an exemplary embodiment of the present disclosure.
[0161] Reference Figure 15 The electronic device 1500 includes at least one memory 1501 and at least one processor 1502. The at least one memory 1501 stores instructions. When the instructions are executed by the at least one processor 1502, the debugging method of the chat robot according to the exemplary embodiment of the present disclosure is executed.
[0162] As an example, the electronic device 1500 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instructions. Here, the electronic device 1500 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above instructions (or instruction sets) individually or in combination. The electronic device 1500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that is interconnected with a local or remote (e.g., via wireless transmission) interface.
[0163] In electronic device 1500, processor 1502 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0164] The processor 1502 can execute instructions or codes stored in the memory 1501, wherein the memory 1501 can also store data. Instructions and data can also be sent and received over a network via a network interface device, wherein the network interface device can use any known transmission protocol.
[0165] Memory 1501 may be integrated with processor 1502, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. Furthermore, memory 1501 may comprise a separate device, such as an external disk drive, a storage array, or any other storage device usable by a database system. Memory 1501 and processor 1502 may be operatively coupled or may communicate with each other, for example, via an I / O port, a network connection, or the like, such that processor 1502 can access files stored in memory.
[0166] In addition, the electronic device 1500 may further include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 1500 may be connected to each other via a bus and / or a network.
[0167] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium may also be provided, which, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the above-mentioned debugging method of the chat robot. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or ultra-fast digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device configured to store the computer program and any associated data, data files and data structures in a non-transitory manner and provide the computer program and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0168] According to the chatbot debugging method, device, electronic device, and storage medium disclosed herein, during the chatbot testing process, a first area for displaying human-computer dialogue and a second area for displaying chatbot execution information can be displayed in the test interface. If the user discovers during the test that the chatbot's response to the user's target test message is inaccurate or does not respond, the user can conveniently view the execution information corresponding to the chatbot's response to the target test message in the test interface, thereby quickly locating the problem. The user can then debug the chatbot in the current test interface based on the execution information, i.e., the user can debug the chatbot without frequently jumping to any page, thereby simplifying the debugging process and improving debugging efficiency.
[0169] Furthermore, by setting a text input box in the first area of the test interface, the user can input a test message in the first area of the test interface through the text input box. The operation steps of inputting the test message are simple, convenient and fast.
[0170] Furthermore, upon receiving a test message, the chatbot can compare it with the sentences stored in its sentence library, and based on the comparison results, identify the intended purpose of the test message. Because the chatbot's sentence library contains a large number of sentences with similar semantics but different expressions, the chatbot's sentence library has a strong generalization capability for identifying user intent, ensuring relatively accurate identification of user intent.
[0171] Furthermore, when it is determined that the chatbot bound to the test interface cannot recognize the intent corresponding to the target test message, the user can obtain a specific chatbot according to his or her needs, and add the target test message to the trigger node of the acquired specific chatbot. Through such a setting during the test process, it can be ensured that in the actual application scenario, each message sent by the user can be promptly received by a chatbot that matches the intent the user wants to achieve, thereby ensuring that the user's purpose and expectations are quickly achieved. Furthermore, the present disclosure can automatically add the target test message to the trigger node of the acquired specific chatbot, that is, the user can debug the chatbot without any page jump, which simplifies the debugging process and improves debugging efficiency.
[0172] Furthermore, users can specify specific intents for the target test message in the chat robot input box contained in the chat robot acquisition interface according to their own needs. That is, they can specify the chat robot used to receive the target test message by entering the name of a specific chat robot in the chat robot input box. The autonomy and flexibility of specifying specific intents for the target test message are better.
[0173] Furthermore, a chatbot list can be displayed within the chatbot acquisition interface, allowing users to select a specific chatbot from the chatbot list as the chatbot to receive the target test message. This eliminates the need for users to manually enter the chatbot's name in order to specify a specific chatbot to receive the target test message. This eliminates the tedious step of manually entering the chatbot's name, making the process of specifying a specific chatbot simple, convenient, and quick.
[0174] Furthermore, by adding the user-set reply message to the chatbot's node for the user account currently receiving the target test message, the chatbot can be guaranteed to know how to respond when receiving the same or similar messages in actual use, thereby ensuring that the conversation between the user and the chatbot can proceed smoothly and achieve the user's goals and expectations. Furthermore, the present disclosure can automatically update the user's set reply message to the chatbot, meaning that the user can debug the chatbot without having to jump to any page, simplifying the debugging process and improving debugging efficiency.
[0175] Furthermore, in addition to displaying the recognized intent and extracted word slot values in the test interface, other information related to the debugging process can also be displayed, so that users can have an intuitive and clear understanding of the debugging progress and other situations, and have a comprehensive and complete grasp of the overall debugging process.
[0176] Furthermore, by sending words with the same or similar actual meaning but different description methods multiple times, the user can be induced to say the reply message required by the chat robot with a high probability. That is, at this time, the chat robot can successfully extract the word slot value from the user's reply message with a high probability, thereby ensuring that the dialogue test process proceeds smoothly, avoiding the phenomenon that the word slot value cannot be extracted due to the single word or the low frequency of word sending, thereby causing the debugging process to be blocked.
[0177] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0178] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A debugging method for a chat robot, characterized in that: include: Provide a test interface; In response to a message input operation performed by a user through the test interface, displaying a target test message input by the user and a response content of the chat robot to the target test message in a first area of the test interface; Displaying, in the second area of the test interface, execution information corresponding to the response content provided by the chat robot to the target test message, wherein the execution information includes the chat robot's intention recognition result for the target test message, so that the user can determine whether the chat robot accurately recognizes the user's intention; In response to a user's intent debugging operation on the intent recognition result, the intent category corresponding to the target test message is modified.
2. The debugging method according to claim 1, characterized in that: The test interface is also provided with a text input box, and in response to the message input operation performed by the user through the test interface, a target test message input by the user and a response content of the chat robot to the target test message are displayed in the first area of the test interface, including: In response to a message input operation performed by the user through the text input box, the target test message and the chat robot's response content to the target test message are displayed in the first area of the test interface.
3. The debugging method according to claim 1, characterized in that: A first control is also provided in the second area, and the first control is used for the user to issue an intention debugging instruction; The modifying the intent category corresponding to the target test message in response to the user's intent debugging operation on the intent recognition result includes: In response to a first click operation of the user on the first control, switching the intention recognition result to a modifiable state; In response to a user's modification operation on a modifiable intent recognition result, the intent category corresponding to the target test message is modified to the intent category specified by the modification operation.
4. The debugging method according to claim 1, characterized in that: The execution information also includes the word slot extraction result of the chat robot for the target test message, so that the user can determine whether the chat robot extracts the word slot accurately.
5. The debugging method according to claim 1, characterized in that: A second control corresponding to the response content is also provided in the first area, and the second control is used for allowing the user to edit the response content of the target test message; The debugging method further comprises: In response to a second click operation of the user on the second control, displaying an editing question and answer interface, wherein the editing question and answer interface provides editable robot answer content; In response to a user's editing operation on the editable robot response content, obtaining the user-edited response content; An association relationship between the target test message and the edited response content is established.
6. The debugging method according to claim 5, characterized in that: A third control is also provided on the question-and-answer editing interface, and the third control is used for the user to add the answer content corresponding to the target test message; The debugging method further comprises: In response to a third click operation of the user on the third control, providing a response content input box; In response to the user's input operation through the response content input box, obtaining the response content input by the user; An association relationship is established between the target test message and the response content input by the user.
7. The debugging method according to any one of claims 1 to 6, characterized in that: The chatbot includes at least one chatbot; The execution information also includes at least one of the following items: Attribute information of the current chat robot that provides response content to the target test message; The current chat robot provides attribute information of the task node of the response content; Attribute information of the next task node to which the current chat robot jumps after providing the response content; The word slot information extracted from the historical conversation between the current chat robot and the user.
8. A debugging device for a chat robot, characterized in that: include: A test interface providing module is configured to provide a test interface; A test message display module is configured to display a target test message input by the user and a response content of the chat robot to the target test message in a first area of the test interface in response to a message input operation performed by the user through the test interface; An execution information display module is configured to display, in the second area of the test interface, execution information corresponding to the response content provided by the chat robot to the target test message, wherein the execution information includes the chat robot's intention recognition result for the target test message, so that the user can determine whether the chat robot accurately recognizes the user's intention; The intent debugging module is configured to modify the intent category corresponding to the target test message in response to the user's intent debugging operation on the intent recognition result.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the debugging method of the chat robot as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the debugging method of the chat robot as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Corpus annotation method and device, equipment and storage medium
CN108897869A
Debugging system of chat robot
CN111651348A
Visualization of training dialogs for a conversational bot
CN113728308A
Code Correction
US20190303116A1
