Dialogue training method, device, system and storage medium
Through speech recognition and dialogue analysis technology, real-time matching and provision of dialogue response strategies solves the problems of high cost and single scenario of existing training methods, and improves the sales skills and customer interaction capabilities of novice agents.
Patent Information
- Application Number
- CN202010036245.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-14
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-01-14
AI Technical Summary
The existing agent training methods are costly and have a single training scenario, making it difficult to cope with complex logic and multiple rounds of dialogue, resulting in a low success rate of personnel onboarding.
Speech recognition technology is used to obtain the agent's speech information in real time. Through the dialogue analysis model and response skill recommendation model, response strategies are matched and provided in real time, and actual combat drills of different scenarios and dialogue logics are simulated.
It reduces the cost of manual experience teaching, saves human resources, fully simulates actual sales scenarios, and improves the sales skills and customer interaction experience of novice agents.
Smart Images

Figure CN111241357B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a dialogue coaching method, device, system and computer-readable storage medium. Background Art
[0002] There are salespeople in every industry, and they play an important role in serving customers, especially in the retail industry. As the front-line personnel who communicate with customers face to face, their words and tone of voice will directly affect the results of customers' shopping. Especially in today's telephone sales, agents contact customers by phone to recommend products, which puts more pressure on the communication methods of sales agents. These communication methods require time accumulation and continuous practice and summary to obtain, which requires sales personnel to pass pre-job skills training before taking up their posts.
[0003] For pre-job training, current machine training has achieved training in the form of robot dialogue, but the current robot dialogue is based on simple language and a single scenario for dialogue training. It is impossible to implement training for complex logic and multi-round dialogue, and still needs to return to manual training or actual sales to implement. Based on the existing training method, the scenario is too single, and it is difficult to respond flexibly according to the dialogue scenario, resulting in a low success rate for personnel to take up their posts. Summary of the invention
[0004] The main purpose of the present invention is to provide a dialogue training method, device, system and computer-readable storage medium, aiming to solve the technical problems of existing seat training methods, such as high cost and single training scenario.
[0005] To achieve the above object, the present invention provides a dialogue training method, which is applied to a dialogue coaching system. The dialogue training method comprises the following steps:
[0006] Acquire the agent's speech information in real time, wherein the speech information includes a first voice segment in which the agent responds to the response request of the dialogue coaching system and / or a second voice segment in which the agent recommends a business to the dialogue coaching system;
[0007] Extracting audio information of the first voice segment and / or the second voice segment in the speech information by using speech recognition technology, and converting the audio information into text information;
[0008] Inputting the text information into a preset conversation analysis model to perform conversation matching analysis to identify a conversation response strategy corresponding to the audio information;
[0009] Inputting the identified dialogue response strategy into a pre-trained dialogue recommendation model for analysis to obtain corresponding response language;
[0010] The response language is converted into a voice stream and broadcasted to respond to the agent.
[0011] Optionally, after the step of obtaining the agent's speech information in real time, the method further includes:
[0012] Detecting whether the dialogue coaching system currently communicating with the agent has information about the previous round of dialogue;
[0013] If so, determining whether the information of the previous round of dialogue is a response request for raising an objection;
[0014] If not present, the speech information is converted into text information according to the speech recognition technology.
[0015] Optionally, the step of extracting audio information of the first voice segment and / or the second voice segment in the speech information by using speech recognition technology and converting the audio information into text information includes:
[0016] Extracting waveform information of a first voice segment in the speech information;
[0017] If it is determined that the information of the previous round of dialogue is a response request for raising an objection, extracting acoustic features using speech recognition technology based on the waveform information;
[0018] Compare the extracted acoustic features with the preset Chinese word pronunciation waveform to obtain the corresponding Chinese word to achieve text conversion;
[0019] All converted Chinese words are sorted in chronological order to obtain reply information corresponding to the first voice segment.
[0020] Optionally, the conversation analysis model includes a language sentiment analysis sub-model and a strategy analysis model, and the step of inputting the text information into a preset conversation analysis model for conversation matching analysis to identify a conversation response strategy corresponding to the audio information includes:
[0021] Performing feature extraction on the reply information to extract an audio feature vector corresponding to the first voice segment;
[0022] Inputting the audio feature vector and the waveform information into the language emotion analysis sub-model for analysis, and identifying the emotion classification corresponding to the first speech segment;
[0023] Inputting the reply information into the strategy analysis model, analyzing the word combination rules in the reply information, and obtaining a response strategy for the objection;
[0024] Compare the response strategy with a preset standard objection handling strategy to obtain a comparison result;
[0025] A corresponding response strategy is selected according to the comparison result and the emotion classification, wherein the response strategy includes using the response dialogue recommendation model to output response speech and using a common response language.
[0026] Optionally, the step of extracting audio information of the first voice segment and / or the second voice segment in the speech information by using speech recognition technology and converting the audio information into text information further includes:
[0027] If it is detected that the dialogue coaching system does not have information about the previous round of dialogue, or it is determined that the information about the previous round of dialogue is not a response request to raise an objection, the recommended audio information in the second voice segment in the speech information is converted into text based on speech recognition technology and the matching relationship between the pronunciation of Chinese words and acoustic features to obtain corresponding recommendation information.
[0028] Optionally, the step of inputting the text information into a preset conversation analysis model to perform conversation matching analysis and identifying a conversation response strategy corresponding to the audio information further includes:
[0029] Inputting the recommendation information into a preset conversation analysis model, and extracting sales keywords from the recommendation information based on an intention recognition and classification algorithm in the conversation analysis model;
[0030] According to the pre-built correspondence between sales keywords and intents, querying the intent corresponding to the extracted sales keywords, wherein the intent includes a confidence level;
[0031] Determine whether the confidence level is greater than a confidence level threshold, and obtain a determination result;
[0032] A corresponding dialogue response strategy is determined according to the judgment result.
[0033] Optionally, the response dialogue recommendation model is obtained by:
[0034] The voice data of the conversations between agents in different positions and customers are collected through the voice collection unit on the conversation coaching system;
[0035] Extracting, from the voice data, sales keywords related to the business sold by the agent and customer response data based on the business using speech recognition technology, wherein the sales keywords are sales keywords that are positively correlated with the agent's sales performance, and the response data include objections raised by the customer;
[0036] Using artificial intelligence deep learning algorithms, data analysis is performed on the extracted sales keywords and answer corpus to establish a response dialogue recommendation model for sales keywords and customer answer corpus.
[0037] In addition, to achieve the above object, the present invention also provides a dialogue training device, the dialogue training device comprising:
[0038] A collection module, used for acquiring the speech information of the agent in real time, wherein the speech information includes a first voice segment in which the agent replies to the response request of the dialogue coaching system and / or a second voice segment in which the agent recommends a business to the dialogue coaching system;
[0039] A conversion module, used for extracting audio information of the first voice segment and / or the second voice segment in the speech information by using speech recognition technology, and converting the audio information into text information;
[0040] A matching module, used for inputting the text information into a preset conversation analysis model to perform conversation matching analysis to identify a conversation response strategy corresponding to the audio information;
[0041] An analysis module, configured to input the identified dialogue response strategy into a pre-trained response language recommendation model for analysis to obtain a corresponding response language;
[0042] A broadcast module is used to convert the response language into a voice stream and broadcast it to respond to the agent.
[0043] Optionally, the dialogue training device also includes a detection module for detecting whether the dialogue coaching system currently communicating with the agent has information about the previous round of dialogue; if so, determining whether the information about the previous round of dialogue is a response request for raising an objection; if not, converting the speech information into text information based on the speech recognition technology.
[0044] Optionally, the conversion module includes an extraction unit and a conversion unit, wherein:
[0045] The extraction unit is used to extract the waveform information of the first voice segment in the speech information when the detection module determines that the information of the previous round of dialogue is a response request for raising an objection; and extract the acoustic features by using the speech recognition technology according to the waveform information;
[0046] The conversion unit is used to compare the extracted acoustic features with the preset Chinese word pronunciation waveform to obtain the corresponding Chinese word to achieve text conversion; all converted Chinese words are sorted in time sequence to obtain the reply information corresponding to the first voice segment.
[0047] Optionally, the conversation analysis model includes a language sentiment analysis sub-model and a strategy analysis model, and the matching module includes a sentiment matching unit, a strategy matching unit, a comparison unit and a selection unit, wherein:
[0048] The emotion matching unit is used to extract features from the reply information and extract an audio feature vector corresponding to the first voice segment; input the audio feature vector and the waveform information into the language emotion analysis sub-model for analysis and identify the emotion classification corresponding to the first voice segment;
[0049] The strategy matching unit is used to input the reply information into the strategy analysis model, analyze the word combination rules in the reply information, and obtain the response strategy for the objection;
[0050] The comparison unit is used to compare the response strategy with a preset standard objection handling strategy to obtain a comparison result;
[0051] The selection unit is used to select a corresponding response strategy according to the comparison result and the emotion classification, wherein the response strategy includes using the response dialogue recommendation model to output response speech and using a common response language.
[0052] Optionally, the conversion unit is also used to convert the recommended audio information in the second voice segment in the speech information into text based on speech recognition technology and the matching relationship between the pronunciation of Chinese words and acoustic features when the detection module detects that the dialogue coaching system does not have the information of the previous round of dialogue, or judges that the information of the previous round of dialogue is not a response request to raise an objection, so as to obtain corresponding recommendation information.
[0053] Optionally, the matching module is further used to input the recommendation information into a preset conversation analysis model, and extract sales keywords in the recommendation information based on the intention recognition and classification algorithm in the conversation analysis model; query the intention corresponding to the extracted sales keyword based on the pre-constructed correspondence between sales keywords and intentions, wherein the intention includes a confidence level; determine whether the confidence level is greater than a confidence level threshold to obtain a judgment result; and determine a corresponding conversation response strategy based on the judgment result.
[0054] Optionally, the dialogue training device also includes a training module, which is used to collect voice data of conversations between agents in different positions and customers through the voice collection unit on the dialogue coaching system; based on the voice recognition technology, extract sales keywords related to the business sold by the agent and the customer's answer corpus based on the business in the voice data, wherein the sales keywords are sales keywords that are positively correlated with the agent's sales performance, and the answer corpus includes objections raised by the customer; using an artificial intelligence deep learning algorithm, perform data analysis on the extracted sales keywords and answer corpus and then establish a response dialogue recommendation model for sales keywords and customer answer corpus.
[0055] In addition, to achieve the above-mentioned purpose, the present invention also provides a dialogue coaching system, characterized in that the dialogue coaching system includes: a memory, a processor, and a dialogue training program stored in the memory and executable on the processor, and when the dialogue training program is executed by the processor, the steps of the dialogue training method described in any one of the above items are implemented.
[0056] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a dialogue training program is stored, and when the dialogue training program is executed by the processor, the steps of the dialogue training method as described in any one of the above items are implemented.
[0057] The present invention provides an artificial intelligence human-machine dialogue training method, and applies the method to an intelligent dialogue coaching system. The speech information of the agent is obtained in real time, and the speech information is converted into text according to the speech recognition technology, and then the key information is extracted and input into the dialogue analysis model to match the corresponding response strategy. The response language is determined according to the response strategy set and the pre-trained response dialogue recommendation model. The dialogue coaching system gives a reply to the agent's speech according to the response language, and realizes the actual combat drill of different scenarios and different dialogue logics between humans and machines. This also greatly reduces the process of manual experience transfer, saves human resources, reduces costs, and fully simulates the actual scenario, so that novice agents can feel the real sales process before taking up the post, which is helpful to improve their sales skills and improve the feelings of real customers facing new agents. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of the structure of the operating environment of the dialogue coaching system involved in the embodiment of the present invention;
[0059] Figure 2 A flowchart of a first embodiment of a dialogue training method provided by the present invention;
[0060] Figure 3 A schematic diagram of a flow chart of a second embodiment of the dialogue training method provided by the present invention;
[0061] Figure 4 This is a schematic diagram of the functional modules of an embodiment of a dialogue training device provided by the present invention.
[0062] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0063] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0064] The present invention provides a dialogue coaching system, referring to Figure 1 , Figure 1 It is a schematic diagram of the structure of the operating environment of the dialogue coaching system involved in the embodiment of the present invention.
[0065] like Figure 1 As shown, the dialogue coaching system includes: a processor 101, such as a CPU, a communication bus 102, a user interface 103, a network interface 104, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 103 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the network interface 104 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 105 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 105 may also be a storage device independent of the aforementioned processor 101.
[0066] Those skilled in the art will understand that Figure 1 The hardware structure of the dialogue coaching system shown in the figure does not constitute a limitation on the dialogue training device and the dialogue training system in the present invention, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0067] like Figure 1 As shown, the memory 105 as a computer-readable storage medium may include an operating system, a network communication program module, a user interface program module, and a program for implementing virtual dialogue training. The operating system is used to schedule the communication between the modules in the dialogue coaching system and execute the dialogue training program stored in the memory to implement dialogue training for the staff in the seats or operator positions.
[0068] exist Figure 1In the hardware structure of the dialogue coaching system shown, the network interface 104 is mainly used to access the network; the user interface 103 is mainly used to monitor and obtain the corpus of the object to be trained, and the processor 101 can be used to call the dialogue training program stored in the memory 105 and perform the operations of the various embodiments of the following dialogue training method.
[0069] Based on the hardware structure of the above-mentioned dialogue coaching system, various embodiments of the dialogue training method of the present invention are proposed.
[0070] Reference Figure 2 , Figure 2 A flowchart of a dialogue training method provided in an embodiment of the present invention. In this embodiment, the method is applied to an intelligent dialogue coaching system, by acquiring the agent's speech information in real time, converting the speech information into text according to speech recognition technology, and then extracting key information therein, inputting it into a dialogue analysis model to match the corresponding response strategy, and determining the response language according to the response strategy set pre-trained response dialogue recommendation model, and the dialogue coaching system responds to the agent's speech according to the response language, thereby realizing actual combat drills in different scenarios between humans and machines, which greatly reduces the process of manual experience transfer, saves human resources, reduces costs, fully simulates actual scenarios, and allows novice agents to experience the real sales process before taking up their posts, which helps to improve their sales skills and improve the feelings of real customers facing new agents. The dialogue training method specifically includes the following steps:
[0071] Step S210, obtaining the agent's speech information in real time;
[0072] In this step, the speech information includes at least one of a first voice segment in which the agent responds to the answer request of the dialogue coaching system and a second voice segment in which the agent recommends a business to the dialogue coaching system.
[0073] In this embodiment, in order to enable the dialogue coaching system to better recognize the speech information spoken by the agent, a fixed speech format can be used to fill in the content. For example, the speech information is divided into two sections for filling. However, the two sections here do not mean two separate voices. Instead, some marker information is used to distinguish two different content voices in a recording. For example, the word "answer" is used to indicate that the following voice is used to answer questions or objections raised by the dialogue coaching system, and the word "recommend" is used to indicate that the following voice is a statement recommending business to customers.
[0074] In actual applications, the speech information includes at least one of a first voice segment in which the agent replies to the answer request of the dialogue coaching system and a second voice segment in which the agent recommends a business to the dialogue coaching system. That is, the speech information may contain only the answer voice or only the recommended business voice, but it may also contain both, which is just explained in order.
[0075] Step S220, extracting audio information of the first voice segment and / or the second voice segment in the speech information according to speech recognition technology, and converting the audio information into text information;
[0076] In this embodiment, the speech recognition technology here is only a waveform comparison technology that can identify the pronunciation sound waves of the landmark words in the speech, and determine the distinguishing position of the first speech segment and the second speech segment in the speech by comparing the sound waves in the speech information speech, and then use the speech cutting technology to cut the speech information into two segments of speech, and convert them into text information respectively.
[0077] In this embodiment, the voice segment is converted into text information by matching the pronunciation sound waves of Chinese words one by one. In actual application, the pronunciation of different words and phrases is recorded and stored in the dialogue coach system in advance, a waveform matching table of sound waves is generated according to the pronunciation, and then a waveform graph of sound waves corresponding to the voice segment is generated according to the voice segment. Based on the waveform graph, the waveform matching table is matched one by one according to the time sequence of the sound wave graph, and the matched words or phrases are sorted in sequence to form corresponding text paragraphs to form text information.
[0078] In practical applications, it is also possible to pre-generate a sound wave learning library based on the pronunciation of different characters and words, and use a voiceprint learning model to perform voiceprint learning on the sound wave learning library to generate a speech conversion model. Based on the speech conversion model, all speech segments input into the speech conversion model are converted into text, and finally a text paragraph is output to obtain text information corresponding to the speech segment.
[0079] Step S230, inputting the text information into a preset conversation analysis model to perform conversation matching analysis, and identifying a conversation response strategy corresponding to the audio information;
[0080] In this embodiment, the conversation analysis model is specifically an analysis model trained based on the sales corpus between the agent coach and the customer, that is, by pre-acquiring some successful sales case corpus data, analyzing the conversations in the case corpus data through an artificial intelligence deep learning algorithm, analyzing the conversation context and conversation wording of each communication, thereby analyzing the rules of the conversation to generate a conversation analysis model.
[0081] During use, when a novice agent inputs speech information into the dialogue coaching system, the dialogue analysis model extracts the dialogue rules of the speech information based on the learned dialogue rules. The dialogue rules can be the combination of words, whether the words are used correctly, or even some keywords in the speech information.
[0082] In actual applications, when the speech information is the voice of an answer, the answer rule of the speech information is determined according to the combination of words or keywords, that is, the dialogue response strategy at this time is the rule of the speech information itself. If the speech information is a recommended voice, the appropriate answer method is selected from the response strategy library according to the recognized keywords, that is, the dialogue response strategy at this time is the response strategy of the dialogue coaching system to answer the agent.
[0083] Step S240, inputting the identified dialogue response strategy into a pre-trained dialogue recommendation model for analysis to obtain corresponding response language;
[0084] In this embodiment, the analysis here includes scoring the dialogue response strategy and analyzing the response method that should be used based on the dialogue response strategy.
[0085] In actual applications, when the dialogue response strategy is the rule of the speech information itself, this step is to analyze the wording of the standard speech information based on the identified dialogue response strategy and the pre-trained response wording recommendation model, judge whether the speech given by the agent is standard based on the wording, and then give a score. According to the score result, the corresponding reply method of the reply agent is given. The reply method at this time may be a reply method used to indicate the end of the conversation, such as "OK".
[0086] When the dialogue response strategy is the response strategy of the dialogue coaching system to the agent, this step is to analyze the response method of the customer who matches the statement information based on the identified dialogue response strategy root and the pre-trained response technique recommendation model. At this time, the response method refers to the dialogue coaching system responding to the agent's objection or asking the agent questions about recommended business.
[0087] Step S250: convert the response language into a voice stream, and broadcast the response to the agent.
[0088] In this step, the response language here is text data, and the conversation between the dialogue coaching system and the agent is a voice conversation. Therefore, after obtaining the response language, it needs to be converted into a voice stream through voice conversion technology, and then played through the speaker in the system as information to answer the agent.
[0089] In actual applications, the conversation between the agent and the conversation coaching system is a long-term process. It is not just a one-time reply, but a conversation with multiple replies. When there are multiple replies, it is necessary to identify the previous round of conversation and select the corresponding response strategy based on the previous round of conversation. Specifically:
[0090] If it is determined that the information of the previous round of dialogue is a response request for raising an objection, the step of extracting the audio information of the first voice segment and / or the second voice segment in the speech information according to the speech recognition technology and converting the audio information into text information includes:
[0091] Extracting waveform information of a first voice segment in the speech information;
[0092] Extracting acoustic features using speech recognition technology based on the waveform information;
[0093] Compare the extracted acoustic features with the preset Chinese word pronunciation waveform to obtain the corresponding Chinese word to achieve text conversion;
[0094] All converted Chinese words are sorted in chronological order to obtain reply information corresponding to the first voice segment.
[0095] In practical applications, in the recognition of the previous round of conversation, the main focus is on identifying whether the previous round of conversation was the answer from a customer who raised an objection or a customer who asked a question. It can even be the answer to the end of the first round of conversation and the end of the recommended business.
[0096] If it is detected that there is a previous round of dialogue, and it is a response request for raising objections or questions, the scoring process of the agent's answer wording is selected, and the customer's reply method is given. If there is no response to objections or questions, the processing process of directly converting the speech information into text is executed, which is steps S230-240.
[0097] In this embodiment, if it is determined that the information of the previous round of dialogue is a response request for raising an objection, the specific implementation of step S220 includes:
[0098] Extracting waveform information of a first voice segment in the speech information;
[0099] Extracting acoustic features using speech recognition technology based on the waveform information;
[0100] Compare the extracted acoustic features with the preset Chinese word pronunciation waveform to obtain the corresponding Chinese word to achieve text conversion;
[0101] All converted Chinese words are sorted in chronological order to obtain reply information corresponding to the first voice segment.
[0102] In practical applications, when executing the step of extracting the first voice segment, the extraction is performed by identifying the mark information. Of course, before this process, it can also be identified whether there is substantial content at the position corresponding to the first voice segment. If so, the voice content in the first voice segment is extracted and identified and converted into text information. Specifically, the conversion is performed by the voice pronunciation waveform. The specific implementation is:
[0103] First, the silence at the beginning and end of the first speech segment is removed to reduce interference to subsequent steps;
[0104] Then, the speech sound is divided into frames, that is, the sound is cut into small segments, each of which is called a frame. The framing operation can be implemented using a moving window function.
[0105] Furthermore, the segmented speech segments are transformed into waveforms. A common transformation method is to extract MFCC features, and according to the physiological characteristics of the human ear, each frame of waveform is transformed into a multi-dimensional vector, which can be simply understood as containing the content information of this frame of speech.
[0106] Finally, the converted waveforms are combined to obtain more waveform vectors, and the waveform vectors are matched with the sound waveforms of the Chinese words previously recorded to obtain the corresponding text information.
[0107] In this embodiment, the conversation analysis model includes a language sentiment analysis sub-model and a strategy analysis model. At this time, the implementation of step S230 is to analyze the objection reply method in the first voice segment, specifically including:
[0108] Performing feature extraction on the reply information to extract an audio feature vector corresponding to the first voice segment;
[0109] Inputting the audio feature vector and the waveform information into the language emotion analysis sub-model for analysis, and identifying the emotion classification corresponding to the first speech segment;
[0110] Inputting the reply information into the strategy analysis model, analyzing the word combination rules in the reply information, and obtaining a response strategy for the objection;
[0111] Compare the response strategy with a preset standard objection handling strategy to obtain a comparison result;
[0112] A corresponding response strategy is selected according to the comparison result and the emotion classification, wherein the response strategy includes using the response dialogue recommendation model to output response speech and using a common response language.
[0113] In this embodiment, the determination of emotion classification mainly involves identifying the emotions used in the agent's speech. After identifying the corresponding emotions, it also includes: judging whether the emotions are normal. If not, reminding the agent to adjust the emotions and then repeat the speech.
[0114] In actual application, after extracting the audio feature vector from the currently acquired voice stream, the dialogue training system inputs the audio feature vector into the preset language emotion analysis submodel for analysis and identification, so as to identify the emotion classification corresponding to the audio feature vector (i.e. the current emotion classification of the agent). The emotion classification includes: satisfaction, calmness, irritability, and anger, etc. If it is satisfaction or calmness, the agent is prompted to use the correct emotion. If it is irritability or anger, a preset reminder message is sent to the agent's terminal.
[0115] When the agent's emotion classification is found to be abnormal (for example, irritability, anger, and other negative emotion classifications), the dialogue training system will send a preset reminder message to the agent's terminal to remind the agent to pay attention to his emotions and adjust his service attitude in time. Furthermore, it can be identified by identifying sensitive words in the reply information.
[0116] In this embodiment, the comparison here includes comparing whether the response strategy is consistent with the standard response strategy, and scoring the response strategy. If they are inconsistent, scoring is performed based on the identified word combination rules and the suitability of word use, and the corresponding response strategy is selected based on the scoring results.
[0117] In actual applications, the response strategy may also include providing agents with standard response options so that they can adjust their words in subsequent training to achieve good business training.
[0118] In this embodiment, the speech information may also include a second voice segment, and the second voice segment is a voice for recommending services to customers. In this case, after completing the conversion of the first voice segment, it is necessary to perform text conversion of the second voice segment, and the specific implementation includes:
[0119] If it is detected that the dialogue coach system does not have the information of the previous round of dialogue, or it is determined that the information of the previous round of dialogue is not a response request for raising an objection, the step of extracting the audio information of the first voice segment and / or the second voice segment in the speech information according to the speech recognition technology and converting the audio information into text information also includes:
[0120] According to the speech recognition technology and the matching relationship between the pronunciation of Chinese words and the acoustic features, the recommended audio information in the second voice segment in the speech information is converted into text to obtain the corresponding recommended information.
[0121] At this time, step S230 also includes:
[0122] Inputting the recommendation information into a preset conversation analysis model, and extracting sales keywords from the recommendation information based on an intention recognition and classification algorithm in the conversation analysis model;
[0123] According to the pre-built correspondence between sales keywords and intents, querying the intent corresponding to the extracted sales keywords, wherein the intent includes a confidence level;
[0124] Determining whether the confidence level is greater than a confidence level threshold;
[0125] Determine the corresponding dialogue response strategy based on the judgment result.
[0126] In practical applications, intent recognition can be performed using the FastText text classification tool. For each intent, the conversational material is collected and then an intent recognition classification model is trained.
[0127] Furthermore, the response technique recommendation model is obtained in the following manner:
[0128] The voice data of the conversations between agents in different positions and customers are collected through the voice collection unit on the conversation coaching system;
[0129] Extracting, from the voice data, sales keywords related to the business sold by the agent and customer response data based on the business using speech recognition technology, wherein the sales keywords are sales keywords that are positively correlated with the agent's sales performance, and the response data include objections raised by the customer;
[0130] Using artificial intelligence deep learning algorithms, data analysis is performed on the extracted sales keywords and answer corpus to establish a response dialogue recommendation model for sales keywords and customer answer corpus.
[0131] The above solution is described below with reference to a specific application scenario.
[0132] In this embodiment, the dialogue coaching system mainly includes three parts, namely, a speech recognition module, an intelligent engine module, and a speech synthesis module. The agent interacts naturally with the dialogue coaching system through speech. The agent's voice is converted into text by the speech recognition module and transmitted to the intelligent engine module. After receiving the text, the intelligent engine module will perform natural language processing and understanding to identify the agent's intention, such as "stating identity", "introducing products" or "asking for identity information", and then give a response. This response can be a normal response, such as providing one's own identity information, or a general reply, such as a direct reply of "OK", or an objection, such as "your product is not as affordable as others". The above responses will be synthesized into sound by the speech synthesis module and conveyed to the agent. The dialogue training process is implemented based on the structure of the dialogue coaching system, as shown in the following details. Figure 3 As shown:
[0133] Step S310, obtaining the speech of the agent to be trained.
[0134] In this step, for the agent to be trained, the specific dialogue coaching system detects the agent's account to determine whether the agent needs to start dialogue training. In actual applications, different agents have different accounts. For example, the account is used to determine whether the agent who logs in to the dialogue coaching system is an old user, such as a student who has been marked as a graduate in the dialogue coaching system, or a newly registered student.
[0135] In this embodiment, when obtaining the speech, it is specifically achieved through the voice recognition module in the dialogue coaching system. The voice of the agent is converted into text by the voice recognition module and transmitted to the intelligent engine module; after receiving the text, the intelligent engine module will perform natural language processing and understanding.
[0136] Step S320, checking whether there is a previous round of dialogue on the dialogue coaching system, and whether an objection is raised.
[0137] In this step, if there is a previous round and an objection is raised, step S350 is executed, otherwise, step S330 is executed.
[0138] Step S330, identifying the intention in the agent's speech.
[0139] Step S340, determining whether the recognition result of the intention is greater than a threshold.
[0140] In this step, if it is judged to be greater than the threshold, step S380 is executed, otherwise, step S370 is executed.
[0141] Step S350, detecting whether the objection satisfies a preset processing method.
[0142] In this step, if the processing method is met, step S360 is executed, otherwise step S370 is executed.
[0143] Step S360, selecting a corresponding reply method according to the objection, and replying to the objection.
[0144] Step S370: Select a common reply language to reply to the agent's remarks according to the intention.
[0145] Step S380, select a language organization method from the intention response library to reply to the agent according to the intention, or raise an objection according to the intention.
[0146] In this embodiment, the system handles the objections separately according to whether the objections were raised in the previous round of dialogue. If no objections were raised in the previous round of dialogue, intent recognition is performed to determine what the agent intended to say, such as "identify" or "introduce the product". The result of intent recognition includes a confidence level. If the confidence level is higher than the set threshold, the recognition result is accepted and a response is given. Otherwise, a general reply such as "OK" or "Hmm" is given.
[0147] If the system has raised an objection in the previous round of dialogue, the agent's words will be compared with the standard objection handling script to see whether the agent has handled the objection correctly. If the standard objection handling script is matched, a reply will be given after the objection is handled; otherwise, a general reply will be given.
[0148] In this embodiment, when performing intention recognition, it can be implemented in the following ways:
[0149] According to a preset intent recognition rule or intent similarity algorithm, the intent field expressed in the speech is identified;
[0150] Determine whether the intent field is the same as the intent task of the node currently indicated by the intent tree;
[0151] If they are the same, it is determined according to the training rules whether the specific content stated in the dialogue speech meets the preset standard.
[0152] In this embodiment, it can be achieved by obtaining some historical corpus to train a recognition model. In practical applications, each dialogue corpus contains multiple sentences. In this step, each sentence in each dialogue corpus can be extracted first, and then the intent of each sentence can be recognized based on the preset intent recognition model, that is, a model is trained through some recognition rules, and each sentence is recognized based on the model to determine the intent information contained in each sentence. The so-called intent information refers to the intent contained in the sentence. For example, the sentence: "What does this project include?" contains the intent information of project content consultation.
[0153] In order to more accurately identify the intent information contained in the sentence, it is necessary to rely on the accuracy of the intent recognition model used. Preferably, in this embodiment, the preset intent recognition model can be constructed based on the following method to ensure the accuracy and applicability of the recognition result.
[0154] Step 401, classify the dialogue data into question and answer sentences.
[0155] In the process of building a preset intent recognition model, the dialogue corpus used in intent analysis can be used to make the training corpus of the intent recognition model more in line with the actual application scenario, thereby improving the accuracy and professionalism of recognition.
[0156] In this step, the question sentences and answer sentences in each dialogue corpus may be classified first to determine the types to which the sentences in the dialogue corpus belong.
[0157] Step 402: merge the question sentences and the answer sentences in each of the dialogue corpus to obtain a question sentence set and an answer sentence set.
[0158] In this step, the question sentences in all the dialogue corpora are extracted, merged and classified into one category, and the answer sentences are processed in the same way, thereby obtaining a question sentence set and an answer sentence set.
[0159] Step 403: cluster the question sentence set and the answer sentence set respectively to obtain corresponding classifications.
[0160] Specifically, based on the K-means clustering algorithm, the question statement set and the answer statement set can be clustered respectively, so as to further divide the two statement sets into multiple small categories.
[0161] Step 404: extract a preset number of training sentences from each of the classified sentences.
[0162] As mentioned above, the dialogue corpus is a real dialogue corpus extracted from a large amount of historical data. Inevitably, there will be a large number of repetitions. This repetition not only includes the complete repetition of the entire dialogue corpus, but also includes the repetition of the same sentences in different dialogue corpora. For these repeated sentences, the intention information contained therein is also repeated. In this step, by extracting training sentences of preset data from the sentences of each category, the probability of repeated sentences can be reduced to a certain extent. Furthermore, since these sentences are from each category respectively, it can be guaranteed to a certain extent that each category has a certain number of training sentences. In other words, the intention information contained in each category can be retained to a certain extent, avoiding the problem of data missing due to blind deletion.
[0163] In order to solve the above problems, the embodiment of the present invention also provides a dialogue training device, such as Figure 4 As shown, the virtual machine upgrade device includes: a collection module 41, a conversion module 42, a matching module 43, an analysis module 44 and a broadcast module 45, wherein
[0164] The acquisition module 41 is used to obtain the speech information of the agent in real time, wherein the speech information includes at least one of a first voice segment in which the agent replies to the response request of the dialogue coaching system and a second voice segment in which the agent recommends a business to the dialogue coaching system;
[0165] A conversion module 42, configured to extract the audio information of the first voice segment and / or the second voice segment in the speech information according to the speech recognition technology, and convert the audio information into text information;
[0166] A matching module 43, used to input the text information into a preset conversation analysis model to perform conversation matching analysis and identify a conversation response strategy corresponding to the audio information;
[0167] An analysis module 44 is used to input the identified dialogue response strategy into a pre-trained response language recommendation model for analysis to obtain a corresponding response language;
[0168] The broadcast module 45 is used to convert the response language into a voice stream and broadcast the response to the agent.
[0169] Since the execution functions of this device and the execution processes corresponding to the functions are the same as those described in the embodiment of the dialogue training method of the above-mentioned embodiment of the present invention, this embodiment will not elaborate on the embodiment of the dialogue training device.
[0170] In addition, an embodiment of the present invention further provides a dialogue training system, which includes: a memory, a processor, and a dialogue training program stored in the memory and executable on the processor. The method implemented when the dialogue training program is executed by the processor can refer to the various embodiments of the dialogue training method of the present invention, so it will not be described in detail.
[0171] The present invention also provides a computer-readable storage medium.
[0172] In this embodiment, a dialogue training program is stored on the computer-readable storage medium. The method implemented when the dialogue training program is executed by the processor can refer to the various embodiments of the dialogue training method of the present invention, so it will not be described in detail.
[0173] The method and device provided in the embodiment of the present invention are mainly used to improve the sales skills of insurance telephone sales agents. It can simulate human-computer dialogue between customers and sales agents, help agents master sales skills and handle customer objections. By combining speech recognition technology and natural speech understanding technology, agents using the coaching system can naturally conduct actual combat exercises with the coaching system through voice, which is an innovation in training methods. Agents can treat the coaching system as their own customers, introduce products to it, and sell insurance, and the coaching system can raise objections to the agents. This human-computer interaction method fully simulates the actual scene, allowing novice agents to experience the real sales process before taking up their posts, which helps to improve their sales skills and improve the feelings of real customers facing new agents, while freeing up manual coaching manpower.
[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM) and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0175] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims. All equivalent structures or equivalent process changes made using the contents of the specification and drawings of the present invention, or directly or indirectly used in other related technical fields, are protected by the present invention.
Claims
1. A dialogue training method, applied to a dialogue coaching system, characterized in that: The dialogue training method comprises the following steps: Acquire the agent's speech information in real time, wherein the speech information includes a first voice segment in which the agent responds to the response request of the dialogue coaching system and / or a second voice segment in which the agent recommends a business to the dialogue coaching system; Detecting whether the dialogue coaching system currently communicating with the agent has information about the previous round of dialogue; If so, determining whether the information of the previous round of dialogue is a response request for raising an objection; If not, convert the speech information into text information according to the speech recognition technology; Extracting audio information of the first voice segment and / or the second voice segment in the speech information by using speech recognition technology, and converting the audio information into text information; Inputting the text information into a preset conversation analysis model to perform conversation matching analysis to identify a conversation response strategy corresponding to the audio information; Inputting the identified dialogue response strategy into a pre-trained dialogue recommendation model for analysis to obtain corresponding response language; Convert the response language into a voice stream and broadcast it to respond to the agent; The step of extracting the audio information of the first voice segment and / or the second voice segment in the speech information by using speech recognition technology and converting the audio information into text information comprises: When the information of the previous round of dialogue is a response request for raising an objection, extracting waveform information of the first voice segment in the speech information; Extracting acoustic features using speech recognition technology based on the waveform information; Compare the extracted acoustic features with the preset Chinese word pronunciation waveform to obtain the corresponding Chinese word to achieve text conversion; Sort all converted Chinese words in chronological order to obtain reply information corresponding to the first voice segment; When the dialogue coach system does not have information about the previous round of dialogue, or the information about the previous round of dialogue is not a response request to raise an objection, the recommended audio information in the second voice segment in the speech information is converted into text based on speech recognition technology and the matching relationship between the pronunciation of Chinese words and acoustic features to obtain corresponding recommendation information.
2. The dialogue training method according to claim 1, characterized in that: The conversation analysis model includes a language sentiment analysis sub-model and a strategy analysis model. The step of inputting the text information into a preset conversation analysis model for conversation matching analysis to identify a conversation response strategy corresponding to the audio information includes: Performing feature extraction on the reply information to extract an audio feature vector corresponding to the first voice segment; Inputting the audio feature vector and the waveform information into the language emotion analysis sub-model for analysis, and identifying the emotion classification corresponding to the first speech segment; Inputting the reply information into the strategy analysis model, analyzing the word combination rules in the reply information, and obtaining a response strategy for the objection; Compare the response strategy with a preset standard objection handling strategy to obtain a comparison result; A corresponding response strategy is selected according to the comparison result and the emotion classification, wherein the response strategy includes using the response dialogue recommendation model to output response speech and using a common response language.
3. The dialogue training method according to claim 1, characterized in that: The step of inputting the text information into a preset conversation analysis model to perform conversation matching analysis and identifying a conversation response strategy corresponding to the audio information further includes: Inputting the recommendation information into a preset conversation analysis model, and extracting sales keywords from the recommendation information based on an intention recognition and classification algorithm in the conversation analysis model; According to the pre-built correspondence between sales keywords and intents, querying the intent corresponding to the extracted sales keywords, wherein the intent includes a confidence level; Determine whether the confidence level is greater than a confidence level threshold, and obtain a determination result; A corresponding dialogue response strategy is determined according to the judgment result.
4. The dialogue training method according to any one of claims 1 to 3, characterized in that: The response dialogue recommendation model is obtained in the following way: The voice data of the conversations between agents in different positions and customers are collected through the voice collection unit on the conversation coaching system; Extracting, from the voice data, sales keywords related to the business sold by the agent and customer response data based on the business using speech recognition technology, wherein the sales keywords are sales keywords that are positively correlated with the agent's sales performance, and the response data include objections raised by the customer; Using artificial intelligence deep learning algorithms, data analysis is performed on the extracted sales keywords and answer corpus to establish a response dialogue recommendation model for sales keywords and customer answer corpus.
5. A dialogue training device, applied to a dialogue coaching system, characterized in that: The dialogue training device comprises: A collection module, used for acquiring the speech information of the agent in real time, wherein the speech information includes a first voice segment in which the agent replies to the response request of the dialogue coaching system and / or a second voice segment in which the agent recommends a business to the dialogue coaching system; A detection module is used to detect whether the dialogue coaching system currently communicating with the agent has information about the previous round of dialogue; if so, determine whether the information about the previous round of dialogue is a response request for raising an objection; if not, convert the speech information into text information based on speech recognition technology; A conversion module, used for extracting audio information of the first voice segment and / or the second voice segment in the speech information by using speech recognition technology, and converting the audio information into text information; A matching module, used for inputting the text information into a preset conversation analysis model to perform conversation matching analysis to identify a conversation response strategy corresponding to the audio information; An analysis module, configured to input the identified dialogue response strategy into a pre-trained response language recommendation model for analysis to obtain a corresponding response language; A broadcast module, used for converting the response language into a voice stream and broadcasting it to respond to the agent; The conversion module includes an extraction unit and a conversion unit, wherein: The extraction unit is used to extract the waveform information of the first voice segment in the speech information when the detection module determines that the information of the previous round of dialogue is a response request for raising an objection; and extract the acoustic features by using the speech recognition technology according to the waveform information; The conversion unit is used to compare the extracted acoustic features with the preset Chinese word pronunciation waveform to obtain the corresponding Chinese word to achieve text conversion; sort all the converted Chinese words in time sequence to obtain the reply information corresponding to the first voice segment; The conversion unit is also used to convert the recommended audio information in the second voice segment in the speech information into text based on speech recognition technology and the matching relationship between the pronunciation of Chinese words and acoustic features when the detection module detects that the dialogue coaching system does not have the information of the previous round of dialogue, or judges that the information of the previous round of dialogue is not a response request to raise an objection, so as to obtain corresponding recommendation information.
6. The conversation training device according to claim 5, characterized in that: The dialogue analysis model includes a language emotion analysis sub-model and a strategy analysis model, and the matching module includes an emotion matching unit, a strategy matching unit, a comparison unit and a selection unit, wherein: The emotion matching unit is used to extract features from the reply information and extract an audio feature vector corresponding to the first voice segment; input the audio feature vector and the waveform information into the language emotion analysis sub-model for analysis and identify the emotion classification corresponding to the first voice segment; The strategy matching unit is used to input the reply information into the strategy analysis model, analyze the word combination rules in the reply information, and obtain the response strategy for the objection; The comparison unit is used to compare the response strategy with a preset standard objection handling strategy to obtain a comparison result; The selection unit is used to select a corresponding response strategy according to the comparison result and the emotion classification, wherein the response strategy includes using the response dialogue recommendation model to output response speech and using a common response language.
7. The conversation training device according to claim 5, characterized in that: The matching module is further used to input the recommendation information into a preset conversation analysis model, extract sales keywords in the recommendation information based on the intention recognition and classification algorithm in the conversation analysis model; query the intention corresponding to the extracted sales keyword based on the pre-constructed correspondence between sales keywords and intentions, wherein the intention includes a confidence level; determine whether the confidence level is greater than a confidence level threshold to obtain a determination result; and determine a corresponding conversation response strategy based on the determination result.
8. The conversation training device according to any one of claims 5 to 7, characterized in that: The dialogue training device also includes a training module, which is used to collect voice data of conversations between agents in different positions and customers through the voice collection unit on the dialogue coaching system; based on the voice recognition technology, extract sales keywords related to the business sold by the agent and the customer's answer corpus based on the business in the voice data, wherein the sales keywords are sales keywords that are positively correlated with the agent's sales performance, and the answer corpus includes objections raised by the customer; using an artificial intelligence deep learning algorithm, data analysis is performed on the extracted sales keywords and answer corpus to establish a response dialogue recommendation model for the sales keywords and the customer's answer corpus.
9. A dialogue coaching system, characterized in that: The dialogue coaching system comprises: a memory, a processor, and a dialogue training program stored in the memory and executable on the processor, wherein the dialogue training program implements the steps of the dialogue training method according to any one of claims 1 to 4 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a dialogue training program, and when the dialogue training program is executed by the processor, the steps of the dialogue training method according to any one of claims 1 to 4 are implemented.
