Method, device and computer equipment for creating customer service robot question and answer data
By receiving client requests, pushing the industry template selection interface and obtaining target industry template data, and generating customer service robot question and answer data, it solves the problem of low service efficiency caused by traditional customer service robot creation relying on manual maintenance of knowledge bases, and realizes efficient customer service robot question and answer. Data creation.
Patent Information
- Application Number
- CN202010805615.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-08-12
AI Technical Summary
The creation of traditional customer service robots relies on manual maintenance of knowledge bases, resulting in low service efficiency.
By receiving the creation request initiated by the client, it pushes the industry template selection interface, obtains the target industry template data, and generates customer service robot question and answer data, reducing the amount of manual work and improving service efficiency.
It effectively reduces the amount of manual work in the creation process of customer service robot question and answer data and improves the service efficiency of customer service robots.
Smart Images

Figure CN111753075B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for creating customer service robot question and answer data. Background Art
[0002] With the development and application of computer technology, artificial intelligence has been widely promoted and applied. The application of intelligent customer service robots in various scenarios has become more and more common, and the automatic question-and-answer method has brought convenience to people's lives. Users can ask questions in text or voice, and customer service robots will automatically reply according to the user's questions.
[0003] Before using an intelligent customer service robot, the data needed by the customer service robot is generally stored in the knowledge base in advance. When the intelligent customer service robot is working, it reads the pre-stored knowledge in the knowledge base. Therefore, the knowledge base is crucial in the creation of customer service robots. The creation of traditional customer service robots mainly relies on manual maintenance of the knowledge base, which has the problem of low service efficiency of customer service robots. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for creating customer service robot question and answer data that can improve service efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for creating customer service robot question and answer data, the method comprising:
[0006] Receive the customer service robot creation request initiated by the client;
[0007] According to the creation request, push the industry template selection interface to the client;
[0008] Receiving a selected target industry template identifier, wherein the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface;
[0009] Based on the target industry template identifier, acquiring target industry template data corresponding to the target industry template identifier;
[0010] According to the target industry template data, the question and answer data of the target customer service robot corresponding to the creation request is obtained.
[0011] In a second aspect, the present application provides a device for creating customer service robot question and answer data, the device comprising:
[0012] A creation request receiving module is used to receive a creation request for a customer service robot initiated by a client;
[0013] A creation request processing module, used for pushing an industry template selection interface to the client according to the creation request;
[0014] An industry template selection module, used for receiving a selected target industry template identifier, wherein the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface;
[0015] A template data acquisition module, used to acquire target industry template data corresponding to the target industry template identifier based on the target industry template identifier;
[0016] The question and answer data determination module is used to obtain the question and answer data of the target customer service robot corresponding to the creation request based on the target industry template data.
[0017] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0018] Receive the customer service robot creation request initiated by the client;
[0019] According to the creation request, push the industry template selection interface to the client;
[0020] Receiving a selected target industry template identifier, wherein the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface;
[0021] Based on the target industry template identifier, acquiring target industry template data corresponding to the target industry template identifier;
[0022] According to the target industry template data, the question and answer data of the target customer service robot corresponding to the creation request is obtained.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0024] Receive the customer service robot creation request initiated by the client;
[0025] According to the creation request, push the industry template selection interface to the client;
[0026] Receiving a selected target industry template identifier, wherein the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface;
[0027] Based on the target industry template identifier, acquiring target industry template data corresponding to the target industry template identifier;
[0028] According to the target industry template data, the question and answer data of the target customer service robot corresponding to the creation request is obtained.
[0029] The above-mentioned method, device, computer equipment and storage medium for creating customer service robot question and answer data receive a customer service robot creation request initiated by a client, and push the industry template selection interface to the client according to the creation request; receive the selected target industry template identifier, and the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface; based on the target industry template identifier, obtain the target industry template data corresponding to the target industry template identifier; based on the target industry template data, obtain the question and answer data of the target customer service robot corresponding to the creation request. Based on the above-mentioned technical solution, the target industry template data is obtained by interacting with the client that initiates the creation request, and the target industry template data is used as the cold start data of the customer service robot to be created, thereby generating the question and answer data of the customer service robot corresponding to the creation request, which can effectively reduce the manual workload of the customer service robot question and answer data creation process, thereby improving the service efficiency of the customer service robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is an application environment diagram of a method for creating customer service robot question and answer data in one embodiment;
[0031] Figure 2 A flowchart of a method for creating customer service robot question and answer data in one embodiment;
[0032] Figure 3 A schematic diagram of an interface for creating a legal question-and-answer robot in one embodiment;
[0033] Figure 4 Schematic diagram of a flow chart of steps for generating question and answer data of a target customer service robot in one embodiment;
[0034] Figure 5 A schematic diagram of question recommendation of a legal question-answering robot in one embodiment;
[0035] Figure 6 This is a block diagram of an application system of a customer service robot in one embodiment;
[0036] Figure 7 This is a timing diagram of the generation of a customer service robot in one embodiment;
[0037] Figure 8 A timing diagram of query request processing in one embodiment;
[0038] Fig. 9 It is a structural block diagram of a device for creating customer service robot question and answer data in one embodiment;
[0039] Fig.10 FIG. 4 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0041] In order to help those skilled in the art better understand the method for creating a customer service robot provided in the embodiments of the present application, the relevant contents of natural language processing are first explained.
[0042] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0043] The method for creating customer service robot question and answer data provided in this application belongs to the category of robot question and answer in natural language processing and can be applied to Figure 1In the application environment shown. The application scenario includes a client 102 and a server 104, and the client 102 is connected to the server 104 through a network. A user can initiate a customer service robot creation request through the client 102, and the server 104 receives the customer service robot creation request initiated by the client, and pushes the industry template selection interface to the client according to the creation request; receives the selected target industry template identifier, and the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface; based on the target industry template identifier, obtains the target industry template data corresponding to the target industry template identifier; according to the target industry template data, obtains the question and answer data of the target customer service robot corresponding to the creation request. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The client 102 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The client and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this. The above application scenario is illustrated by applying the method for creating a customer service robot to a system including a client and a server, and is implemented through the interaction between the client and the server. It can be understood that the method for creating a customer service robot can also be applied to the client and the server.
[0044] In one embodiment, Figure 2 As shown, a method for creating customer service robot question and answer data is provided. This embodiment applies this method to Figure 1 The server in the example is used to illustrate. Figure 2 , the method specifically comprises the following steps:
[0045] Step 202: Receive a request from a client to create a customer service robot.
[0046] A creation request is a request initiated by a client to create a customer service robot. The client generates a creation request based on the user's operation data. Specifically, the user can enter the robot configuration page through the client, click the robot creation control on the page, and enter the robot creation instruction or other methods in the page dialog box based on the preset rules to trigger the creation request of the customer service robot.
[0047] Step 204: Push the industry template selection interface to the client according to the creation request.
[0048] After receiving a customer service robot creation request initiated by a user through a client, the creation request is responded to and an industry template selection interface is pushed to the client. The industry template selection interface is used to provide different industry template information for users to select the industry to which the customer service robot to be created belongs, that is, the application scenario of the robot to be created. Among them, the industry template selection interface includes question-and-answer robots that implement different functions, such as legal question-and-answer robots, financial question-and-answer robots, and entertainment question-and-answer robots. Specifically, different numbers can be used to distinguish robots in different industries. For example, 01 represents a legal question-and-answer robot, 02 represents a financial question-and-answer robot, and 03 represents an entertainment question-and-answer robot.
[0049] Step 206, receiving the selected target industry template identifier, where the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface.
[0050] The industry template identifier is used to distinguish different industry templates. As mentioned above, 01 represents a legal Q&A robot, 02 represents a financial Q&A robot, and 03 represents an entertainment Q&A robot. The user selects the industry to which the customer service robot to be created belongs through the industry template selection interface of the client. For example, if the user selects 01, it indicates that the customer service robot to be created by the user is a legal Q&A robot.
[0051] Step 208: based on the target industry template identifier, obtain the target industry template data corresponding to the target industry template identifier.
[0052] Industry template data refers to the question and answer data of different types of robots, such as the question and answer data corresponding to the legal question and answer robot and the question and answer data corresponding to the financial question and answer robot. The question and answer data is based on the historical data of different industries and is obtained through big data knowledge processing technology. After determining the industry to which the customer service robot to be created by the user belongs, the target industry template data corresponding to the target industry template identifier is obtained according to the correspondence between the preset industry template and the industry template data.
[0053] Step 210, obtaining the question and answer data of the target customer service robot corresponding to the creation request according to the target industry template data.
[0054] Based on the robot knowledge base configuration interface, you can configure the corresponding robot question and answer data for the customer service robot to be created. Based on the historical question and answer data of the industry, the robot knowledge base configuration interface displays the existing classification information of the industry. Different questions and their corresponding replies are displayed under each classification information. Users can choose to copy the corresponding data, and can also edit questions, similar questions or corresponding replies by themselves. In addition, the knowledge base configuration interface is also provided with an add classification control and an add question and answer control. The add classification control is used for users to add custom industry classifications, and the add question and answer control is used for users to add custom questions and replies under each classification information. Figure 3 This is a schematic diagram of an interface for creating a legal question-and-answer robot in an embodiment. A user can select the required classification data based on the interface, and can also add custom data.
[0055] The above-mentioned method for creating question and answer data of the customer service robot receives a creation request of the customer service robot initiated by the client, and pushes the industry template selection interface to the client according to the creation request; receives the selected target industry template identifier, and the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface; based on the target industry template identifier, obtains the target industry template data corresponding to the target industry template identifier; based on the target industry template data, obtains the question and answer data of the target customer service robot corresponding to the creation request. Based on the above-mentioned technical solution, the target industry template data is obtained by interacting with the client that initiates the creation request, and the target industry template data is used as the cold start data of the customer service robot to be created, thereby generating the question and answer data of the customer service robot corresponding to the creation request, which can effectively reduce the manual workload of the customer service robot question and answer data creation process, thereby improving the service efficiency of the customer service robot.
[0056] In one embodiment, Figure 4As shown, according to the target industry template data, the question and answer data of the target customer service robot corresponding to the creation request is obtained, including: step 402, based on the target industry template data, a robot knowledge base configuration interface is generated, and the robot knowledge base configuration interface is pushed to the client; step 404, receiving the target robot data fed back by the client, the target robot data is obtained by the client based on the robot knowledge base configuration interface; step 406, according to the target robot data, the question and answer data of the target customer service robot corresponding to the creation request is obtained. The robot knowledge base configuration interface is based on the target industry template data, and displays the existing classification information of the industry. Different questions and their corresponding replies are displayed under each classification information. Users interact based on the robot knowledge base configuration interface, and can choose to copy the required data, edit questions, similar questions or corresponding replies, and add custom industry classifications or add custom questions and replies. The target robot data is obtained, which is used to generate the target customer service robot corresponding to the creation request. Among them, according to the target robot data, the question and answer data of the target customer service robot corresponding to the creation request is obtained, including: performing knowledge processing according to the target robot data to obtain the customer service robot knowledge data; based on the customer service robot knowledge data, obtaining the question attribute information, question grouping information, question similarity information and question activation status of each question; according to the question attribute information, question grouping information, question similarity information and question activation status of each question, the question and answer data of the target customer service robot corresponding to the creation request is generated. The question attribute information includes the question unique identifier (ID), standard question, question answer, etc., the question grouping information includes the question group identifier, the question group name, etc., the question similarity information includes similar questions, similar questions, etc., and the question activation status refers to whether a certain question is enabled. For example, the setting of the valid bit can be used to distinguish different question activation states. The valid bit corresponding to a certain question is 1, indicating that the question is enabled, and the valid bit corresponding to a certain question is 0, indicating that the question is not enabled. Specifically, the industry template data can be stored in the form of a knowledge table. Some of the information stored in the knowledge table is shown in Table 1:
[0057] Table 1 Knowledge table
[0058] Serial number Parameter name type describe 1 question_id String Question unique ID 2 group_id String The group ID to which the question belongs 3 group_name String The name of the group to which the question belongs 4 question String Standard Issues 5 answer String Question Answer 6 similar_questions Array of Object Similar questions 7 similar_questions.question String Similar questions 8 status Int Is the question enabled?
[0059] In one embodiment, knowledge processing is performed according to the target robot data to obtain customer service robot knowledge data, including: performing knowledge standardization processing on the custom data in the target robot data to obtain standardized external data; performing knowledge deduplication processing based on the standardized external data and the target industry template data to obtain customer service robot knowledge data. Custom data refers to users editing questions, similar questions or corresponding replies based on the robot knowledge base configuration interface, or adding industry classifications, questions and replies by themselves, standardizing the custom data to make it consistent with the industry template data, and then performing knowledge deduplication processing on the standardized custom data and industry template data to avoid data duplication.
[0060] In one embodiment, after obtaining the question and answer data of the target customer service robot corresponding to the creation request according to the target industry template data, it also includes: determining the target identification of the target customer service robot and the corresponding target knowledge grouping information; updating the correspondence between the preset robot identification and the knowledge grouping information according to the target identification and the target knowledge grouping information. The robot identification is used to distinguish different robots, and the knowledge grouping information includes identifications of different types of knowledge information, and different types of knowledge information include financial knowledge information, legal knowledge information, etc. The correspondence between the preset robot identification and the knowledge grouping information can be specifically in the form of a robot data association table, through which the industry data used by the robot can be represented. Some of the information in the robot data association table is shown in Table 2:
[0061] Table 2 Robot data association table
[0062] Serial number Parameter name type describe 1 bot_id String Robot unique ID 2 group_id String Associated knowledge group ID 3 status Int Is grouping enabled?
[0063] In one embodiment, the method for creating customer service robot Q&A data further includes: receiving a Q&A request initiated by an inquiry terminal; parsing the Q&A request to determine the user's Q&A intention, and determining the reply robot identifier based on the user's Q&A intention; according to the reply robot identifier, querying in the correspondence between the updated robot identifier and the knowledge grouping information to obtain the corresponding associated knowledge grouping information; according to the user's Q&A intention and the associated knowledge grouping information, obtaining the reply result corresponding to the user's Q&A intention. After the customer service robot is online, the consultant can initiate a Q&A request through the inquiry terminal, and the Q&A request can be identified by the trained natural language understanding model to obtain the user's Q&A intention. The trained natural language understanding model can be obtained by training historical Q&A requests and corresponding historical Q&A intentions. After determining the user's Q&A intention, determine the reply robot identifier corresponding to the user's Q&A intention according to the functions implemented by different types of robots. For example, if it is determined that the user's Q&A intention belongs to the legal category, at this time, the corresponding reply robot is the legal robot corresponding to the legal robot identifier. Then obtain the knowledge grouping information associated with the legal robot, and obtain the reply result corresponding to the user's Q&A intention according to the user's Q&A intention and the associated knowledge grouping information. Specifically, according to the user's question-and-answer intention and the associated knowledge grouping information, the reply result corresponding to the user's question-and-answer intention is obtained, including: when the user's question-and-answer intention matches the intention in the associated knowledge grouping information, the result data corresponding to the matched intention is used as the reply result corresponding to the user's question-and-answer intention; when the user's question-and-answer intention cannot match the intention in the associated knowledge grouping information, similar intentions are determined in the associated knowledge grouping information according to the user's question-and-answer intention, and the similar intentions are used as the reply result corresponding to the user's question-and-answer intention. After the customer service robot is generated, when a question-and-answer request is received, the customer service robot matches the user's inquiry from the configured knowledge base. If the user's inquiry cannot be matched, the customer service robot will recommend questions. Figure 5 This is a schematic diagram of question recommendation of a legal question-and-answer robot in one embodiment. The question input by the user is "litigation procedure". Since the legal question-and-answer robot cannot completely match the question, it replies with the question recommendation result. The user can ask the question again based on the question recommendation result and obtain a corresponding reply.
[0064] The present application also provides an application scenario, which applies the above-mentioned method for creating customer service robot question and answer data. Specifically, the application of the method for creating customer service robot question and answer data in the application scenario is as follows: The application system block diagram of the customer service robot is as follows: Figure 6As shown in the figure, it includes a question-answering knowledge base generation system, a question-answering knowledge base configuration platform and a question-answering system. The question-answering knowledge base generation system and the question-answering knowledge base configuration platform are used to configure the knowledge base in the question-answering system. The question-answering knowledge base generation system corresponds to the machine learning configuration method, and the question-answering knowledge base configuration platform corresponds to the manual configuration method. The generation sequence diagram of the customer service robot is shown in the figure. Figure 7 As shown, the developer initiates a request to create a new customer service robot based on the question-and-answer knowledge base configuration platform, and the question-and-answer knowledge base configuration platform responds to the request and initializes the customer service robot. Then, the developer selects the industry template corresponding to the customer service robot to be created through the question-and-answer knowledge base configuration platform, and the question-and-answer knowledge base configuration platform obtains the industry template data corresponding to the industry template selected by the developer from the knowledge base. The developer imports custom data into the question-and-answer knowledge base configuration platform, obtains robot data based on the obtained industry template data and the imported custom data, and imports the robot data into the search engine. Successful import indicates successful creation of the robot.
[0065] Figure 8 This is a sequence diagram of inquiry request processing in an embodiment. A user initiates an inquiry request, for example, the user inputs the question "civil litigation procedure". The NLP (Natural Language Processing) model of the question-and-answer system processes the question input by the user and identifies the user's question-and-answer intention. The question-and-answer service of the question-and-answer system retrieves through a search engine based on the identified question-and-answer intention to obtain matching results, which include custom results and template results. The custom results and template results are sorted, and a question-and-answer reply is obtained and fed back to the user, such as "Description of Civil Litigation Procedure".
[0066] The knowledge base in the question-and-answer system is mainly based on two basic data tables, namely the knowledge table and the robot data association table. Among them, the knowledge table stores template data of different industries by industry grouping. When creating a robot, the corresponding industry template data is copied as cold start data. At the same time, developers can customize groups and add their own data, and the robot data association table is used to characterize the industry data used by the robot. The data of the knowledge base can be quickly increased through the study of online questions and manual seat data. When creating a robot, the corresponding industry grouping data is copied in the knowledge table according to the developer's choice. The developer can edit questions, similar questions or answers by himself. In addition, developers can add grouping data on the question-and-answer knowledge base configuration platform to facilitate developers to customize data and make the robot smarter. Then associate the created robot with the corresponding grouping data. When the user uses the robot, the question-and-answer service queries the grouping data associated with the robot from the search engine, matches the most relevant data and returns it.
[0067] The creation scheme of the customer service robot in this application generates an industry question-and-answer knowledge base through a question-and-answer knowledge base generation system, selects template data and enters manual knowledge through a question-and-answer knowledge base configuration platform, and can quickly generate a question-and-answer knowledge base in the corresponding field according to demand when the customer service robot is cold started. By introducing a question-and-answer knowledge base generation system and a question-and-answer knowledge base configuration management platform, question-and-answer knowledge bases in multiple industry fields are generated as cold start data for the newly created intelligent customer service robot, which can effectively reduce the operating labor cost of the cold start of the intelligent customer service robot and improve the accuracy of answering questions and the flexibility of updating question-and-answer data for the cold start of the intelligent customer service robot. That is, the creation scheme of the customer service robot in this application can select basic industry template data by itself when building an intelligent customer service robot, support the intelligent customer service robot to achieve rapid update and maintenance when facing unknown question data, and also support manual maintenance of automatically generated data. By introducing the customer service question-and-answer cold start knowledge base of this application, the data operation work of the developer can be greatly reduced, and a question-and-answer robot containing a certain industry basic knowledge base can be created in a few minutes, and experiments have proved that the correct response rate of the robot can reach 80%.
[0068] It should be understood that although Figure 2 , 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , 4 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0069] Based on the same idea as the above method, Fig. 9 A schematic diagram of the structure of a device for creating customer service robot question and answer data according to an embodiment is shown. This embodiment is described by taking the device being set on the server 104 as an example.
[0070] like Fig. 9As shown, the device for creating question and answer data of the customer service robot in this embodiment includes: a creation request receiving module 902, a creation request processing module 904, an industry template selection module 906, a template data acquisition module 908 and a question and answer data determination module 910. The creation request receiving module 902 is used to receive a creation request of a customer service robot initiated by a client. The creation request processing module 904 is used to push the industry template selection interface to the client according to the creation request. The industry template selection module 906 is used to receive the selected target industry template identifier, and the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface. The template data acquisition module 908 is used to obtain the target industry template data corresponding to the target industry template identifier based on the target industry template identifier. The question and answer data determination module 910 is used to obtain the question and answer data of the target customer service robot corresponding to the creation request according to the target industry template data.
[0071] In one embodiment, the question and answer data determination module is also used to generate a robot knowledge base configuration interface based on the target industry template data, and push the robot knowledge base configuration interface to the client; receive target robot data feedback from the client, and the target robot data is obtained by the client based on the robot knowledge base configuration interface; based on the target robot data, obtain the question and answer data of the target customer service robot corresponding to the creation request.
[0072] In one embodiment, the question and answer data determination module is also used to perform knowledge processing based on the target robot data to obtain customer service robot knowledge data; based on the customer service robot knowledge data, obtain question attribute information, question grouping information, question similarity information and question activation status of each question; based on the question attribute information, question grouping information, question similarity information and question activation status of each question, generate question and answer data of the target customer service robot corresponding to the creation request.
[0073] In one embodiment, the question and answer data determination module is also used to perform knowledge standardization processing on the custom data in the target robot data to obtain standardized external data; based on the standardized external data and the target industry template data, perform knowledge deduplication processing to obtain customer service robot knowledge data.
[0074] In one embodiment, the device for creating customer service robot question and answer data also includes a robot information storage module, which is used to determine the target identification of the target customer service robot and the corresponding target knowledge grouping information; based on the target identification and the target knowledge grouping information, the correspondence between the preset robot identification and the knowledge grouping information is updated.
[0075] In one embodiment, the device for creating customer service robot question and answer data also includes an inquiry processing module, which is used to receive a question and answer request initiated by an inquiry terminal; parse the question and answer request to determine the user's question and answer intention, and determine the reply robot identifier based on the user's question and answer intention; according to the reply robot identifier, query in the correspondence between the updated robot identifier and the knowledge grouping information to obtain the corresponding associated knowledge grouping information; according to the user's question and answer intention and the associated knowledge grouping information, obtain a reply result corresponding to the user's question and answer intention.
[0076] In one embodiment, the inquiry processing module is also used to, when the user's question and answer intention matches the intention in the associated knowledge grouping information, use the result data corresponding to the matched intention as the reply result corresponding to the user's question and answer intention; when the user's question and answer intention cannot match the intention in the associated knowledge grouping information, determine a similar intention in the associated knowledge grouping information based on the user's question and answer intention, and use the similar intention as the reply result corresponding to the user's question and answer intention.
[0077] For the specific definition of the device for creating customer service robot question and answer data, please refer to the definition of the method for creating customer service robot question and answer data above, which will not be repeated here. Each module in the above-mentioned device for creating customer service robot question and answer data can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0078] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for creating customer service robot question and answer data is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0079] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0080] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0081] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0082] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.
[0083] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0084] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0085] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for creating customer service robot question and answer data, characterized in that: The method comprises: Receive the customer service robot creation request initiated by the client; According to the creation request, push the industry template selection interface to the client; Receive a selected target industry template identifier, wherein the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface; the industry template identifier is used to represent an industry template of the industry to which the customer service robot to be created belongs; Based on the target industry template identifier, acquiring target industry template data corresponding to the target industry template identifier; Based on the target industry template data, a robot knowledge base configuration interface is generated, and the robot knowledge base configuration interface is pushed to the client; the robot knowledge base configuration interface is used to display the existing classification information of the target industry, and different questions and corresponding replies to the questions are displayed under each classification information; Receive target robot data fed back by the client; the target robot data is obtained by the client through operation based on the robot knowledge base configuration interface; the specific processing method of the operation includes copying required data, editing questions or answers, adding customized industry classification information, and adding customized questions and answers under existing classification information; According to the target robot data, obtaining the question and answer data of the target customer service robot corresponding to the creation request; Determine a target identifier of the target customer service robot and corresponding target knowledge grouping information; the target knowledge group represented by the target knowledge grouping information includes question and answer data of the target customer service robot; According to the target identifier and the target knowledge grouping information, updating the correspondence between the preset robot identifier and the knowledge grouping information; Receive a question-and-answer request initiated by an inquiry terminal; Parsing the question and answer request to determine the user's question and answer intention, and determining the answer robot identifier based on the user's question and answer intention; According to the reply robot identifier, query in the correspondence between the updated robot identifier and the knowledge grouping information to obtain the corresponding associated knowledge grouping information; According to the user's question and answer intention and the associated knowledge grouping information, a reply result corresponding to the user's question and answer intention is obtained.
2. The method according to claim 1, characterized in that The step of obtaining, according to the target robot data, question and answer data of the target customer service robot corresponding to the creation request comprises: Performing knowledge processing according to the target robot data to obtain customer service robot knowledge data; Based on the customer service robot knowledge data, obtain question attribute information, question grouping information, question similarity information and question activation status of each question; According to the question attribute information, question grouping information, question similarity information and question activation status of each question, question and answer data of the target customer service robot corresponding to the creation request is generated.
3. The method according to claim 2, characterized in that The performing knowledge processing according to the target robot data to obtain customer service robot knowledge data includes: Performing knowledge standardization processing on the custom data in the target robot data to obtain standardized external data; Based on the standardized external data and the target industry template data, knowledge deduplication processing is performed to obtain customer service robot knowledge data.
4. The method according to claim 1, characterized in that: The obtaining, according to the user's question-answering intention and the associated knowledge grouping information, a reply result corresponding to the user's question-answering intention includes: When the user's question-and-answer intention matches the intention in the associated knowledge grouping information, the result data corresponding to the matched intention is used as the reply result corresponding to the user's question-and-answer intention; When the user question and answer intention cannot match the intention in the associated knowledge grouping information, a similar intention is determined in the associated knowledge grouping information according to the user question and answer intention, and the similar intention is used as the reply result corresponding to the user question and answer intention.
5. A device for creating customer service robot question and answer data, characterized in that: The device comprises: A creation request receiving module is used to receive a creation request for a customer service robot initiated by a client; A creation request processing module, used for pushing an industry template selection interface to the client according to the creation request; An industry template selection module is used to receive a selected target industry template identifier, wherein the target industry template identifier is obtained by the client through interactive processing based on the industry template selection interface; the industry template identifier is used to represent the industry template of the industry to which the customer service robot to be created belongs; A template data acquisition module, used to acquire target industry template data corresponding to the target industry template identifier based on the target industry template identifier; A question and answer data determination module is used to generate a robot knowledge base configuration interface based on the target industry template data, and push the robot knowledge base configuration interface to the client; receive the target robot data fed back by the client; obtain the question and answer data of the target customer service robot corresponding to the creation request according to the target robot data; the robot knowledge base configuration interface is used to display the existing classification information of the target industry, and display different questions and replies corresponding to the questions under each classification information; the target robot data is obtained by the client through operation based on the robot knowledge base configuration interface; the specific processing methods of the operation include copying the required data, editing questions or replies, adding customized industry classification information, and adding customized questions and replies under the existing classification information; The robot information storage module is used to: determine the target identification of the target customer service robot and the corresponding target knowledge grouping information; update the corresponding relationship between the preset robot identification and the knowledge grouping information according to the target identification and the target knowledge grouping information; the target knowledge group represented by the target knowledge grouping information contains the question and answer data of the target customer service robot; The inquiry processing module is used to: receive a question and answer request initiated by an inquiry terminal; parse the question and answer request to determine the user's question and answer intention, and determine the reply robot identifier based on the user's question and answer intention; according to the reply robot identifier, query in the correspondence between the updated robot identifier and the knowledge grouping information to obtain the corresponding associated knowledge grouping information; according to the user's question and answer intention and the associated knowledge grouping information, obtain a reply result corresponding to the user's question and answer intention.
6. The device according to claim 5, characterized in that The question and answer data determination module is also used for: Performing knowledge processing according to the target robot data to obtain customer service robot knowledge data; Based on the customer service robot knowledge data, obtain question attribute information, question grouping information, question similarity information and question activation status of each question; According to the question attribute information, question grouping information, question similarity information and question activation status of each question, question and answer data of the target customer service robot corresponding to the creation request is generated.
7. The device according to claim 6, characterized in that The question and answer data determination module is also used for: Performing knowledge standardization processing on the custom data in the target robot data to obtain standardized external data; Based on the standardized external data and the target industry template data, knowledge deduplication processing is performed to obtain customer service robot knowledge data.
8. The device according to claim 5, characterized in that The query processing module is also used for: When the user's question-and-answer intention matches the intention in the associated knowledge grouping information, the result data corresponding to the matched intention is used as the reply result corresponding to the user's question-and-answer intention; When the user question and answer intention cannot match the intention in the associated knowledge grouping information, a similar intention is determined in the associated knowledge grouping information according to the user question and answer intention, and the similar intention is used as the reply result corresponding to the user question and answer intention.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
