Conversation method and device, electronic equipment and storage medium

By obtaining the identification information and conversation topic of the target object and dynamically selecting the knowledge base, it solves the problem of lack of personalization of the conversation robot, improves the quality and success rate of communication, and realizes personalized dialogue with users.

CN118657202APending Publication Date: 2024-09-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410318681.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing conversational robots lack personalization and diversity, resulting in low communication quality and communication success rate with users. They also lack humanization and cannot meet users' personalized needs.

Method used

By obtaining the identification information and conversation topic of the target object, determining the reference call duration and information proportion value, dynamically selecting the target knowledge base, realizing personalized dialogue between the conversation robot and the user, and ensuring that the call time and information content match.

Benefits of technology

It improves the quality and success rate of communication between the conversation robot and users, enhances user stickiness, reduces the hang-up rate, and provides more personalized and humanized conversation services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657202A
    Figure CN118657202A
Patent Text Reader

Abstract

The invention provides a dialogue method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining identification information of a target object and a target dialogue theme; determining a reference conversation duration based on the identification information and the target conversation theme; based on the reference conversation duration, the identification information and the target conversation theme, determining a first information proportion value; the first information proportion value is used for representing a proportion value of a keyword matched with the target dialogue theme in the first dialogue text sent to the target object; determining a target knowledge base from a plurality of knowledge bases corresponding to the target object based on the target conversation theme, the first information ratio and the reference conversation duration; and carrying out conversation with the target object based on the target knowledge base. Through the application, the communication quality and the communication success rate of the dialogue robot and the user can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a conversation method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of computer technology, conversational robots can communicate with users quickly and effectively and are widely used in various industries. In conversational robot tasks, the knowledge base is an important factor that determines the quality of communication.

[0003] In related technologies, conversational robots generally only use the same general knowledge base and lack personalized and diverse responses for different users. The conversational robots have a low level of humanity, resulting in low communication quality and success rate with users. Summary of the invention

[0004] The embodiments of the present application provide a dialogue method, device, electronic device and storage medium, which can improve the communication quality and communication success rate between a dialogue robot and a user.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] An embodiment of the present application provides a conversation method, which includes: obtaining identification information of a target object and a target conversation topic; determining a reference call duration based on the identification information and the target conversation topic; determining a first information proportion value based on the reference call duration, the identification information and the target conversation topic; the first information proportion value is used to characterize the proportion of keywords matching the target conversation topic in a first conversation text sent to the target object; determining a target knowledge base from multiple knowledge bases corresponding to the target object based on the target conversation topic, the first information proportion value and the reference call duration; and having a conversation with the target object based on the target knowledge base.

[0007] An embodiment of the present application provides a conversation device, which includes: a data acquisition module, which is used to acquire identification information of a target object and a target conversation topic; a duration determination module, which is used to determine a reference call duration based on the identification information and the target conversation topic; a proportion determination module, which is used to determine a first information proportion based on the reference call duration, the identification information and the target conversation topic; the first information proportion is used to represent the proportion of keywords matching the target conversation topic in a first conversation text sent to the target object; a knowledge base determination module, which is used to determine a target knowledge base from multiple knowledge bases corresponding to the target object based on the target conversation topic, the first information proportion and the reference call duration; and a conversation module, which is used to conduct a conversation with the target object based on the target knowledge base.

[0008] An embodiment of the present application provides an electronic device, which includes: a memory for storing computer-executable instructions or computer programs; and a processor for executing the computer-executable instructions or computer programs stored in the memory to implement the dialogue method provided in the embodiment of the present application.

[0009] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the dialogue method provided in the embodiment of the present application when executed by a processor.

[0010] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the dialogue method provided in the embodiment of the present application is implemented.

[0011] The embodiments of the present application have the following beneficial effects:

[0012] The target knowledge base used for the conversation with the target object is determined through the three dimensions of the target conversation topic, the first information ratio and the reference call duration, so as to personalize the knowledge base for the target object, enable the conversation robot to provide more personalized and humanized conversation services, strengthen user stickiness, and improve the communication quality and communication success rate between the conversation robot and the target object. In addition, before starting a conversation with the target object, the embodiment of the present application predetermines the reference call duration of this conversation, the first information ratio is determined based on the reference call duration, identification information and the target conversation topic, and the first information ratio is used to characterize the ratio of keywords matching the target conversation topic in the first conversation text sent to the target object. The target knowledge base is selected to have a conversation with the target object, so as to achieve a balance between the call time and the information content of the call content with the target conversation topic, and reduce the hang-up rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a structural diagram of the dialogue system architecture provided by an embodiment of the present application;

[0014] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0015] Figure 3 It is a first flow chart of the dialogue method provided in the embodiment of the present application;

[0016] Figure 4 is a second flow chart of the dialogue method provided in an embodiment of the present application;

[0017] Figure 5 This is a third flow chart of the dialogue method provided in the embodiment of the present application.

[0018] It should be pointed out that the above-mentioned "first", "second" and "third" are only used to distinguish different solutions, and do not represent the degree of superiority or inferiority of the solutions or the priority in the implementation process. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0020] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0021] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0022] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0023] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0024] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0025] 1) Pre-trained language model (PTMS): It is a machine learning model that is pre-trained using a large-scale dataset. In essence, it is to learn a good feature representation for a word by running a self-supervised learning method based on a large amount of corpus. During the pre-training process, the model learns a rich feature representation that can be used for a variety of tasks, such as image classification, natural language processing, etc. For example, the pre-trained language model can be BERT (encoder), mengzi (encoder), CPM (decoder), mT5 (Encoder-Decoder) model, etc.

[0026] 2) BERT (Bidirectional Encoder Representation from Transformers): It is a pre-trained language representation model. It emphasizes that it no longer uses the traditional unidirectional language model or the shallow concatenation of two unidirectional language models for pre-training as in the past, but uses a new masked language model (MLM) to generate deep bidirectional language representation.

[0027] In the related technologies, the construction of the knowledge base plays a vital role in the tasks of the conversation robot. The quality of the standard scripts and similar scripts of the customer service agents in the knowledge base will directly affect the NLU (Natural Language Understanding) in the conversation system, and indirectly affect the NLG (Natural Language Generation). In the conversation system where customer service and users communicate with each other, generally only the same set of knowledge base is used, lacking personalization, and the diverse responses in the era of large models are only changing randomly, not changing the characteristics of the user itself. In addition, a successful personalized conversation process requires a high degree of adaptability of information density (that is, the information ratio value). Incompatible information density will cause many undesirable situations such as poor communication and deterioration of user emotions, resulting in a low communication success rate. For users with tight schedules, they are unwilling to have a call of an unexpected length.

[0028] Based on the problems existing in the related art, the embodiment of the present application provides a dialogue method, which constructs a personalized knowledge base initialization framework for different customers. The reference call duration can be determined first, so that the reference call duration of this conversation can be shown to the user at the beginning of the conversation, so as to dispel the user's concerns and reduce the hang-up rate. The dialogue method provided in the embodiment of the present application can also determine the target knowledge base used for the conversation through the three dimensions of target conversation topic, first information proportion value and reference call duration. By quickly building a personalized knowledge base that adapts to the user's information concentration, it provides a more personalized and humanized conversation service, improves user experience, and strengthens user stickiness. It can be widely used in the field of user experience, improves the intelligence and humanization level of intelligent customer service, improves the resolution rate of intelligent customer service, reduces the amount of manual consultation, and increases user satisfaction. On the company side, the dialogue method provided in the embodiment of the present application also achieves the effect of reducing the risk of inability to communicate and saving communication costs.

[0029] Here, firstly, an exemplary application of the dialogue device provided in the embodiment of the present application is described, and the dialogue device is an electronic device for implementing the dialogue method. The electronic device provided in the embodiment of the present application can be implemented as a laptop, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device), a smart phone, a smart speaker, a smart watch, a smart TV, a vehicle-mounted terminal and other types of user terminals, and can also be implemented as a server, wherein the server can be an independent physical server, or a server cluster or a 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, content distribution networks (CDN, Content Delivery Network), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiment of the present application. Below, an exemplary application when the device is implemented as a server will be described.

[0030] See also Figure 1 , Figure 1It is a schematic diagram of the architecture of the dialogue system provided in the embodiment of the present application. In order to support a dialogue application, the terminal 400 is connected to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two. The dialogue system 100 provided in the embodiment of the present application at least includes a terminal 400, a network 300 and a server 200, and the dialogue application is running on the terminal 400. The server 200 is the background server of the dialogue application. The server 200 can constitute the electronic device of the embodiment of the present application, that is, the dialogue method of the embodiment of the present application is implemented through the server 200. The terminal 400 is connected to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.

[0031] See also Figure 1 , the operator can perform interactive operations on the client of the dialogue application through the terminal 400. After receiving the interactive operation of the operator, the client can send a dialogue request to the server 200 through the terminal 400. When receiving the dialogue request, the server 200 obtains the identification information of the target object and the target dialogue topic; based on the identification information and the target dialogue topic, determines the reference call duration; based on the reference call duration, the identification information and the target dialogue topic, determines the first information ratio; the first information ratio is used to characterize the ratio of keywords matching the target dialogue topic in the first dialogue text sent to the target object; based on the target dialogue topic, the first information ratio and the reference call duration, determines the target knowledge base from the multiple knowledge bases corresponding to the target object; and conducts a dialogue with the target object based on the target knowledge base. Finally, the server 200 can send the customer service text in the target knowledge base to the terminal 400, and the terminal 400 replies to the conversation questions of the target object based on the customer service text.

[0032] In some embodiments, the terminal 400 itself can also execute the dialogue method of the embodiment of the present application, that is, after the terminal 400 receives the interactive operation input by the operator through the client, the terminal 400 responds to the interactive operation of the operator to obtain the identification information of the target object and the target dialogue topic; based on the identification information and the target dialogue topic, determine the reference call duration; based on the reference call duration, the identification information and the target dialogue topic, determine the first information proportion value; the first information proportion value is used to characterize the proportion of keywords matching the target dialogue topic in the first dialogue text sent to the target object; based on the target dialogue topic, the first information proportion value and the reference call duration, determine the target knowledge base from multiple knowledge bases corresponding to the target object; and conduct a dialogue with the target object based on the target knowledge base.

[0033] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 2The electronic device shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the electronic device are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .

[0034] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0035] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0036] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.

[0037] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.

[0038] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0039] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0040] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB), etc.;

[0041] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);

[0042] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.

[0043] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The dialog device 455 stored in the memory 450 is shown, which can be software in the form of a program and a plug-in, etc., and includes the following software modules: a data acquisition module 4551, a duration determination module 4552, a proportion value determination module 4553, a knowledge base determination module 4554 and a dialog module 4555. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0044] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the dialogue method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field programmable gate arrays (Field-Programmab le Gate Array, FPGA) or other electronic components.

[0045] The following describes the conversation method provided by the embodiment of the present application. As mentioned above, the electronic device implementing the conversation method of the embodiment of the present application can be a terminal, a server, or a combination of the two. Therefore, the execution subject of each step will not be repeatedly described below.

[0046] See also Figure 3 , Figure 3 This is a first flow chart of the dialogue method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained, Figure 3 The execution subject of the step is the server.

[0047] Step S101, obtaining identification information of a target object and a target conversation topic.

[0048] Here, the target object may be a user who is about to talk to the customer service. The customer service may be a manual customer service, an intelligent customer service (a conversational robot), etc. The following embodiments are all illustrated by intelligent customer service. For example, the target object may be a customer who is actively called by the intelligent customer service, or a customer who actively initiates a conversation with the intelligent customer service. The identification information of the target object is a unique identifier (uuid) used to characterize the identity of the target object, and its expression includes but is not limited to numbers, letters, etc. Exemplarily, the identification information of the target object may be an ID card number, etc. The identification information of the target object may be directly obtained from the customer system. The target conversation topic is the business topic of this call (telemarketing, collection, etc.). When the intelligent customer service actively initiates a call, the target conversation topic of this call can be directly obtained from the intelligent customer service system; when the target object actively initiates a call, the call source of this call can be obtained, and the target conversation topic is determined based on the call source. Exemplarily, the call source may be a collection outbound call system, and the target conversation topic is collection.

[0049] Step S102, determining a reference call duration based on the identification information and the target conversation topic.

[0050] Here, the reference call duration is the recommended call duration estimated before the call starts. That is, the reference call duration is the estimated call duration of the conversation between the intelligent customer service and the target object in this call. The intelligent customer service can inform the target object of the reference call duration at the beginning of the call to reduce the hang-up rate and improve the communication success rate.

[0051] In an embodiment of the present application, the identification information and the target conversation topic can be input into a pre-trained optimal call duration model to obtain a reference call duration. Among them, the optimal call duration model can be obtained based on the training of the pre-trained language model. It should be noted that the embodiment of the present application does not specifically limit the pre-trained language model, for example, it can be a Roberta model. The training process of the optimal call duration model can be implemented in the following manner: obtain multiple sets of annotated data, each set of annotated data includes the identification information of a sample object of a call (such as a sample user ID), a sample conversation topic (business topic) and a sample reference call duration, wherein, for any set of annotated data, the annotator can determine the moment when the sample object produces a hang-up emotion based on the recording and text of the call corresponding to the set of annotated data, and then obtain the sample reference call duration in the set of annotated data; load a pre-trained language model (such as a Roberta model), input multiple sets of annotated data into the pre-trained language model, perform classification task training, and obtain the trained optimal call duration model.

[0052] Step S103, determining a first information proportion value based on the reference call duration, identification information, and target conversation topic.

[0053] The first information ratio is used to represent the ratio of keywords matching the target conversation topic in the first conversation text sent to the target object.

[0054] Here, the first conversation text is the customer service text sent by the intelligent customer service when talking to the target object during this call. Exemplarily, taking a voice call as an example, during the call, the intelligent customer service converts the first conversation text into voice and talks to the target object. The first conversation text is the customer service text corresponding to the voice of the intelligent customer service during the conversation. The first information ratio value is used to characterize the concentration of valuable information output by the intelligent customer service to the target object during the call. Valuable information refers to information associated with the target conversation topic. Exemplarily, the first information ratio value can represent the keyword matching the target conversation topic in the customer service text replied by the intelligent customer to the target object during the conversation, and the ratio of all text in the customer service text. Keywords matching the target conversation topic refer to characters and words related to the target conversation topic.

[0055] In the embodiment of the present application, when the intelligent customer service is talking to the target object, the intelligent customer service needs to output more information in the shortest possible time, that is, a higher first information ratio is required. However, if the first information ratio does not match the information ratio that the target object can bear, that is, it does not match the target object's ability to understand, then it may take more time to communicate with the target object so that the target object can understand the customer service text replied by the intelligent customer service. Therefore, it is necessary to balance the information ratio in the customer service text output by the intelligent customer service and the information ratio that matches the target object.

[0056] Assuming that the speech speed of the intelligent customer service remains unchanged, the length of the reference call duration will determine the text length of the customer service text in this call. Therefore, when the total amount of information output by the intelligent customer service remains unchanged, the longer the reference call duration, the smaller the information ratio value can be. The target dialogue topic affects the total amount of information in the customer service text, and different target dialogue topics require different total amounts of information to be output. For example, when the target dialogue topic is a telemarketing scenario, the total amount of information that needs to be output is small (verification of identity, product introduction, etc.), and when the target dialogue topic is a collection scenario, the total amount of information that needs to be output is large (verification of identity, repayment reminder, inquiry of reasons for failure to repay, proposal of solutions, repayment pressure, etc.). It can be seen that the first information ratio value is related to the reference call duration, the target dialogue topic, and the understanding ability of the target object. The understanding ability label of the target object can be obtained through the identification information of the target object. The understanding ability label is used to characterize the understanding ability of the target object, that is, to characterize the information ratio value matching the target object. The understanding ability inference label of the target object can be obtained in advance through a comprehensive evaluation of the understanding ability of the target object in historical calls. Therefore, the first information ratio value is related to the reference call duration, the target dialogue topic, and the identification information of the target object.

[0057] In an embodiment of the present application, the reference call duration, identification information, and target conversation topic can be input into a pre-trained information ratio determination model to obtain a first information ratio value. The information ratio determination model can be obtained by training based on a pre-trained language model. It should be noted that the embodiment of the present application does not specifically limit the pre-trained language model and the model training process. For example, it can be a Roberta model, and the training process can refer to the training process of any machine learning model.

[0058] Step S104, based on the target conversation topic, the first information ratio value and the reference call duration, determine the target knowledge base from multiple knowledge bases corresponding to the target object.

[0059] In the embodiment of the present application, each object has a different personalized knowledge base. The personalized knowledge base of the object may include multiple knowledge bases. The knowledge base includes multiple customer service agent texts, and the actual call duration, conversation topic and information ratio of multiple customer service agent texts in one knowledge base are the same. There is at least one difference between the actual call duration, conversation topic and information ratio between each two knowledge bases. The conversation topic, information ratio and actual call duration corresponding to each knowledge base can be obtained from the multiple knowledge bases corresponding to the target object, and the conversation topic is consistent with the target conversation topic, the information ratio value is consistent with the first information ratio value, and the knowledge base with the actual call duration consistent with the reference call duration is determined as the target knowledge base. It should be noted that in actual scenario applications, it is only necessary to ensure that the difference between the information ratio value and the first information ratio value is less than the preset threshold, and the difference between the actual call duration and the reference call duration is less than the preset threshold. That is, the conversation topic of the target knowledge base is the target conversation topic, the information ratio value is the first information ratio value, or within the floating range of the first information ratio value (which can be set based on actual conditions), the actual call duration of the target knowledge base is less than or equal to the reference call duration.

[0060] In some embodiments, after step S101 and before step S102, the conversation method provided by the embodiment of the present application may further include the following steps: obtaining multiple historical calls of the target object under each conversation topic in multiple conversation topics, the historical calls including at least one round of historical conversations; determining the actual call duration of each historical call, the conversation topic set corresponding to the text of each round of historical conversations, and the third information ratio corresponding to the text of each round of historical conversations, the third information ratio being used to characterize the ratio of keywords that match the customer service text in the text with the conversation topic corresponding to the historical conversation; dividing the customer service text in the multiple historical calls according to the actual call duration of each historical call, the conversation topic set corresponding to the text of each round of historical conversations, and the third information ratio corresponding to the text of each round of historical conversations to obtain multiple sub-knowledge bases corresponding to the target object; generating at least one knowledge base based on the multiple sub-knowledge bases.

[0061] Here, the historical calls of the target object are the call data between the target object and the smart customer within a preset historical time period. The preset historical time period is not specifically limited in the embodiment of the present application. Each historical call corresponds to a conversation topic. For each historical call, the historical call includes at least one round of historical conversation. A round of historical conversation is a question-and-answer process between the target object and the smart customer service. Exemplarily, the target object asks the smart customer service a question, and the smart customer service answers the question, which is called a round of historical conversation. The actual call duration of the historical call is the length of time from the start of the historical call to the end of the historical call.

[0062] The conversation topic set includes at least one sub-conversation topic, and the sub-conversation topic included in the conversation topic set corresponding to the text of the historical conversation belongs to the sub-conversation topic associated with the conversation topic corresponding to the historical conversation. The text of the historical conversation includes customer service text and object text. The customer service text is the text sent by the intelligent customer service to the target object, and the object text is the text sent by the target object to the intelligent customer service. It should be noted that the customer service text in each historical conversation in each historical call is stored in the general knowledge base. The general knowledge base can be directly obtained from the business party, and the general knowledge base includes multiple customer service agent texts under multiple conversation topics. The customer service agent text includes customer service standard speech and customer service similar speech, and one customer service standard speech corresponds to multiple customer service similar speech. It should be noted that the embodiment of the present application does not limit the construction of the corresponding relationship between the customer service standard speech and the customer service similar speech. It can refer to the similarity calculation method in the relevant technology, or it can be directly obtained from the speech form provided by the business party. The customer service text in the text of the historical conversation is the customer service standard speech or customer service similar speech selected by the intelligent customer service from the general knowledge base during the historical call.

[0063] For each historical conversation text, the customer service text and the object text in the text of the historical conversation can be input into the business sub-topic model to obtain multiple sub-conversation topics of the text. Each conversation topic can include multiple conversation sub-topics. For example, the conversation topic is "collection", and the conversation topic can include multiple conversation sub-topics such as repayment amount, interest, time, and penalty interest. For a historical call with the conversation topic "collection", the historical call includes two rounds of historical conversations: historical conversation 1 and historical conversation 2. The text of historical conversation 1 involves the sub-conversation topics "repayment date" and "repayment amount", then the conversation topic set corresponding to the text of historical conversation 1 is "repayment date, repayment amount", and the text of historical conversation 2 involves the sub-conversation topic "reason for non-repayment", then the conversation topic set corresponding to the text of historical conversation 2 is "reason for non-repayment". The third information proportion value corresponding to the text of the historical conversation is used to characterize the amount of information contained in the customer service text, that is, the proportion value of keywords in the customer service text that match the conversation topic corresponding to the historical conversation. For example, the third information proportion value can be a value in the range of 0-1. For each customer service text, the customer service text may be input into the information detection model to obtain a third information proportion value of the customer service text.

[0064] After determining the actual call duration of each historical call, the conversation topic set corresponding to the text of each round of historical conversations, and the third information proportion value corresponding to the text of each round of historical conversations, the customer service texts in the multiple historical calls can be divided into multiple first customer service text groups according to the actual call duration, and the actual call duration of the historical calls to which each customer service text in the first customer service text group belongs is the same. Then, for any first customer service text group, the multiple customer service texts in the first customer service text group are divided into multiple second customer service text groups according to the sub-conversation topics in the conversation topic set, and the actual call duration of the historical calls to which each customer service text in the second customer service text group belongs is the same, and the sub-conversation topics of each customer service text are the same. For any second customer service text group, the multiple customer service texts in the second customer service text group are divided into multiple sub-knowledge bases according to the third information proportion value, and the actual call duration of the historical calls to which each customer service text in the sub-knowledge base belongs is the same, the sub-conversation topics of each customer service text are the same, and the third information proportion value of each customer service text is the same.

[0065] It should be noted that when applied in actual scenarios, errors can be allowed to exist, that is, the actual call duration of the historical calls to which each customer service text in the second customer service text group belongs can be the same, or it can be within a preset call duration floating range; the third information ratio value of each customer service text in the sub-knowledge base can be the same, or it can be within a preset ratio floating range. Since the customer service texts are all customer service standard words or customer service similar words in the general knowledge base, the sub-knowledge base includes a customer service standard word and multiple customer service similar words of the customer service standard word. Different sub-knowledge bases can correspond to the same sub-dialogue topic. For any two sub-knowledge bases with the same sub-dialogue topic, the semantic similarity of the customer service standard words and customer service similar words in the two sub-knowledge bases is within a preset threshold, but the third information ratio value is different. Multiple sub-knowledge bases with the same actual call duration, the same dialogue topic, and the same third information ratio value are combined into one knowledge base.

[0066] The embodiment of the present application determines the knowledge base used for the conversation through three dimensions: conversation topic, information ratio and actual call duration, thereby personalizing the knowledge base for different users, enabling the conversation robot to provide more personalized and humane conversation services, improving user experience and strengthening user stickiness.

[0067] In some embodiments, determining the third information proportion value corresponding to the text of the historical conversation in the above steps can be achieved in the following manner: obtaining a preset key information database, the key information database including keywords and information weights of the keywords; detecting the customer service text based on the key information database to obtain the target keyword and the number of occurrences of the target keyword, the target keyword being the keyword present in the customer service text; determining the third information proportion value of the customer service text based on the number of occurrences of the target keyword and the information weight of the target keyword.

[0068] In the embodiment of the present application, a key information library can be pre-established. The preset key information library may include a vocabulary of multiple dialogue topics, and the vocabulary of the dialogue topic includes multiple sub-lexicons, and the types of sub-lexicons include but are not limited to action lexicons, time lexicons, legal lexicons, etc. For the sub-lexicons in the vocabulary of any dialogue topic, the sub-lexicons may include multiple keywords matching the dialogue topic and the information weight of each keyword. Exemplarily, the multiple sub-lexicons with the dialogue topic of collection may include action lexicons (repayment, exemption), time lexicons (today), legal lexicons (credit), etc. For each customer service text, the customer service text is input into the information detection model, and the third information proportion value of the customer service text can be obtained. The processing process of the information detection model is as follows: using a keyword detection method (such as regular matching), detect whether there are keywords in the key information library in the customer service text, if there are, record them as target keywords, and obtain the number of occurrences of the target keywords in the customer service text. After weighted summation of the number of occurrences of the target keyword and the information weight of the target keyword, the third information proportion value of the customer service agent text is obtained.

[0069] In some embodiments, the syntactic tags of the customer service text can also be obtained, and the central word (root) and the first non-modifier, non-personal pronoun component (topic component) can be determined. Exemplarily, the weights of the central word and the topic component are set to 0.3, and generally there is only one central word and one topic component. The third information proportion value = 0.3*1+0.3*1+weight 1*number of occurrences of keyword 1*+weight 2*number of occurrences of keyword 2...+weight 6*number of occurrences of keyword 6. If there is no topic component in the customer service text, the third information proportion value = 0.3*1+0.3*0+weight 1*number of occurrences of keyword 1*+weight 2*number of occurrences of keyword 2...+weight 6*number of occurrences of keyword 6.

[0070] The embodiment of the present application determines the proportion of the third information by the number of times the keyword appears in the customer service text, so as to personalize the knowledge base of different users based on the proportion of the third information, improve the humanized service of the dialogue robot, and improve the communication success rate.

[0071] Step S105: Conducting a dialogue with the target object based on the target knowledge base.

[0072] In the embodiment of the present application, after opening a conversation, the conversation robot (intelligent customer service) can select the corresponding customer service text from the target knowledge base to answer according to the intention of the target object to achieve a conversation. The intention of the target object can be obtained from the object text sent by the target object based on the intention recognition model. It should be noted that the embodiment of the present application does not specifically limit the intention recognition model.

[0073] The embodiment of the present application determines the target knowledge base used for the dialogue with the target object through the three dimensions of the target dialogue topic, the first information ratio and the reference call duration, thereby realizing the personalization of the knowledge base for the target object, enabling the dialogue robot to provide more personalized and humanized conversation services, strengthening user stickiness, and improving the communication quality and communication success rate between the dialogue robot and the target object. In addition, before starting a dialogue with the target object, the embodiment of the present application predetermines the reference call duration of this dialogue, and the first information ratio is determined based on the reference call duration, identification information and the target dialogue topic. The first information ratio is used to characterize the ratio of keywords that match the target dialogue topic in the first dialogue text sent to the target object, and the target knowledge base is selected to conduct a dialogue with the target object, thereby achieving a balance between the information content of the call time and the target dialogue topic in the call content, and can reduce the hang-up rate.

[0074] In some embodiments, after conducting a conversation with the target object based on the target knowledge base in step S105, the following steps may also be performed: first, obtaining a second conversation text of the target object within a first time interval; then, determining a first adaptation result based on the identification information, the target conversation topic, and the second conversation text; finally, determining a new target knowledge base based on the first adaptation result, and conducting a conversation with the target object based on the new target knowledge base.

[0075] In the embodiment of the present application, the time length of the first time interval can be set based on the actual situation. For example, if the time length is 1 minute, the first time interval can be 0 to 1 minute, 1 minute to 2 minutes, etc. after the start of the conversation. The second dialogue text of the target object in the first time interval can only include the object text issued by the target object, or the second dialogue text of the target object in the first time interval can include the object text issued by the target object and the customer service text issued by the intelligent customer service. The identification information of the target object, the target dialogue topic of this dialogue, and the second dialogue text are input into the pre-trained information adaptation model to obtain the first adaptation result. The information adaptation model can be trained based on a pre-trained language model (such as a Bert model). In the case where the first adaptation result indicates that the current information ratio value is not matched, a new target knowledge base can be determined based on the first adaptation result, and a dialogue can be conducted with the target object based on the new target knowledge base; or, in the case where the first adaptation result indicates that the current information ratio value is adapted, the current target knowledge base can continue to be used to conduct a dialogue with the target object.

[0076] The embodiment of the present application periodically obtains the second conversation text of the target object within the first time interval, determines the first adaptation result at the current moment, determines a new target knowledge base according to the first adaptation result, and dynamically changes the customer service text output to the target object, so that the conversation robot can provide more personalized and humane conversation services, and improve the communication quality and communication success rate between the conversation robot and the user.

[0077] In some embodiments, in the above steps, determining the first adaptation result based on the identification information, the target conversation topic and the second conversation text can be achieved in the following manner: determining the first adaptation value based on the identification information, the target conversation topic and the second conversation text; when the first adaptation value is in the first interval, determining the first adaptation result as the first information ratio value being adapted to the target object; when the first adaptation value is in the second interval, determining the first adaptation result as the first information ratio value being incompatible with the target object, and the first information ratio value being lower than the information ratio value corresponding to the target object; when the first adaptation value is in the third interval, determining the first adaptation result as the first information ratio value being incompatible with the target object, and the first information ratio value being higher than the information ratio value corresponding to the target object; the first interval does not overlap with the second interval and the third interval.

[0078] In an embodiment of the present application, the first adaptation value can be a value of 0-1, and 0-1 is divided into three non-overlapping intervals: the first interval, the second interval, and the third interval. The identification information, the target conversation topic, and the second conversation text are input into a pre-trained information adaptation model to obtain a first adaptation value. The first adaptation result is used to characterize the degree of adaptation of the first information ratio value and the target object. The information ratio value corresponding to the target object is used to characterize the acceptable information concentration of the target object, that is, the information ratio value corresponding to the target object is a threshold value for whether the target object can understand the customer service text sent by the intelligent customer service. When the first adaptation value is in the first interval, the first adaptation result is that the first information ratio value is adapted to the target object, the target object can understand the customer service text in the second conversation text, and can no longer accept more new information related to the target conversation topic. When the first adaptation value is in the second interval, the first adaptation result is that the first information ratio value is not compatible with the target object, and the first information ratio value is lower than the information ratio value corresponding to the target object. The target object can not only understand the customer service text of the second dialogue text, but also receive more new information related to the target dialogue topic. For example, at this time, the target object's object text in the second dialogue text contains expressions such as "Please speak faster so that I can understand." When the first adaptation value is in the third interval, the first adaptation result is that the first information ratio value is not compatible with the target object, and the first information ratio value is higher than the information ratio value corresponding to the target object. The target object can no longer fully understand the customer service text of the second dialogue text. For example, the target object's object text in the second dialogue text contains expressions such as "I don't understand."

[0079] It should be noted that the first interval, the second interval and the third interval only need to satisfy the non-overlapping, and after merging, they are a complete [0, 1] interval. The embodiment of the present application does not specifically limit the size relationship between the first interval, the second interval and the third interval. The size relationship between the first interval, the second interval and the third interval is related to the model training process of the information adaptation model. The training process of the information adaptation model can be as follows: load a pre-trained language model, such as a Bert model; input the training data into the pre-trained language model to perform classification task training; the training data may include training text, object identification information and training labels, wherein the training text is the conversation text of the object's historical call, and the training label is the manually annotated training first adaptation value. Exemplarily, when words such as "can't understand" appear in the training text, the training label corresponding to the training text can be manually annotated as 0.8, when words such as "quickly say" appear in the training text, the training label corresponding to the training text can be manually annotated as 0.1, and when there are no preset words in the training text, the training label corresponding to the training text can be manually annotated as 0.6. By classifying and training the pre-trained language model with a large number of training texts with training labels, an information adaptation model can be obtained, and the multiple classification results output by the information adaptation model are the first interval, the second interval and the third interval. Therefore, the value range of the first interval, the second interval and the third interval is related to the numerical value of the training labels manually annotated on multiple training samples in the process of preparing training data. Exemplarily, the second interval can be smaller than the first interval, and the third interval can be larger than the first interval. The first interval is (0.3-0.5), the second interval is (0-0.3), and the third interval is (0.5-1).

[0080] The embodiment of the present application determines the first adaptation value at the current moment through the second dialogue text of the target object within the first time interval, determines the first adaptation result through the interval in which the first adaptation value falls, determines a new target knowledge base according to the first adaptation result, and dynamically changes the customer service text output to the target object, so that the dialogue robot can provide more personalized and humane conversation services, and improve the communication quality and communication success rate between the dialogue robot and the user.

[0081] In some embodiments, the above steps of determining a new target knowledge base based on the first adaptation result and conducting a conversation with the target object based on the new target knowledge base can be achieved in the following ways: determining a preset proportional coefficient based on the first adaptation result, and determining a second information proportion value based on the preset proportional coefficient; determining a new target knowledge base from multiple knowledge bases based on the target conversation topic, the second information proportion value and the reference call duration, and conducting a conversation with the target object based on the new target knowledge base.

[0082] In an embodiment of the present application, the preset proportional coefficient may be a ratio of the second information proportion value to the first information proportion value. The second information proportion value is used to characterize the proportion of keywords that match the target conversation topic in the conversation text sent to the target object from the current moment. Different first adaptation results correspond to different preset proportional coefficients. The product of the first information proportion value and the preset proportional coefficient may be determined as the second information proportion value. The specific process of determining a new target knowledge base from multiple knowledge bases based on the target conversation topic, the second information proportion value and the reference call duration may refer to the other embodiments described above.

[0083] In some embodiments, when the first adaptation result is that the first information ratio value is not compatible with the target object, and the first information ratio value is lower than the information ratio value corresponding to the target object, the preset proportional coefficient is the first preset proportional coefficient, and the second information ratio value is greater than the first information ratio value; when the first adaptation result is that the first information ratio value is not compatible with the target object, and the first information ratio value is higher than the information ratio value corresponding to the target object, the preset proportional coefficient is the second preset proportional coefficient, and the second information ratio value is less than the first information ratio value; wherein, the first preset proportional coefficient is greater than the second preset proportional coefficient.

[0084] In the embodiment of the present application, when the first information ratio value is not compatible with the target object, and the first information ratio value is lower than the first adaptation result of the information ratio value corresponding to the target object, the target object still has spare capacity to receive more information. The preset proportional coefficient is the first preset proportional coefficient, and the product of the first preset proportional coefficient and the first information ratio value is determined as the second information ratio value. It should be noted that the embodiment of the present application does not specifically limit the value of the first preset proportional coefficient, and it is only necessary to satisfy that the first preset proportional coefficient is greater than 1 so that the second information ratio value is greater than the first information ratio value. The first preset proportional coefficient can be a fixed value, such as 1.2. Alternatively, the first preset proportional coefficient can be determined based on the first adaptation value, that is, the first preset proportional coefficient changes with the change of the first adaptation value. Exemplarily, the second interval can be divided into a plurality of sub-intervals, each sub-interval corresponding to a different first preset proportional coefficient, and the sub-interval in which the first adaptation value is located in the second interval is determined, and then the first preset proportional coefficient corresponding to the first adaptation value can be determined.

[0085] When the first information ratio value is not compatible with the target object, and the first information ratio value is higher than the first adaptation result of the information ratio value corresponding to the target object, the target object cannot fully understand the information transmitted by the smart client. The preset proportional coefficient is the second preset proportional coefficient, and the product of the second preset proportional coefficient and the first information ratio value is determined as the second information ratio value. It should be noted that the embodiment of the present application does not specifically limit the value of the second preset proportional coefficient, and it is only necessary to satisfy that the second preset proportional coefficient is less than 1 so that the second information ratio value is less than the first information ratio value. The second preset proportional coefficient can be a fixed value, such as 0.8. Alternatively, the second preset proportional coefficient can be determined based on the first adaptation value, that is, the second preset proportional coefficient changes with the change of the first adaptation value. Exemplarily, the third interval can be divided into multiple sub-intervals, and the second preset proportional coefficient corresponding to each sub-interval is different. It is determined that the sub-interval in which the first adaptation value is located in the third interval, and then the second preset proportional coefficient corresponding to the first adaptation value can be determined.

[0086] In some embodiments, when a first adaptation result is obtained in which the first information ratio value is adapted to the target object, the first information ratio value does not need to be changed. At this time, the preset ratio coefficient is 1. The second information ratio value determined based on the preset ratio coefficient is equal to the first information ratio value. The target knowledge base can continue to be used to communicate with the target object.

[0087] The embodiment of the present application determines the second information proportion value corresponding to the new target knowledge base through different preset proportional coefficients and first information proportion values, selects a target knowledge base that better matches the target object to continue the conversation with the target object, so that the dialogue robot can provide more personalized and humane conversation services, and improves the communication quality and communication success rate between the dialogue robot and the user.

[0088] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0089] Taking the scenario where the intelligent customer service calls the customer as an example, the dialogue method provided in the embodiment of the present application is shown in FIG. Figure 4 First, personalized knowledge base initialization is performed for different customers, including the following steps S201 to S204. Figure 4 Provide explanation.

[0090] Step S201, obtaining all historical call texts of the customer.

[0091] Here, the call data of each conversation between the intelligent customer service and the customer under different business topics (conversation topics) can be obtained. For each conversation, the text on the agent side (corresponding to the customer service text in the above embodiment) and the text on the customer side (corresponding to the object text in the above embodiment) in the call data of the conversation are used as the historical call text of the conversation. Among them, the text on the agent side is the main consideration for calculating the information concentration (corresponding to the information proportion value in the above embodiment). Exemplarily, in the process of obtaining all the historical call texts of the customer (corresponding to the text of each round of historical conversations in the above embodiment), data of different scenarios can be obtained. For example, the historical call data of the customer in multiple scenarios (also called business topics) such as telemarketing and collection need to be obtained.

[0092] Step S202: Use the business sub-topic model to detect the business sub-topic sequence involved in the historical call text to obtain the business sub-topic combination of each call.

[0093] Here, a business topic may involve multiple business sub-topics (sub-dialogue topics). Exemplarily, the business topic is "debt collection", which involves multiple business sub-topics such as repayment amount, interest, time, penalty interest, etc. The business sub-topic model (model_theme) can be obtained based on the training of the pre-trained language model. The training process of the business sub-topic model is as follows: load the pre-trained language model, such as the Bert model, input the training data into the pre-trained language model, perform sequence labeling task training, and obtain the trained business sub-topic model. The training data may include training text (text): a turn (agent text & customer text), training label (label): [repayment amount, interest]. The text to be detected (a turn in the historical call text) is input into the business sub-topic model, and the business sub-topic sequence of the turn is output (corresponding to the dialogue topic set in the above embodiment).

[0094] Step S203: input all the standard agent speech and similar agent speech in the general knowledge base into the information density detection model to calculate the information density of all speech.

[0095] Here, the technical implementation of the information concentration measurement includes the following steps: first, a key information library (corresponding to the keyword information library in the above embodiment) can be constructed. The key information library includes a business action vocabulary library (repayment, exemption), a time library (today), and a legal library (credit investigation), wherein each library contains words and information weights of words. The information concentration detection model includes a keyword detection module, a dependency syntax module, and an information concentration calculation module. The agent text (standard agent speech and similar agent speech) in the general knowledge base is input into the information concentration detection model. The keyword detection module uses the keyword detection method (regular matching) to obtain the key words and the number of occurrences of the key words in the key information library contained in the agent text. The dependency syntax module (such as the dependency syntax module of PaddlePaddle) can obtain the syntactic tags of the agent text and determine the central word (root) and the first non-modifier, non-personal pronoun component (the non-function word, non-modifier, and non-personal pronoun at the beginning of the sentence are most likely the topic discussed in the agent text of this sentence, and the topic is a word with a large amount of information). The weights of the central word and topic components are naturally high, and can be set to 0.3 (this value can also be set based on the experience of business experts). Generally, there is only one central word and one topic component. Finally, the information density calculation module calculates the above-obtained results, information density = 0.3*1+0.3*1+weight 1*the number of key words 1*+weight 2*the number of key words 2...+weight 6*the number of key words 6.

[0096] Step S204, completing the initialization of the personalized knowledge base.

[0097] Here, each customer has his or her own personalized knowledge base. The personalized knowledge base can include multiple sub-knowledge bases, which are classified according to the combination of three dimensions: call duration, business sub-topics, and information density. Each sub-knowledge base contains standard agent speech and similar agent speech. The standard agent speech and similar agent speech in the same sub-knowledge base have the same information density. The semantic similarity between the standard agent speech and similar agent speech in different sub-knowledge bases is within a threshold, but the information density is different. In other words, for the same question raised by different customers, the agent texts responded by the intelligent customer service are similar in semantics, but the information density is different.

[0098] See also Figure 5 After completing the initialization of the personalized knowledge base, the personalized knowledge base application process for different customers may include steps S301 to S311. Figure 5 Provide explanation.

[0099] Step S301, before the session starts, obtain the client ID (Identity document) from the client system.

[0100] Step S302, obtaining the call source of the current call session from the client system and determining the business topic.

[0101] Exemplarily, the call source may be a collection outbound call system, and the business topic is collection.

[0102] Step S303: input the customer identification and the business topic into the optimal call duration model to obtain a recommended call duration.

[0103] Here, the business topic is determined by the source of the call. The optimal call duration model (model_call_duration) can be trained based on the pre-trained language model. The training process of the optimal call duration model is as follows: prepare labeled data, which includes the entire recording and text (data with a call duration of more than 10 seconds), customer ID, and business topic. The labeler can judge the optimal call duration based on the moment when the customer wants to hang up during the call (recording and text), and use this as a label for labeling; load the pre-trained language model (such as the Roberta model), input the labeled data (customer ID, business topic, optimal call duration) into the pre-trained language model, perform classification task training, and obtain the trained optimal call duration model.

[0104] Step S304: input the acquired recommended call duration, customer identification, and business topic into an information density detection model to obtain a recommended information density.

[0105] Here, the information concentration detection model (corresponding to the information detection model in the above embodiment) is used to give an information concentration value suitable for the current customer for the current business topic, that is, the recommended information concentration (corresponding to the first information proportion value in the above embodiment). Information concentration measurement: Information concentration mainly calculates the proportion of new information in the agent's speech to the total text, and at the same time considers the information weight of the unit information (i.e., business importance).

[0106] Step S305 , inputting the recommended information density and the recommended call duration into a knowledge base selection model, and the knowledge base selection model selects the optimal knowledge base from the customer's personalized knowledge base.

[0107] Here, the knowledge base selection model can select the optimal knowledge base from all knowledge bases classified according to the combination of three dimensions: call duration, business sub-topic, and information concentration, to ensure that customers obtain the most appropriate amount of business information in the shortest time and ensure business results. The knowledge base contains standard agent scripts and similar agent scripts. The standard agent scripts and similar agent scripts in the same knowledge base have the same information concentration.

[0108] Step S306: The conversation begins, and the agent informs the customer of the duration of the call at the beginning of the conversation.

[0109] The embodiments of the present application can eliminate the concerns and resistance of customers caused by the uncertainty of the duration.

[0110] Step S307: The customer starts speaking.

[0111] Step S308: input the customer text into a conventional intent recognition model to obtain the customer intent.

[0112] Here, the conventional intent recognition model can select a multi-label intent recognition model to obtain as many intents in the customer text as possible.

[0113] Step S309, multiple intentions are input into the optimal knowledge base, corresponding agent standard speech and agent similar speech are obtained, and one of them is randomly selected to reply the customer.

[0114] Step S310: input the call text, customer identification, and business topic into the information density adaptation model to obtain a label indicating whether the information density is adapted or not.

[0115] Here, the adaptability of information density (corresponding to the first adaptation result in the above embodiment) can be counted from a single round of conversation, or it can be considered from the granularity of the entire conversation, mainly to see whether the customer can receive all the information or whether there is spare energy to receive more information during the information transmission process of a certain density of the agent. The information density adaptation model (model_information_density_match) can detect whether the customer has expressions such as "I don't understand", "You speak too fast", "You speak faster so I can understand" through keywords and classification models, and obtain the results of three classification models. The training process of the information density adaptation model can be as follows: load a pre-trained language model, such as a Bert model; input the training data into the pre-trained language model, and perform classification task training (task = 'classification'). If it is multiple sentences, multiple sentences are spliced; the training data can include training text (text): customer identification (uuid) & customer text, training label (label): 0.8. Input the call text into the trained information density adaptation model, output the information density adaptation degree (corresponding to the first adaptation value in the above embodiment), and obtain the information density adaptation result.

[0116] S311, determining a new optimal knowledge base based on the information concentration adaptation result.

[0117] During the conversation, if the customer has a topic of interest, the conversation time can be extended as appropriate and the general knowledge base can be used to answer questions; because the extended conversation time is asked by the customer on his own initiative, it does not need to be included in the conversation time notified in advance, and the extra time can be reserved for personalized question-and-answer time. Customers can choose their own call interest elements from the business element words provided by the business party, such as nouns: Xiaoma Huahua Card, verbs: repayment, unbinding, and cancellation, and set the marking score of the personalized knowledge base.

[0118] The embodiments of the present application propose a personalized knowledge base initialization framework for different customers through information concentration detection and concentration matching evaluation, propose a service framework for personalized replies by customizing the communication time, focusing on the business points of communication, and the business information concentration that customers can bear through model evaluation, propose a text information concentration detection and concentration matching evaluation framework, and propose a text information optimization and compression disassembly framework.

[0119] It should be noted that in the embodiment of the present application, the recommended call duration is obtained by model evaluation, which is a customer-insensitive method. In actual operation, the model evaluation method can also be replaced by an explicit customization method customized by the customer; in the embodiment of the present application, the recommended call duration is determined before the start of the conversation. In actual operation, it can be appropriately adjusted based on the customer's real-time conversation response emotions as the conversation progresses; in the embodiment of the present application, the information concentration detection mainly adopts the new information detection technology, which comprehensively considers factors such as context, business importance, and non-business information. In actual operation, it can also be directly based on the business proper noun, which is a table testimony that clearly identifies business information, for simple detection; in the embodiment of the present application, when detecting the sub-topic sequence of a conversation, a single-round input is adopted, and then splicing is performed. In actual operation, the entire input can also be used to directly obtain the entire sub-topic sequence; in the embodiment of the present application, the annotation personnel judge the optimal call duration based on the moment when the customer wants to hang up in the call (recording and text). In actual operation, it can also be judged only based on voice or text.

[0120] It is understandable that in the embodiments of the present application, related data such as user information and user identification information are involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0121] The following is a description of an exemplary structure of the dialogue device 455 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the dialogue device 455 of the memory 450 may include:

[0122] The data acquisition module 4551 is used to obtain the identification information of the target object and the target conversation topic.

[0123] The duration determination module 4552 is used to determine a reference call duration based on the identification information and the target conversation topic.

[0124] The proportion determination module 4553 is used to determine the first information proportion based on the reference call duration, identification information and target conversation topic; the first information proportion is used to represent the proportion of keywords matching the target conversation topic in the first conversation text sent to the target object.

[0125] The knowledge base determination module 4554 is used to determine a target knowledge base from a plurality of knowledge bases corresponding to the target object based on the target conversation topic, the first information ratio value and the reference call duration.

[0126] The dialogue module 4555 is used to conduct a dialogue with the target object based on the target knowledge base.

[0127] In some embodiments, the dialogue device 455 also includes a proportion adaptation module, which is used to obtain a second dialogue text of the target object within a first time interval; determine a first adaptation result based on the identification information, the target dialogue topic and the second dialogue text; determine a new target knowledge base based on the first adaptation result, and conduct a dialogue with the target object based on the new target knowledge base.

[0128] In some embodiments, the proportion adaptation module is also used to determine a first adaptation value based on the identification information, the target conversation topic and the second conversation text; when the first adaptation value is in the first interval, the first adaptation result is determined to be that the first information proportion value is adapted to the target object; when the first adaptation value is in the second interval, the first adaptation result is determined to be that the first information proportion value is not compatible with the target object, and the first information proportion value is lower than the information proportion value corresponding to the target object; when the first adaptation value is in the third interval, the first adaptation result is determined to be that the first information proportion value is not compatible with the target object, and the first information proportion value is higher than the information proportion value corresponding to the target object; the first interval does not overlap with the second interval and the third interval.

[0129] In some embodiments, the proportion adaptation module is also used to determine a preset proportion coefficient based on the first adaptation result, and to determine a second information proportion value based on the preset proportion coefficient; based on the target conversation topic, the second information proportion value and the reference call duration, to determine a new target knowledge base from the multiple knowledge bases, and to conduct a conversation with the target object based on the new target knowledge base.

[0130] In some embodiments, the dialogue device 455 also includes a knowledge base construction module, which is used to obtain multiple historical calls of the target object under each dialogue topic in multiple dialogue topics, and the historical calls include at least one round of historical dialogues; determine the actual call duration of each of the historical calls, the dialogue topic set corresponding to the text of each round of the historical dialogue, and the third information ratio corresponding to the text of each round of the historical dialogue, and the third information ratio is used to characterize the ratio of keywords that match the customer service text in the text with the dialogue topic corresponding to the historical dialogue; divide the customer service text in the multiple historical calls according to the actual call duration of each of the historical calls, the dialogue topic set corresponding to the text of each round of the historical dialogue, and the third information ratio corresponding to the text of each round of the historical dialogue to obtain multiple sub-knowledge bases corresponding to the target object; generate at least one knowledge base based on the multiple sub-knowledge bases.

[0131] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction or the computer program from the computer-readable storage medium, and the processor executes the computer executable instruction or the computer program, so that the electronic device executes the above-mentioned conversation method of the embodiment of the present application.

[0132] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will be caused to execute the dialogue method provided by the present application embodiment, for example, Figure 3 The dialogue method is shown.

[0133] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0134] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0135] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0136] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0137] In summary, the embodiment of the present application indicates the duration to the customer at the beginning of the conversation, dispels the customer's concerns and reduces the hang-up rate; by quickly building a personalized knowledge base that adapts to the customer's information concentration, it provides more personalized and humanized conversation services, improves user experience, and strengthens user stickiness. It can be widely used in the field of customer experience, improves the intelligence and humanization level of intelligent customer service, improves the intelligent customer service resolution rate, reduces the amount of manual consultation, and increases customer satisfaction. On the company side, it also objectively achieves the effect of reducing the risk of communication failure and saving communication costs.

[0138] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A conversation method, characterized in that: The method comprises: Obtain identification information of the target object and the target conversation topic; Determining a reference call duration based on the identification information and the target conversation topic; Based on the reference call duration, the identification information and the target conversation topic, determining a first information proportion value; the first information proportion value is used to represent the proportion of keywords matching the target conversation topic in the first conversation text sent to the target object; Determining a target knowledge base from a plurality of knowledge bases corresponding to the target object based on the target conversation topic, the first information proportion value, and the reference call duration; Conducting a dialogue with the target object based on the target knowledge base.

2. The method according to claim 1, characterized in that After conducting a dialogue with the target object based on the target knowledge base, the method further includes: Acquire a second conversation text of the target object within a first time interval; Determining a first adaptation result based on the identification information, the target conversation topic, and the second conversation text; A new target knowledge base is determined based on the first adaptation result, and a dialogue is conducted with the target object based on the new target knowledge base.

3. The method according to claim 2, characterized in that The determining a first adaptation result based on the identification information, the target dialogue topic, and the second dialogue text includes: Determining a first adaptation value based on the identification information, the target conversation topic, and the second conversation text; When the first adaptation value is within the first interval, determining the first adaptation result is that the first information proportion value is adapted to the target object; When the first adaptation value is within the second interval, determining that the first adaptation result is that the first information proportion value is not compatible with the target object, and the first information proportion value is lower than the information proportion value corresponding to the target object; When the first adaptation value is within the third interval, determining that the first adaptation result is that the first information proportion value is not compatible with the target object, and the first information proportion value is higher than the information proportion value corresponding to the target object; The first interval does not overlap with the second interval and the third interval.

4. The method according to claim 3, characterized in that The determining a new target knowledge base based on the first adaptation result, and communicating with the target object based on the new target knowledge base, includes: Determine a preset proportionality coefficient based on the first adaptation result, and determine a second information proportion value based on the preset proportionality coefficient; Based on the target conversation topic, the second information proportion value and the reference call duration, a new target knowledge base is determined from the multiple knowledge bases, and a conversation is conducted with the target object based on the new target knowledge base.

5. The method according to claim 4, characterized in that When the first adaptation result is that the first information proportion value is not compatible with the target object, and the first information proportion value is lower than the information proportion value corresponding to the target object, the preset proportion coefficient is the first preset proportion coefficient, and the second information proportion value is greater than the first information proportion value; When the first adaptation result is that the first information proportion value is not compatible with the target object, and the first information proportion value is higher than the information proportion value corresponding to the target object, the preset proportion coefficient is a second preset proportion coefficient, and the second information proportion value is less than the first information proportion value; Wherein, the first preset proportionality coefficient is greater than the second preset proportionality coefficient.

6. The method according to claim 1, characterized in that The method further comprises: Acquire multiple historical conversations of the target object under each of the multiple conversation topics, wherein the historical conversations include at least one round of historical conversations; Determine the actual call duration of each of the historical calls, the conversation topic set corresponding to the text of each round of the historical conversation, and the third information ratio corresponding to the text of each round of the historical conversation, where the third information ratio is used to represent the ratio of keywords in the customer service text in the text that match the conversation topic corresponding to the historical conversation; The customer service texts in the multiple historical calls are divided according to the actual call duration of each of the historical calls, the conversation topic set corresponding to the text of each round of the historical conversation, and the third information proportion value corresponding to the text of each round of the historical conversation, to obtain multiple sub-knowledge bases corresponding to the target object; At least one knowledge base is generated based on the multiple sub-knowledge bases.

7. A conversation device, characterized in that: The device comprises: A data acquisition module is used to obtain identification information of a target object and a target conversation topic; A duration determination module, configured to determine a reference call duration based on the identification information and the target conversation topic; A proportion value determination module, used to determine a first information proportion value based on the reference call duration, the identification information and the target conversation topic; the first information proportion value is used to represent the proportion value of keywords matching the target conversation topic in the first conversation text sent to the target object; A knowledge base determination module, configured to determine a target knowledge base from a plurality of knowledge bases corresponding to the target object based on the target conversation topic, the first information ratio value and the reference call duration; A dialogue module is used to conduct a dialogue with the target object based on the target knowledge base.

8. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions or computer programs; A processor, configured to implement the dialogue method according to any one of claims 1 to 6 when executing the computer executable instructions or computer programs stored in the memory.

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

10. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer program are executed by a processor, the dialogue method according to any one of claims 1 to 6 is implemented.