WO2025097891A1 - Pitch recommendation method and apparatus, and device - Google Patents
Pitch recommendation method and apparatus, and device Download PDFInfo
- Publication number
- WO2025097891A1 WO2025097891A1 PCT/CN2024/110148 CN2024110148W WO2025097891A1 WO 2025097891 A1 WO2025097891 A1 WO 2025097891A1 CN 2024110148 W CN2024110148 W CN 2024110148W WO 2025097891 A1 WO2025097891 A1 WO 2025097891A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- customer
- data
- model
- target
- service personnel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation
Definitions
- the present application relates to the field of data processing technology, and in particular to a method, device and equipment for recommending speech skills.
- sales talk recommendations are made to sales staff in the following ways: 1. Searching a database based on keywords in the conversation between the sales staff and the customer to recommend talk; 2. Recommending talk based on the customer profile and historical behavior; 3. Retrieving knowledge based on the knowledge base and knowledge graph to recommend talk; 4. Training a text model based on historical conversations between the customer and the sales staff, and recommending talk based on the text model.
- the present application provides a method, device and equipment for recommending speech techniques, which solve the problems of low accuracy, poor data security and high cost of speech techniques recommendation in related technologies, and can effectively improve the accuracy and relevance of speech techniques recommendation, thereby assisting service personnel to complete efficient services.
- the present application provides a method for recommending words of speech, the method comprising: determining characteristic information of a first customer and characteristic information of a first service staff in a target conversation, the target conversation being a conversation between the first customer and the first service staff; parsing conversation data of the target conversation to determine a business scenario intention corresponding to the target conversation, the conversation data comprising a conversation context of the target conversation; obtaining recommended words of speech based on the target data, the target data comprising: characteristic information of the first customer, characteristic information of the first service staff, and business scenario intention corresponding to the target conversation, the recommended words of speech being an optional word of speech for replying to the first customer; obtaining recommended words of speech based on the target data, the target data comprising: characteristic information of the first customer, characteristic information of the first service staff, and business scenario intention corresponding to the target conversation, the recommended words of speech being an optional word of speech for replying to the first customer.
- the business scenario intent may include: business scenario tags and/or intent tags.
- Business scenario tags may include sales scenario tags or objection scenario tags.
- Sales scenario tags include but are not limited to: order promotion, renewal, sales transfer, contract or non-cloud service, etc.
- Objection scenario tags include but are not limited to: price, comparison of friendly products or complaints, etc.
- the intent tags of the first customer and the first service staff may refer to the entities and concerns of the first customer's intentions, etc.
- Recommendation scripts may include, for example: answers to questions raised by customers, scripts to introduce products, solutions to objections raised by customers, and marketing activities related to recommended products.
- the beneficial effect is that it combines the customer feature information and the service personnel feature information at the same time, and can more effectively assist in the recommendation of speech techniques in accordance with the individual characteristics of the service personnel and the customer compared to the related technologies.
- the comprehensive use of dynamic parameters (conversation text) and static parameters (feature information of the first customer and feature information of the first service personnel) for speech technique recommendation can effectively improve the accuracy and relevance of speech technique recommendation compared to the related technologies, thereby assisting the service personnel to complete efficient services.
- the characteristic information of the first service personnel includes at least one of the following: the ability level of the first service personnel, The first service personnel’s business team, the first service personnel’s sales status, and the first service personnel’s sales history.
- the ability level includes at least one of the following: elementary, intermediate and advanced, the business team includes: new business team and/or existing business team, the sales status includes: customer satisfaction and/or industry expertise, and the sales history includes at least one of the following: number of customers with orders, number of products with orders, total amount of orders and total cumulative call duration, wherein the higher the ability level of the first service personnel, the higher the sales ability of the first service personnel.
- the recommendation script is a script for introducing the target product; the target product satisfies at least one of the following characteristics: the target product corresponds to the ability level of the first service personnel, the target product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the target product is greater than a first preset threshold, the target product belongs to the industry that the first service personnel is good at, and the number of sales history orders of the target product by the first service personnel is greater than a second preset threshold.
- the method further includes: determining at least one preferred product of the first customer based on characteristic information of the first customer and characteristic information of the first service personnel, and the target data further includes at least one preferred product.
- the process of determining at least one preferred product of the first customer based on the characteristic information of the first customer and the characteristic information of the first service staff includes: inputting the characteristic information of the first customer and the characteristic information of the first service staff into a first model, and obtaining at least one preferred product output by the first model, wherein the first model is obtained by training a first initial model with first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service staff, and the historical transaction products of the second customer.
- the first training data can be regarded as a matrix of customers, sales, customer satisfaction with the product and transaction results, and the first model is obtained by training with successful sales as the goal.
- the process of parsing the conversation data of a target conversation to determine the business scenario intention corresponding to the target conversation includes: inputting the conversation data into a second model to obtain the business scenario intention corresponding to the target conversation output by the second model, wherein the second model is obtained by training a second initial model with second training data, and the second training data includes: historical conversation data of historical conversations between a third customer and a third service staff and the business scenario intention corresponding to the historical conversations.
- the method further includes: acquiring a preset number of continuous dialogue texts from dialogue texts of historical dialogues between the third customer and the third service personnel to obtain historical dialogue data.
- a preset number of continuous dialogue texts can be taken from the dialogue texts of historical dialogues between the third customer and the third service personnel through a dynamic window limit range to obtain historical dialogue data.
- the beneficial effect is that the rolling window dialogue text can maximize the reuse of multiple rounds of information in a dialogue, and can be continuously corrected, which can improve the output accuracy and stability of the second model.
- the process of obtaining recommended words based on target data includes: inputting the target data into a third model to obtain a model recall result output by the third model, wherein the third model is obtained by training a third initial model with third training data, and the third training data includes: characteristic information of a fourth customer, characteristic information of a fourth service personnel, business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service personnel, and preset words; based on the model recall result, the recommended words are obtained.
- the target data may also include at least one of the following: conversation data between the first customer and the first service personnel, at least one preferred product of the first customer, and a first keyword group.
- the first keyword group may be obtained by extracting keywords from the conversation data between the first customer and the first service personnel, and the first keyword group may include business-related, product-related words and entities, etc.
- the keyword extraction process may be performed in conjunction with a pre-established keyword library.
- the beneficial effect is that the model is trained and fine-tuned by integrating the context data structure, and the obtained large model can recommend the speech in accordance with the context data structure, and at the same time, combined with the customer feature information and sales feature information, it can more effectively fit the personality characteristics of the service staff and customers to assist in the recommendation of speech compared with related technologies.
- the first model, the second model and the third model can realize self-closed loop sustainable iterative update, thereby further realizing the real-time and accuracy of speech recommendation.
- the method also includes: storing first vector data and preset words in a vector database, the first vector data including: a vector of characteristic information of a fourth customer, a vector of characteristic information of a fourth service staff, and a vector of business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff.
- the method also includes: performing vector retrieval based on second vector data to obtain a vector recall result, the second vector data including a vector of the target data; based on the model recall result, the process of obtaining the recommended words includes: weighting the model recall result and the vector recall result to obtain the recommended words.
- the beneficial effect is that the model output results and vector retrieval results are weighted, which can effectively reduce the errors in recommended words caused by data cold start or model errors.
- the method further includes: acquiring a preset number of continuous dialogue texts from the dialogue text of the target dialogue to obtain dialogue data.
- a dynamic window can be used to limit the range, and a preset number of continuous dialogue texts can be taken from the dialogue text of the target dialogue to obtain the dialogue count.
- the beneficial effect is that the rolling window-style conversation text can realize real-time business scenario intention recognition, which can maximize the reuse of multiple rounds of information in a conversation and enable continuous correction with high accuracy and stability.
- the present application provides a speech recommendation device, which includes: a processing module, which is used to determine the characteristic information of the first customer and the characteristic information of the first service staff in a target conversation, and the target conversation is a conversation between the first customer and the first service staff; the processing module is also used to parse the conversation data of the target conversation to determine the business scenario intention corresponding to the target conversation, and the conversation data includes the conversation context of the target conversation; a recommendation module, which is used to obtain recommended speech based on the target data, and the target data includes: the characteristic information of the first customer, the characteristic information of the first service staff, and the business scenario intention corresponding to the target conversation, and the recommended speech is an optional speech for replying to the first customer; a display module, which is used to provide a recommended speech display interface, and the recommended speech display interface is used to display the recommended speech.
- a processing module which is used to determine the characteristic information of the first customer and the characteristic information of the first service staff in a target conversation, and the target conversation is a conversation between the first customer and the
- the characteristic information of the first service personnel includes at least one of the following: the ability level of the first service personnel, the business team of the first service personnel, the sales status of the first service personnel, and the sales history of the first service personnel.
- the recommendation script is a script for introducing the target product; the target product satisfies at least one of the following characteristics: the target product corresponds to the ability level of the first service personnel, the target product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the target product is greater than a first preset threshold, the target product belongs to the industry that the first service personnel is good at, and the number of sales history orders of the target product by the first service personnel is greater than a second preset threshold.
- the processing module is further used to determine at least one preferred product of the first customer based on the characteristic information of the first customer and the characteristic information of the first service personnel, and the target data also includes at least one preferred product.
- the processing module is specifically used to input the characteristic information of the first customer and the characteristic information of the first service personnel into the first model to obtain at least one preferred product output by the first model; wherein the first model is obtained by training the first initial model with the first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service personnel and the historical transaction products of the second customer.
- the processing module is specifically used to input the conversation data into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model; wherein the second model is obtained by training the second initial model with second training data, and the second training data includes: historical conversation data of historical conversations between a third customer and a third service staff, and the business scenario intention corresponding to the historical conversations.
- the recommendation module is specifically used to: input the target data into a third model to obtain a model recall result output by the third model; and obtain recommended words based on the model recall result; wherein the third model is obtained by training a third initial model with third training data, and the third training data includes: feature information of a fourth customer, feature information of a fourth service staff, business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff, and preset words.
- the device also includes: a storage module for storing first vector data and preset words in a vector database, the first vector data including: a vector of characteristic information of a fourth customer, a vector of characteristic information of a fourth service staff, and a vector of business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff.
- a storage module for storing first vector data and preset words in a vector database, the first vector data including: a vector of characteristic information of a fourth customer, a vector of characteristic information of a fourth service staff, and a vector of business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff.
- the recommendation module is also used to perform vector retrieval based on the second vector data to obtain a vector recall result, and the second vector data includes a vector of the target data; the recommendation module is specifically used to: weight the model recall result and the vector recall result to obtain a recommended speech.
- the processing module is further configured to obtain a preset number of continuous dialogue texts from the dialogue text of the target dialogue to obtain dialogue data.
- the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster performs a method as described in any one of the first aspects.
- the present application provides a computer program product comprising instructions, wherein when the instructions are executed by a computing device cluster, the computing device cluster executes any method in the first aspect.
- the present application provides a computer-readable storage medium, comprising computer program instructions.
- the computer program instructions When the computer program instructions are executed by a computing device cluster, the computing device cluster executes any method in the first aspect.
- FIG1 is a schematic diagram of the structure of a speech recommendation system provided in an embodiment of the present application.
- FIG2 is a flow chart of a method for recommending speech skills according to an embodiment of the present application
- FIG3 is a flow chart of a model training method provided in an embodiment of the present application.
- FIG5 is a schematic diagram of a speech recommendation process provided by an embodiment of the present application.
- FIG6 is a business flow chart of a speech recommendation provided in an embodiment of the present application.
- FIG8 is a block diagram of another speech recommendation device provided in an embodiment of the present application.
- FIG9 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application.
- FIG10 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application.
- FIG. 11 is a schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application.
- At least one (item) means one or more, and “plurality” means two or more.
- “And/or” is used to describe the association relationship of associated objects, indicating that three relationships may exist.
- a and/or B can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural.
- the character “/” generally indicates that the objects associated before and after are in an “or” relationship.
- At least one of the following” or similar expressions refers to any combination of these items, including any combination of single or plural items.
- At least one of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c", where a, b, c can be single or multiple.
- FIG. 1 is a structural diagram of a speech recommendation system provided in an embodiment of the present application.
- the system can be a product form for internal services, and can also be used for commercial speech assistance.
- the system includes: an online service module, a data management module, a model management module, and an annotation module.
- the data management module is used to centrally manage the data used in the embodiment of the present application, and it can include a real-time data storage submodule and an offline data storage submodule.
- the online service module can be integrated by other systems, which is used to provide an online application programming interface (application programming interface, API) to serve the speech recommendation service, and store the real-time data in the speech recommendation process to the real-time data storage submodule.
- API application programming interface
- the online service module can provide an online service API to serve the deployed model.
- the model management module is used to design a model algorithm, and use training data for model training and model deployment.
- it can include a language model management submodule, a large model management submodule, and a vector data management submodule.
- the annotation module is used to annotate the selected corpus data.
- the structure of the system shown in FIG. 1 is for exemplary purposes only, and the modules included in the structure can be determined based on the speech recommendation method provided in the embodiment of the present application, and the embodiment of the present application does not limit this.
- the present application embodiment provides a method for recommending speech skills, which can be used to assist service personnel in recommending speech skills, and can also be used in customer support scenarios.
- Service personnel can include sales personnel or customer service personnel.
- Figure 2 is a flow chart of a method for recommending speech skills provided by the present application embodiment, which can be applied to a speech skill recommendation system, such as the speech skill recommendation system shown in Figure 1.
- the method can include the following process:
- the characteristic information of the first service personnel can be obtained from the service portrait library of the first service personnel.
- the first service personnel is a salesperson.
- the characteristic information of the first service personnel is a collection of the service personnel's capability attribute fields and labels, which is used to characterize the service personnel's capabilities. It may include at least one of the following: the capability level of the first service personnel, the business team of the first service personnel, the sales status of the first service personnel, the sales history of the first service personnel, etc.
- the capability level may, for example, include at least one of the following: elementary, intermediate, and advanced. The higher the capability level of the first service personnel, the higher the sales capability of the first service personnel.
- the business team may, for example, include: a new development team and/or an existing team, etc.
- the sales status may, for example, include: customer satisfaction and/or industry expertise, etc.
- the sales history may, for example, include at least one of the following: the number of customers who have completed orders, the number of cloud services that have completed orders, the total amount of orders, and the total cumulative call duration, etc.
- the aforementioned characteristic information is only for illustrative purposes and does not constitute a limitation.
- At least one preferred product of the first customer can also be determined based on the characteristic information of the first customer and the characteristic information of the first service staff.
- the characteristic information of the first customer and the characteristic information of the first service staff can be input into the first model to obtain at least one preferred product of the first customer output by the first model.
- the first model can be called through the online service module.
- the first model is obtained by training with the first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service staff, and the historical transaction products of the second customer.
- the characteristic information of the second customer can be expressed as ⁇ C-Tags′> (custom tags)
- the characteristic information of the second service staff can be expressed as ⁇ S-Tags′> (salesperson tags)
- the historical transaction products of the second customer can be expressed as ⁇ P-list′> (product list).
- a vector search can be performed in a first database (e.g., a first vector database) based on the first vector data to obtain at least one preferred product of the first customer recalled by the vector, and the first vector data includes a vector of feature information of the first customer and a vector of feature information of the first service personnel.
- the first database may store vector data corresponding to the first training data, and a vector search is performed based on the stored vector data.
- the vector data corresponding to the first training data includes multiple groups of the following data: a vector of ⁇ C-Tags′>, a vector of ⁇ S-Tags′>, and a vector of ⁇ P-list′>.
- the two examples described above can be weighted.
- the feature information of the first customer and the feature information of the first service personnel are input into the first model to obtain the first model output result of the first model output.
- a vector search is performed in the first database based on the first vector data to obtain a first vector recall result.
- the first model output result and the first vector recall result are then weighted to obtain at least one preferred product of the first customer. Weighting the model output result and the vector retrieval result can effectively reduce the error of at least one preferred product of the first customer caused by data cold start or model error.
- the online service module may store the characteristic information of the first customer, the characteristic information of the first service personnel, and at least one determined preferred product of the first customer in the real-time data storage submodule.
- Business scenario intent may include: business scenario tags and/or intent tags.
- Business scenario tags may include sales scenario tags or objection scenario tags.
- Sales scenario tags include but are not limited to: order promotion, renewal, sales transfer, contract or non-cloud services, etc.
- Objection scenario tags include but are not limited to: price, comparison of friendly products or complaints, etc.
- the intent tags of the first customer and the first service staff may refer to the entities and concerns of the first customer's intentions, etc.
- a preset number of continuous conversation texts can be obtained from the conversation text of the target conversation to obtain conversation data.
- a preset number of continuous conversation texts can be obtained from the conversation text of the target conversation by limiting the range through a dynamic window to obtain conversation data.
- Acquiring conversation data by rolling window mode can realize real-time business scenario intention recognition, which can maximize the reuse of multiple rounds of information in a conversation, and can continuously correct, with high accuracy and stability.
- the target conversation can be first converted into a conversation text, and then the conversation data can be obtained based on the conversation text.
- the target conversation can be converted into a conversation text by automatic speech recognition (ASR) technology.
- ASR automatic speech recognition
- the conversation data between the first customer and the first service personnel can be input into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model.
- the second model can be called through the online service module.
- the second model is obtained by training with the second training data, and the second training data includes: the historical conversation data of the historical conversation between the third customer and the third service personnel and the business scenario intention corresponding to the historical conversation.
- the specific content of the business scenario intention can be referred to the above description, and the embodiments of the present application will not be repeated here.
- the training data includes historical conversation data of multiple combinations of historical conversations and the business scenario intentions corresponding to each historical conversation.
- vector retrieval can be performed in a second database (e.g., a second vector database) based on the second vector data to obtain the business scenario intent corresponding to the target conversation recalled by the vector, and the second vector data includes the vector of the conversation data between the first customer and the first service personnel.
- the second database may store vector data corresponding to the second training data, and vector retrieval is performed based on the vector data corresponding to the second training data.
- the vector data corresponding to the second training data includes multiple groups of the following data: vectors of historical conversation data and vectors of business scenario intent corresponding to historical conversations.
- the two examples described above can be weighted.
- the conversation data between the first customer and the first service personnel is input into the second model to obtain the second model output result output by the second model.
- a vector search is performed in the second database based on the second vector data to obtain a second vector recall result.
- the second model output result and the second vector recall result are then weighted to obtain the business scenario intent corresponding to the target conversation. Weighted processing of the model output result and the vector retrieval result can effectively reduce the error in the business scenario intent corresponding to the target conversation caused by data cold start or model error.
- the conversation data between the first customer and the first service personnel can be stored in the real-time data storage submodule.
- the online service module can store the business scenario intention corresponding to the determined target conversation in the real-time data storage submodule.
- keyword extraction can also be performed on the conversation data to obtain a first keyword group (Words). Based on the conversation data and the first keyword group, the business scenario intention corresponding to the target conversation is determined.
- the first keyword group can be obtained by keyword extraction of the conversation data between the first customer and the first service personnel.
- the first keyword group can include business-related, product-related words and entities.
- the keyword extraction process can be performed in conjunction with a pre-established keyword library.
- the conversation data and the first keyword group can be input into the second model to obtain the business scenario intent corresponding to the target conversation output by the second model.
- the second training data also includes: a second keyword group, which is obtained by keyword extraction of historical conversation data.
- the second vector data also includes: a vector of the second keyword group.
- the vector data corresponding to the second training data includes multiple groups of the following data: a vector of historical conversation data, a vector of the second keyword group, and a vector of the business scenario intent corresponding to the historical conversation.
- the target data includes: characteristic information of the first customer, characteristic information of the first service personnel, and business scenario intention corresponding to the target conversation, and the recommended words of speech are optional words of speech for replying to the first customer.
- the target data may be stored in the real-time data storage submodule.
- the explanation of each data included in the target data may refer to the aforementioned processes 101 and 102, and the present embodiment will not be described in detail here.
- Recommendation scripts may include, for example: answers to questions raised by customers, scripts to introduce products, solutions to objections raised by customers, and marketing activities related to recommended products.
- the recommended words also meet different characteristics.
- the recommended words of the first service personnel are words introducing the first product
- the number of the first product is at least one.
- the first product meets at least one of the following characteristics: the first product corresponds to the ability level of the first service personnel, the first product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the first product is greater than the first preset threshold, the first product belongs to the industry that the first service personnel is good at, and the number of sales history of the first product by the first service personnel is greater than the second preset threshold.
- the target data can be input into the third model to obtain the recommended words output by the third model.
- the third model can be called through the online service module.
- the third model is obtained by training with third training data, and the third training data includes: feature information of the fourth customer, feature information of the fourth service personnel, business scenario intentions corresponding to the historical conversations between the fourth customer and the fourth service personnel, and preset words.
- the preset words also meet different characteristics.
- the preset words for the fourth service personnel are words for introducing the second product.
- the second product meets at least one of the following characteristics: the second product corresponds to the ability level of the fourth service personnel, the second product belongs to the business team of the fourth service personnel, the customer satisfaction obtained by the fourth service personnel in the history of selling the second product is greater than the first preset threshold, the second product belongs to the industry that the fourth service personnel is good at, and the number of sales history of the second product by the fourth service personnel is greater than the second preset threshold.
- the data in the third training data other than the preset words correspond to the data in the target data one by one.
- the third training data may also include at least one of the following: historical conversation data, historical transaction products of the fourth customer, and a second keyword group (Words').
- the second keyword group is obtained by extracting keywords from the historical conversation data.
- the target data also includes the first customer
- the target data also includes at least one preferred product of the first customer.
- the target data also includes the first keyword group.
- each data included in the third training data can refer to the aforementioned processes 101 and 102, and the embodiments of the present application will not be repeated here.
- the third training data includes data corresponding to the multiple combinations.
- the third training data also including: historical conversation data, historical transaction products of the fourth customer, and the second keyword group (Words′) as an example
- the third training data includes multiple groups of the following data: ⁇ C-Tags′>, ⁇ S-Tags′>, ⁇ P-list′>, historical conversation data, business scenario intentions corresponding to historical conversations, Words′, and preset words.
- vector retrieval can be performed in a third database (e.g., a third vector database) based on the third vector data to obtain recommended words for vector recall.
- the third vector data includes a vector of the target data, namely, a vector of the feature information of the first customer, a vector of the feature information of the first service personnel, and a vector of the business scenario intention corresponding to the target conversation.
- the third database may store vector data corresponding to the third training data, and vector retrieval is performed based on the vector data corresponding to the third training data.
- the vector data corresponding to the third training data includes multiple groups of the following data: vectors of ⁇ C-Tags′>, vectors of ⁇ S-Tags′>, vectors of business scenario intentions corresponding to historical conversations, and preset words.
- the vector data corresponding to the third training data includes multiple groups of the following data: vector of ⁇ C-Tags′>, vector of ⁇ S-Tags′>, vector of ⁇ P-list′>, vector of historical conversation data, vector of business scenario intention corresponding to historical conversations, vector of Words′, and preset words.
- the third vector data includes: vector of feature information of the first customer, vector of feature information of the first service staff, vector of at least one preferred product of the first customer, vector of conversation data, vector of business scenario intention corresponding to the target conversation, and vector of the first keyword group.
- the two examples described above can be weighted.
- the target data is input into the third model to obtain the third model output result output by the third model.
- a vector search is performed in the third database according to the third vector data to obtain a third vector recall result.
- the third model output result and the third vector recall result are then weighted to obtain a recommended speech. Weighting the model output result and the vector retrieval result can effectively reduce the error of the recommended speech caused by data cold start or model error.
- the number of recommended scripts is at least one, and the first service staff can choose whether to click on a recommended script to reply to the first customer.
- the method for recommending words of speech first determines the characteristic information of the first customer and the characteristic information of the first service personnel in the target conversation, and parses the conversation data of the target conversation to determine the business scenario intention corresponding to the target conversation, and then obtains the recommended words of speech based on the target data and provides a recommended words of speech display interface, which is used to display the recommended words of speech, and the target data includes: the characteristic information of the first customer, the characteristic information of the first service personnel and the business scenario intention corresponding to the target conversation, and the recommended words of speech are optional words for replying to the first customer, and the method combines the characteristic information of the customer and the characteristic information of the service personnel at the same time, and compared with the related technology, it can more effectively fit the personality characteristics of the service personnel and the customer to assist in the recommendation of words of speech, and comprehensively uses dynamic parameters (conversation text) and static parameters (characteristic information of the first customer and characteristic information of the first service personnel) to recommend words of speech, and compared with the related
- the process includes a model training process and a model recommendation process.
- Figure 3 is a flow chart of a model training method provided in an embodiment of the present application.
- the method can be applied to a speech recommendation system, such as the speech recommendation system shown in Figure 1.
- the method may include the following process:
- a first initial model using first training data to obtain a first model, where the first training data includes: feature information of a second customer, feature information of a second service personnel, and historical transaction products of the second customer.
- the characteristic information of the second customer can be obtained from the customer portrait library of the second customer, and the characteristic information of the second service personnel can be obtained from the service portrait library of the second service personnel.
- the interpretation of the characteristic information of the second customer and the characteristic information of the second service personnel can refer to the characteristic information of the first customer and the characteristic information of the first service personnel in the aforementioned process 101 respectively, and the embodiments of the present application are not elaborated here.
- the first model can be called a preference model according to its function.
- the process 201 trains the first model with successful sales as the goal.
- the input of the trained first model is the characteristic information of the customer and the characteristic information of the service personnel, and the output is at least one preferred product of the customer.
- the first training data can be regarded as a matrix of customers, sales, customer satisfaction with the product and transaction results.
- the first training data may include multiple groups of the following data: ⁇ C-Tags′>, ⁇ S-Tags′>, ⁇ P-list′>.
- the customer profile library of the second customer, the service profile library of the second service personnel, and the historical transaction products of the second customer can be stored in the offline data storage submodule.
- the design of the model training algorithm and the model training process can be performed by the model management module.
- the model training algorithm includes but is not limited to: collaborative filtering (CF) algorithm and deep factor decomposition machine (deep factorization machines, DeepFM) algorithms, etc.
- CF collaborative filtering
- DeepFM deep factorization machines
- a preset number of continuous dialogue texts can be obtained from the dialogue texts of the historical dialogues between the third customer and the third service personnel to obtain historical dialogue data, thereby constructing a corpus.
- a preset number of continuous dialogue texts can be obtained from the dialogue texts between the third customer and the third service personnel through a dynamic window limitation range to obtain historical dialogue data.
- Acquiring dialogue texts in a rolling window manner can maximize the reuse of multiple rounds of information in a dialogue, and can continuously correct, which can improve the output accuracy and stability of the second model.
- the corpus can be located in the offline data storage submodule.
- the business scenario intention corresponding to the historical conversation includes: the business scenario label and/or intention label corresponding to the historical conversation, and its explanation can refer to the business scenario intention corresponding to the target conversation in the aforementioned process 102, and the embodiment of the present application will not be elaborated here.
- a preset business scenario label and a preset intention label can be established, a business scenario label and/or an intention label can be selected from the preset business scenario labels and the preset intention labels, and the business scenario intention corresponding to the historical conversation is marked as the selected business scenario label and/or intention label.
- the process of selecting a business scenario label and/or an intention label can be performed manually through the marking module shown in FIG1, and the embodiment of the present application does not limit this.
- the number of business scenario tags is one or more, and the number of intent tags is one or more.
- business scenario tags and intent tags can be established based on business scenario presetting and tag collection and collation.
- Business scenario tags and intent tags can be updated according to actual conditions, and this embodiment of the application does not limit this.
- the second model can be called a scenario intent classification model according to its function.
- the input of the trained second model is the conversation data between the customer and the service personnel, and the output is the business scenario intent corresponding to the conversation.
- the second training data may include multiple groups of the following data: ⁇ Text, Intent>, Text (text) represents the historical conversation data, and its specific structure is ⁇ "sentence 1 ⁇ tos> sentence 2 ⁇ tos>... sentence n" ⁇ , ⁇ tos> is a specific separator used to separate different sentences.
- Intent (intent) represents the business scenario intent corresponding to the historical conversation.
- the multiple groups of data included in the second training data may correspond one-to-one to the multiple groups of data included in the first training data, or may not completely correspond, and the embodiments of the present application do not limit this.
- the correspondence here refers to the correspondence between the data of the same combination of customers and service personnel in the second training data and the first training data.
- the A1-A2 related data in the first training data corresponds to the A1-A2 related data in the second training data.
- the A1-A2 related data in the first training data includes: A1's feature information, A2's feature information and A2's historical transaction products.
- the A1-A2 related data in the second training data includes: A1 and A2's historical conversation data and the business scenario intentions corresponding to the historical conversations between A1 and A2.
- the business scenario label and the intent label are outputted using the same model.
- two models business scenario model and intent model
- the business scenario model can be obtained by training the historical conversation data between the third customer and the third service personnel and the business scenario corresponding to the historical conversation.
- the intent model can be obtained by training the historical conversation data between the third customer and the third service personnel and the intent corresponding to the historical conversation.
- the embodiment of the present application does not limit the number of models.
- the design of the model training algorithm and the process of model training can be performed by the model management module.
- the model training algorithm can include: Bert (bidirectional encoder representations from transformers) algorithm, and the embodiment of the present application does not limit the model training algorithm.
- a third initial model is trained by using third training data to obtain a third model.
- the third training data includes: characteristic information of a fourth customer, characteristic information of a fourth service personnel, historical transaction products of the fourth customer, historical conversation data of historical conversations between the fourth customer and the fourth service personnel, business scenario intentions corresponding to the historical conversations, a second keyword group, and preset words.
- the second keyword group is obtained by extracting keywords from the historical conversation data.
- the basic corpus of the first model and the second model can be sorted and combined, that is, the two corresponding groups of data in the first training data and the second training data can be combined into one group of data.
- at least one preset speech also called a business template, which is text information customized according to business scenarios and product intentions, etc.
- the fusion context is a data structure that integrates multiple information.
- the third model can be called a recommendation model according to its function.
- the input of the trained third model is: the customer's characteristic information, the service staff's characteristic information, at least one preferred product of the customer, the conversation data between the customer and the service staff, the business scenario intention corresponding to the conversation between the customer and the service staff, and the keyword group extracted from the conversation data between the customer and the service staff.
- the output is the words recommended to the service staff.
- the third training data may include multiple groups of the following data: ⁇ Tags′>, ⁇ P-list′>, Cw′, Words′, ⁇ Answers>. Each element in a group of data may be separated by ⁇ eos>.
- ⁇ Tags′> represents the characteristic information of the fourth customer and the characteristic information of the fourth service personnel, and the characteristic information may be separated by the "##" symbol.
- ⁇ P-list′> may refer to the explanation of the first training data, and the "##" symbol may be used to separate the products.
- Cw′ is a composite data structure, which includes the conversation window information (i.e., historical conversation data and the speaker of each sentence) and the business scenario intention corresponding to the historical conversation.
- Words′ represents the second keyword group
- ⁇ Answers> represents the preset words, and when there are multiple preset words, the "##" symbol can be used to separate each preset word.
- the multiple groups of data in the first training data, the second training data, and the third training data may correspond one to one or may not correspond completely, and the embodiments of the present application do not limit this.
- the correspondence here refers to the data correspondence between the same combination of customers and service personnel in the first training data, the second training data, and the third training data. For example, taking customer A1 and service personnel A2 as an example, the A1-A2 related data in the first training data, the A1-A2 related data in the second training data, and the A1-A2 related data in the third training data correspond.
- the A1-A2 related data in the first training data and the A1-A2 related data in the second training data can refer to the relevant explanations of the aforementioned process 202
- the A1-A2 related data in the third training data includes: feature information of A1, feature information of A2, historical transaction products of A2, historical conversation data of historical conversations between A1 and A2, business scenario intentions corresponding to historical conversations between A1 and A2, and preset words corresponding to A1 and A2.
- the design of the model training algorithm and the model training process can be performed by the model management module.
- the third initial model can be a large model that can be fine-tuned (such as a large language model), and the large model can be fine-tuned through the third training data to obtain a third model, and the third model is a recommended large model.
- the embodiment of the present application does not limit the model training process.
- Figure 4 is a schematic diagram of a model training process provided in an embodiment of the present application
- Figure 4 shows the training process of the preference model (i.e., the first model) M1, the scene intent classification model (i.e., the second model) M2, and the large language model (i.e., the third model) M3.
- the preference model M1 is obtained by training the feature information of the second customer, the feature information of the second service staff, and the historical transaction products of the second customer.
- the scene intent allocation model M2 is obtained by training the historical conversation data of the historical conversation between the third customer and the third service staff and the business scene intent corresponding to the historical conversation.
- a fusion context is constructed based on the preference model M1 and the scene intent allocation model M2, and the large language model M3 is fine-tuned using the data of the constructed fusion context.
- the embodiment of the present application can combine the model output with the vector retrieval when performing speech recommendation.
- the vector data can be stored in a database (e.g., a vector database), and then the vector retrieval can be performed in the database to implement speech recommendation.
- the vector data may include multiple groups of the following data: [V1′, V2′, V3′, V4′], ⁇ Answers>.
- V1′ represents the vector of ⁇ Tags′>
- V2′ represents the vector of ⁇ P-list′>
- V3′ represents the vector of Cw′
- V4′ represents the vector of Words′.
- the data in the third training data can be converted into vectors through the word vector capability of the unified language model.
- Figure 5 is a schematic diagram of a speech recommendation process provided in an embodiment of the present application.
- the characteristic information ⁇ C-Tags> of the first customer and the characteristic information ⁇ S-Tags> of the first service personnel are determined.
- call the preference model M1 to input ⁇ C-Tags> and ⁇ S-Tags> into the preference model M1, and obtain at least one preferred product ⁇ P-list> of the first customer output by the preference model M1.
- construct the context information as the static parameter Context-s ( ⁇ C-Tags>, ⁇ S-Tags>, ⁇ P-list>).
- the scenario intention allocation model M2 is called to input the conversation data between the first customer and the first service personnel into the scenario intention allocation model M2, and the business scenario intention corresponding to the target conversation output by the scenario intention allocation model M2 is obtained. Keywords are extracted from the conversation data between the first customer and the first service personnel to obtain a first keyword group.
- a fusion context Context-d (Cw, Words) is constructed, where Cw includes the conversation data between the first customer and the first service personnel and the business scenario intention corresponding to the target conversation, and Words represents the first keyword group.
- [V1, V2, V3, V4] can also be obtained based on the aforementioned Context-s and Context-d, where V1 represents the vector of ⁇ Tags>, V2 represents the vector of ⁇ P-list>, V3 represents the vector of Cw, and V4 represents the vector of Words. Then, as shown in FIG5 , vector retrieval is performed based on [V1, V2, V3, V4] to obtain the vector recall result. The model recall result and the vector recall result are weighted to obtain the recommended words. The recommended words can be displayed in the form of a recommended words list.
- a weighted comparison can be made between the model recall result and the vector recall result, and the recommended words can be output according to the preset rules.
- the preset rules can be relevance priority or similarity priority. Relevance priority means that the model recall result is ranked first in the recommended words list, and the vector recall result is ranked last. Similarity priority means that the vector recall result is ranked first in the recommended words list, and the model recall result is ranked last.
- the preset rules that take effect can be selected according to the rule configuration parameters.
- the process of vector retrieval may specifically include: comparing [V1, V2, V3, V4] with [V1′, V2′, V3′, V4′] stored in the database to obtain the most approximate [V1′, V2′, V3′, V4′], and calling the ⁇ Answers> corresponding to the most approximate [V1′, V2′, V3′, V4′].
- the aforementioned data can be converted into vectors by word embedding technology.
- ⁇ Tags> can be converted into V1
- ⁇ P-list> can be converted into V2
- Cw can be converted into V3
- Words can be converted into V4 by word embedding technology.
- FIG6 is a business flow chart of a speech recommendation provided in the embodiment of the present application.
- FIG6 further explains the aforementioned process in detail.
- process 1 is executed: establishing a dialogue window between the first customer and the first service personnel.
- process 2 is executed: understanding the business scenario intention.
- This process 2 can be executed by the scenario intention classification model M2.
- the scenario intention classification model M2 in FIG6 can include multiple sub-models to perform various recognition processes.
- process 2 specifically includes the following processes: First, keyword extraction is performed, and the input of the keyword extraction process is N rounds of conversations in the conversation window, and the output is a keyword group (such as bold words in the conversation window). Then, sales scenario recognition is performed. The input of the sales scenario recognition process is N rounds of conversations and keyword groups, and the output is a sales scenario (including promotion/renewal/transfer/non-cloud services/others). And objection scenario recognition is performed. The input of the objection scenario recognition process is N rounds of conversations and keyword groups, and the output is an objection scenario (including price/friendly business/complaint). And product intent recognition is performed. The input of the product intent recognition process is N rounds of conversations and keyword groups, and the output is the entities and concerns of the first customer's intention.
- the aforementioned process 2 divides the business scenario intention recognition of process 102 into three processes: sales scenario recognition, objection scenario recognition, and product intention recognition.
- the scenario intention classification model M2 may include a sales scenario recognition sub-model, an objection scenario recognition sub-model, and a product intention recognition sub-model, which are respectively used to execute the three processes.
- the sales scenario recognition sub-model is obtained by training the historical dialogue data of the historical dialogue between the third customer and the third service personnel, the second keyword group, and the sales scenario label corresponding to the historical dialogue.
- the objection scenario recognition sub-model is obtained by training the historical dialogue data of the historical dialogue between the third customer and the third service personnel, the second keyword group, and the objection scenario label corresponding to the historical dialogue.
- the product intention recognition sub-model is obtained by training the historical dialogue data of the historical dialogue between the third customer and the third service personnel, the second keyword group, and the product intention label corresponding to the historical dialogue. It can be understood that there can be other division combinations, such as combining sales scenario recognition and objection scenario recognition into one scenario recognition process, or merging these three processes into one recognition process, which is not limited in the embodiments of the present application.
- process 3 is executed.
- This process 3 can be executed by the large language model M3, or by fusing the large language model M3 and the vector retrieval process.
- the large language model M3 can include multiple sub-models to perform various recommendation processes.
- Figure 6 divides process 3 into two parts: 3.1 recommending sales scripts and 3.2 recommending products/solutions.
- the preset sales scripts are first retrieved.
- the input of the process of retrieving the preset sales scripts is the characteristic information of the first customer, the characteristic information of the first service personnel, the previously output sales scenarios, objection scenarios, and keyword groups, and the output is M sales scripts selected from the preset sales scripts.
- relevance sorting is performed.
- the input of the relevance sorting process is the previously output M sales scripts, sales scenarios, and objection scenarios, and the output is the top X sales scripts among the M sales scripts.
- a list of products/solutions is obtained.
- the input of the process of obtaining the list of products/solutions is the characteristic information of the first customer, the characteristic information of the first service personnel, and the entities and concerns of the first customer's intentions previously output, and the output is Y related products.
- relevance sorting is performed.
- the input of the relevance sorting process is the concerns of the first customer's intentions previously output, the Y related products, and the characteristic information of the first customer, and the output is the first Z related products among the Y related products.
- 3.3 may be continued to be performed to recommend marketing activities.
- the process 3.3 includes associating the Z related products with the marketing activities in the activity library and determining the timing of the promotion activities.
- process 4 is executed.
- the output contents of 3.1 or 3.2 and 3.3 are assembled to obtain the final list of words displayed on the platform.
- manual strategies can be integrated to assemble the results, and manual intervention can be made on the results, such as setting some results not to be displayed.
- the last paragraph of the first service staff is the words selected by the first service staff from the displayed list of words.
- the aforementioned process 3 divides the speech recommendation of process 103 into two processes: sales speech recommendation and product/solution recommendation.
- the large language model M3 may include a sales speech recommendation sub-model and a product recommendation sub-model, which are respectively used to execute the two processes.
- the sales speech recommendation sub-model is obtained through the characteristic information of the fourth customer, the characteristic information of the fourth service personnel, the business scenario label corresponding to the historical conversation, the second keyword group, and the preset sales speech training.
- the product recommendation sub-model is obtained through the characteristic information of the fourth customer, the characteristic information of the fourth service personnel, the intention label corresponding to the historical conversation between the fourth customer and the fourth service personnel, and the preset product training. It can be understood that there can be other division combinations, such as combining the sales speech recommendation and the product/solution recommendation into one recommendation process, which is not limited in the embodiments of the present application.
- process 5 manual labeling process needs to be executed during the model training process.
- dialogue window data is selected from the dialogue corpus, and then keyword groups are labeled for the dialogue window data, so as to obtain a model through training the dialogue window data and the labeled keyword groups, and the model is used to implement the keyword extraction process in the aforementioned process 2.
- sales scene labels can also be annotated for the dialogue window data, so as to obtain a model through training the dialogue window data and the annotated sales scene labels.
- the model is used to implement the sales scene recognition process in the aforementioned process 2.
- objection scene labels can also be annotated for the dialogue window data, so as to obtain a model through training the dialogue window data and the annotated objection scene labels, and the model is used to implement the objection scene identification process in the above-mentioned process 2.
- product intent labels can also be annotated for the dialogue window data, so as to obtain a model through training the dialogue window data and the annotated product intent labels.
- the model is used to implement the product intent recognition process in the aforementioned process 2.
- feedback data of the recommendation results can be obtained.
- transaction data and click data based on the recommendation words can be obtained to obtain product solution feedback samples, based on which the manually labeled results can be modified, and the first model to the third model can be retrained to achieve model update.
- the method for recommending words of speech trains a first initial model with first training data to obtain a first model
- the first training data includes: characteristic information of the second customer, characteristic information of the second service personnel, and historical transaction products of the second customer
- the second training data includes: historical conversation data of historical conversations between a third customer and a third service personnel, and business scenario intentions corresponding to the historical conversations
- the third training data includes: characteristic information of a fourth customer, characteristic information of a fourth service personnel, historical transaction products of the fourth customer, historical conversation data of historical conversations between the fourth customer and the fourth service personnel, business scenario intentions corresponding to the historical conversations, a second keyword group, and preset words of speech
- the second keyword group is obtained by extracting keywords from the historical conversation data
- the third initial model is obtained by training the third initial model with third training data.
- the characteristic information of a customer and the characteristic information of the first service staff are input into the first model to obtain at least one preferred product of the first customer output by the first model, the conversation data between the first customer and the first service staff is input into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model, and then the target data is input into the third model to obtain the recommended speech based on the model recall result output by the third model.
- the target data includes: the characteristic information of the first customer, the characteristic information of the first service staff, at least one preferred product of the first customer, the conversation data and the business scenario intention corresponding to the target conversation.
- the method trains and fine-tunes the model through the data structure of the fused context, and the obtained large model can recommend speech according to the data structure of the fused context.
- the customer characteristic information and the characteristic information of the service staff compared with the related technology, it can more effectively fit the personality characteristics of the service staff and the customer to assist in the recommendation of speech.
- the combined use of dynamic parameters (conversation text) and static parameters (feature information of the first customer and feature information of the first service personnel) for speech recommendation can effectively improve the accuracy and relevance of speech recommendation compared to related technologies, thereby assisting service personnel to provide efficient services.
- dynamic parameters conversation text
- static parameters feature information of the first customer and feature information of the first service personnel
- speech recommendation can effectively improve the accuracy and relevance of speech recommendation compared to related technologies, thereby assisting service personnel to provide efficient services.
- accurate recommendations for sales speech and products can be achieved, assisting sales personnel to complete efficient sales.
- the first model, the second model, and the third model can achieve self-closed-loop sustainable iterative updates, thereby further achieving the real-time and accuracy of speech recommendations.
- the speech recommendation device 300 may include: a processing module 301, a recommendation module 302 and a display module 303.
- the speech recommendation device may be a speech recommendation device, or a chip therein or other combined devices, components, etc. having the functions of the above-mentioned speech recommendation device.
- the functions of each module of the device are as follows:
- a processing module is used to determine the characteristic information of the first customer and the characteristic information of the first service staff in the target dialogue, and the target dialogue is the dialogue between the first customer and the first service staff; the processing module is also used to parse the dialogue data of the target dialogue to determine the business scenario intention corresponding to the target dialogue, and the dialogue data includes the dialogue context of the target dialogue; a recommendation module is used to obtain recommended words based on the target data, and the target data includes: the characteristic information of the first customer, the characteristic information of the first service staff and the business scenario intention corresponding to the target dialogue, and the recommended words are optional words for replying to the first customer; a display module is used to provide a recommended words display interface, and the recommended words display interface is used to display the recommended words.
- the characteristic information of the first service personnel includes at least one of the following: the ability level of the first service personnel, the business team of the first service personnel, the sales status of the first service personnel, and the sales history of the first service personnel.
- the recommended script is the script for introducing the target product; the target product meets at least one of the following characteristics: the target product corresponds to the ability level of the first service personnel, the target product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the target product is greater than a first preset threshold, the target product belongs to the industry that the first service personnel is good at, and the number of historical sales orders of the target product by the first service personnel is greater than a second preset threshold.
- the processing module is further used to determine at least one preferred product of the first customer based on the characteristic information of the first customer and the characteristic information of the first service personnel, and the target data also includes at least one preferred product.
- the processing module is specifically used to input the characteristic information of the first customer and the characteristic information of the first service personnel into the first model to obtain at least one preferred product output by the first model; wherein the first model is obtained by training the first initial model with the first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service personnel and the historical transaction products of the second customer.
- the processing module is specifically used to input the conversation data into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model; wherein the second model is obtained by training the second initial model with second training data, and the second training data includes: historical conversation data of historical conversations between the third customer and the third service personnel and the business scenario intentions corresponding to the historical conversations.
- the recommendation module is specifically used to: input the target data into the third model to obtain the model recall result output by the third model; and obtain the recommended words based on the model recall result; wherein the third model is obtained by training the third initial model with the third training data, and the third training data includes: the characteristic information of the fourth customer, the characteristic information of the fourth service personnel, the business scenario intentions corresponding to the historical conversations between the fourth customer and the fourth service personnel, and the preset words.
- Figure 8 is a block diagram of another speech recommendation device provided in an embodiment of the present application. Based on Figure 7, the device also includes: a storage module 304.
- a storage module is used to store first vector data and preset words in a vector database, wherein the first vector data includes: a vector of characteristic information of a fourth customer, a vector of characteristic information of a fourth service staff, and a vector of business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff.
- the recommendation module is also used to perform vector retrieval based on the second vector data to obtain a vector recall result, and the second vector data includes a vector of the target data; the recommendation module is specifically used to: weight the model recall result and the vector recall result to obtain a recommended speech.
- the processing module is also used to obtain a preset number of continuous dialogue texts from the dialogue text of the target dialogue to obtain dialogue data.
- the cloud management platform includes a processing module, a recommendation module, a display module, and a storage module.
- the processing module, the recommendation module, the display module, and the storage module can all be implemented by software, or can be implemented by hardware.
- the implementation of the processing module is introduced below by taking the processing module as an example.
- the implementation of the recommendation module, the display module, and the storage module can refer to the implementation of the processing module.
- a processing module may include code running on a computing instance.
- the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container.
- the above-mentioned computing instance may be one or more.
- a processing module may include code running on multiple hosts/virtual machines/containers. It should be noted that the multiple hosts/virtual machines/containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts/virtual machines/containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
- AZ availability zone
- VPC virtual private cloud
- multiple hosts/virtual machines/containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs.
- VPC virtual private cloud
- a VPC is set up in a region.
- a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
- a processing module may include at least one computing device, such as a server, etc.
- the processing module may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD).
- ASIC application-specific integrated circuit
- PLD programmable logic device
- the PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
- CPLD complex programmable logical device
- FPGA field-programmable gate array
- GAL generic array logic
- the multiple computing devices included in the processing module can be distributed in the same region or in different regions.
- the multiple computing devices included in the processing module can be distributed in the same AZ or in different AZs.
- the multiple computing devices included in the processing module can be distributed in the same VPC or in multiple VPCs.
- the multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
- the processing module can be used to execute any step in the speech recommendation method
- the recommendation module can be used to execute any step in the speech recommendation method
- the display module can be used to execute any step in the speech recommendation method
- the storage module can be used to execute any step in the speech recommendation method. Used to execute any step in the speech recommendation method.
- the steps that the processing module, recommendation module, display module, and storage module are responsible for implementing can be specified as needed, and the processing module, recommendation module, display module, and storage module respectively implement different steps in any method of claims 1 to 10 to realize all the functions of the cloud management platform.
- the present application also provides a speech recommendation system, including a cloud management platform and infrastructure.
- the cloud management platform and the infrastructure can be implemented by software or hardware.
- the implementation of the cloud management platform is introduced below.
- the implementation of the infrastructure can refer to the implementation of the cloud management platform.
- a cloud management platform may include code running on a computing instance.
- the computing instance may be at least one of a physical host (computing device), a virtual machine, a container, and other computing devices.
- the computing device may be one or more.
- the cloud management platform may include code running on multiple hosts/virtual machines/containers.
- the multiple hosts/virtual machines/containers used to run the application may be distributed in the same region or in different regions.
- the multiple hosts/virtual machines/containers used to run the code may be distributed in the same AZ or in different AZs, each AZ including one data center or multiple data centers with close geographical locations.
- a region may include multiple AZs.
- multiple hosts/virtual machines/containers used to run the code can be distributed in the same VPC or in multiple VPCs.
- a VPC is set up in a region.
- a communication gateway must be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
- the cloud management platform may include at least one computing device, such as a server, etc.
- the cloud management platform may also be a device implemented using ASIC or PLD, etc.
- the PLD may be implemented using CPLD, FPGA, GAL or any combination thereof.
- the multiple computing devices included in the cloud management platform can be distributed in the same region or in different regions.
- the multiple computing devices included in the cloud management platform can be distributed in the same AZ or in different AZs.
- the multiple computing devices included in the speech recommendation device can be distributed in the same VPC or in multiple VPCs.
- the multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
- the present application also provides a computing device 400.
- the computing device 400 includes: a bus 402, a processor 404, a memory 406, and a communication interface 408.
- the processor 404, the memory 406, and the communication interface 408 communicate with each other through the bus 402.
- the computing device 400 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 400.
- the bus 402 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
- the bus may be divided into an address bus, a data bus, a control bus, etc.
- FIG. 9 is represented by only one line, but does not mean that there is only one bus or one type of bus.
- the bus 402 may include a path for transmitting information between various components of the computing device 400 (e.g., the memory 406, the processor 404, and the communication interface 408).
- Processor 404 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
- CPU central processing unit
- GPU graphics processing unit
- MP microprocessor
- DSP digital signal processor
- the memory 406 may include a volatile memory (volatile memory), such as a random access memory (RAM).
- volatile memory such as a random access memory (RAM).
- the processor 404 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
- ROM read-only memory
- HDD hard disk drive
- SSD solid state drive
- the memory 406 stores executable program codes, and the processor 404 executes the executable program codes to respectively implement the functions of the aforementioned processing module, recommendation module, display module, and storage module, thereby implementing any one of the speech recommendation methods of claims 1 to 10. That is, the memory 406 stores instructions for executing any one of the speech recommendation methods of claims 1 to 10.
- the communication interface 408 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 400 and other devices or a communication network.
- a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 400 and other devices or a communication network.
- the embodiment of the present application also provides a computing device cluster.
- the computing device cluster includes at least one computing device.
- the computing device can be a server, such as a central server, an edge server, or a local server in a local data center.
- the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
- the computing device cluster includes at least one computing device 400.
- the memory 406 in one or more computing devices 400 in the computing device cluster may store the same instructions for executing any one of the speech recommendation methods of claims 1 to 10.
- the memory 406 of one or more computing devices 400 in the computing device cluster may also respectively store partial instructions for executing any one of the speech recommendation methods of claims 1 to 10.
- the combination of one or more computing devices 400 may jointly execute instructions for executing any one of the speech recommendation methods of claims 1 to 10.
- the memory 406 in different computing devices 400 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the cloud management platform. That is, the instructions stored in the memory 406 in different computing devices 400 can implement the functions of one or more modules among the processing module, the recommendation module, the display module and the storage module.
- one or more computing devices in a computing device cluster may be connected via a network.
- the network may be a wide area network or a local area network, etc.
- FIG. 11 shows a possible implementation. As shown in FIG. 11 , two computing devices 400A and 400B are connected via a network. Specifically, the network is connected via a communication interface in each computing device.
- the memory 406 in the computing device 400A stores instructions for executing the functions of the processing module and the recommendation module.
- the memory 406 in the computing device 400B stores instructions for executing the functions of the display module and the storage module.
- connection method between the computing device clusters shown in Figure 11 can be that considering that any of the speech recommendation methods of claims 1 to 10 provided in the present application requires speech recommendation, it is considered to entrust the functions implemented by the display module and the storage module to the computing device 400B for execution.
- the functions of the computing device 400A shown in FIG11 may also be completed by multiple computing devices 400.
- the functions of the computing device 400B may also be completed by multiple computing devices 400.
- the embodiment of the present application also provides a computer program product including instructions.
- the computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium.
- the at least one computing device executes any one of the speech recommendation methods of claims 1 to 10.
- the embodiment of the present application also provides a computer-readable storage medium.
- the computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media.
- the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).
- the computer-readable storage medium includes instructions that instruct the computing device to execute any one of the speech recommendation methods of claims 1 to 10.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本申请要求于2023年11月08日提交中国专利局、申请号为202311481562.8、申请名称为“话术推荐方法、装置、计算设备集群及存储介质”的中国专利申请的优先权,以及于2024年02月29日提交中国专利局、申请号为202410231625.2、申请名称为“话术推荐方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on November 8, 2023, with application number 202311481562.8 and application name “Speech Recommendation Method, Device, Computing Device Cluster and Storage Medium”, and the priority of the Chinese patent application filed with the Chinese Patent Office on February 29, 2024, with application number 202410231625.2 and application name “Speech Recommendation Method, Device and Equipment”, all contents of which are incorporated by reference in this application.
本申请涉及数据处理技术领域,尤其涉及一种话术推荐方法、装置及设备。The present application relates to the field of data processing technology, and in particular to a method, device and equipment for recommending speech skills.
企业对客户提供服务过程中,企业销售人员需要根据客户的需求和需要,提供相应的产品和服务的销售信息和指导。在一般销售过程中,企业销售人员通过电话、在线等渠道接触客户,并进行特定话术指引和产品销售。在销售人员与客户的交流中,往往依赖于销售人员的经验与沟通能力,销售人员需要随时根据用户的问题,查询企业相关系统进行关键信息补充和回答客户问题。随着数据量、信息量和知识量的日益增大,亟需一些智能销售辅助技术辅助销售人员来提升工作效率。When an enterprise provides services to customers, its sales staff need to provide sales information and guidance on corresponding products and services according to the needs and demands of customers. In the general sales process, enterprise sales staff contact customers through telephone, online and other channels, and provide specific sales guidance and product sales. The communication between sales staff and customers often depends on the sales staff's experience and communication skills. Sales staff need to query the enterprise's relevant systems at any time according to the user's questions to supplement key information and answer customer questions. With the increasing amount of data, information and knowledge, some intelligent sales assistance technologies are urgently needed to assist sales staff to improve work efficiency.
相关技术中,通过以下方式对销售人员进行话术推荐:1.根据销售人员和客户的对话过程中的关键词检索数据库,进行话术推荐;2.根据客户画像和客户历史行为进行话术推荐;3.基于知识库和知识图谱进行知识检索,进而推荐话术;4.根据客户与销售人员的历史对话训练得到文本模型,基于文本模型进行话术推荐。In the related art, sales talk recommendations are made to sales staff in the following ways: 1. Searching a database based on keywords in the conversation between the sales staff and the customer to recommend talk; 2. Recommending talk based on the customer profile and historical behavior; 3. Retrieving knowledge based on the knowledge base and knowledge graph to recommend talk; 4. Training a text model based on historical conversations between the customer and the sales staff, and recommending talk based on the text model.
但是关键词存在歧义问题,同一个关键词在不同场景下可能代表不同意思,不同关键词的权重差别很大,导致推荐精准度低。客户画像和客户历史行为属于固有信息,无法适用于各种场景,导致推荐精准度低,并且该方式涉及到用户信息采集和存储,数据安全性较差。构建全面、完备的知识图谱和知识库的成本较高。基于文本模型进行话术推荐的方式推荐精准度依赖模型的准确率,当模型准确率较低时,推荐精准度也较低。However, there is an ambiguity problem with keywords. The same keyword may represent different meanings in different scenarios, and the weights of different keywords vary greatly, resulting in low recommendation accuracy. Customer portraits and customer historical behaviors are inherent information and cannot be applied to various scenarios, resulting in low recommendation accuracy. In addition, this method involves user information collection and storage, and data security is poor. The cost of building a comprehensive and complete knowledge graph and knowledge base is high. The recommendation accuracy of the method based on text models for speech recommendations depends on the accuracy of the model. When the model accuracy is low, the recommendation accuracy is also low.
发明内容Summary of the invention
本申请提供一种话术推荐方法、装置及设备,解决了相关技术中话术推荐的精准度低、数据安全性差一级成本高等问题,能够有效提高话术推荐的准确性和相关性,从而辅助服务人员完成高效率的服务。The present application provides a method, device and equipment for recommending speech techniques, which solve the problems of low accuracy, poor data security and high cost of speech techniques recommendation in related technologies, and can effectively improve the accuracy and relevance of speech techniques recommendation, thereby assisting service personnel to complete efficient services.
第一方面,本申请提供一种话术推荐方法,该方法包括:确定目标对话中第一客户的特征信息和第一服务人员的特征信息,目标对话为第一客户和第一服务人员的对话;解析目标对话的对话数据,以确定目标对话对应的业务场景意图,对话数据包括目标对话的对话上下文;基于目标数据得到推荐话术,目标数据包括:第一客户的特征信息、第一服务人员的特征信息以及目标对话对应的业务场景意图,推荐话术为用于回复第一客户的可选话术;基于目标数据得到推荐话术,目标数据包括:第一客户的特征信息、第一服务人员的特征信息以及目标对话对应的业务场景意图,推荐话术为用于回复第一客户的可选话术。In a first aspect, the present application provides a method for recommending words of speech, the method comprising: determining characteristic information of a first customer and characteristic information of a first service staff in a target conversation, the target conversation being a conversation between the first customer and the first service staff; parsing conversation data of the target conversation to determine a business scenario intention corresponding to the target conversation, the conversation data comprising a conversation context of the target conversation; obtaining recommended words of speech based on the target data, the target data comprising: characteristic information of the first customer, characteristic information of the first service staff, and business scenario intention corresponding to the target conversation, the recommended words of speech being an optional word of speech for replying to the first customer; obtaining recommended words of speech based on the target data, the target data comprising: characteristic information of the first customer, characteristic information of the first service staff, and business scenario intention corresponding to the target conversation, the recommended words of speech being an optional word of speech for replying to the first customer.
示例地,业务场景意图可以包括:业务场景标签和/或意图标签。业务场景标签可以包括销售场景标签或异议场景标签,销售场景标签包括但不限于:促单、续费、销售转接、合同或非云服务等,异议场景标签包括但不限于:价格、友商产品对比或投诉等。第一客户与第一服务人员的意图标签可以指第一客户意向的实体和关注点等。For example, the business scenario intent may include: business scenario tags and/or intent tags. Business scenario tags may include sales scenario tags or objection scenario tags. Sales scenario tags include but are not limited to: order promotion, renewal, sales transfer, contract or non-cloud service, etc. Objection scenario tags include but are not limited to: price, comparison of friendly products or complaints, etc. The intent tags of the first customer and the first service staff may refer to the entities and concerns of the first customer's intentions, etc.
推荐话术例如可以包括:对客户提出的问题的解答、介绍产品的话术、对客户提出的异议的解决方案、推荐产品相关的营销活动等。Recommendation scripts may include, for example: answers to questions raised by customers, scripts to introduce products, solutions to objections raised by customers, and marketing activities related to recommended products.
其有益效果是同时结合客户特征信息和服务人员的特征信息,相较于相关技术,能够更加有效的贴合服务人员和客户的个性特性进行话术推荐的辅助。并且综合使用动态参数(对话文本)以及静态参数(第一客户的特征信息和第一服务人员的特征信息)进行话术推荐,相较于相关技术,能够有效提高话术推荐的准确性和相关性,从而辅助服务人员完成高效率的服务。The beneficial effect is that it combines the customer feature information and the service personnel feature information at the same time, and can more effectively assist in the recommendation of speech techniques in accordance with the individual characteristics of the service personnel and the customer compared to the related technologies. And the comprehensive use of dynamic parameters (conversation text) and static parameters (feature information of the first customer and feature information of the first service personnel) for speech technique recommendation can effectively improve the accuracy and relevance of speech technique recommendation compared to the related technologies, thereby assisting the service personnel to complete efficient services.
在一种可能的实现方式中,第一服务人员的特征信息包括以下至少一项:第一服务人员的能力等级、 第一服务人员的业务团队、第一服务人员的销售状态、第一服务人员的销售历史。In a possible implementation, the characteristic information of the first service personnel includes at least one of the following: the ability level of the first service personnel, The first service personnel’s business team, the first service personnel’s sales status, and the first service personnel’s sales history.
示例地,能力等级包括以下至少一项:初级、中级以及高级,业务团队包括:拓新团队和/或存量团队,销售状态包括:客户满意度和/或擅长行业,销售历史包括以下至少一项:成单客户数、成单产品数、成单总金额以及累计呼叫总时长,其中,第一服务人员的能力等级越高,第一服务人员的销售能力越高。For example, the ability level includes at least one of the following: elementary, intermediate and advanced, the business team includes: new business team and/or existing business team, the sales status includes: customer satisfaction and/or industry expertise, and the sales history includes at least one of the following: number of customers with orders, number of products with orders, total amount of orders and total cumulative call duration, wherein the higher the ability level of the first service personnel, the higher the sales ability of the first service personnel.
在一种可能的实现方式中,推荐话术为介绍目标产品的话术;目标产品满足以下至少一种特征:目标产品对应第一服务人员的能力等级、目标产品属于第一服务人员的业务团队、第一服务人员历史销售目标产品获得的客户满意度大于第一预设阈值、目标产品属于第一服务人员的擅长行业、第一服务人员对目标产品的销售历史成单数大于第二预设阈值。In one possible implementation, the recommendation script is a script for introducing the target product; the target product satisfies at least one of the following characteristics: the target product corresponds to the ability level of the first service personnel, the target product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the target product is greater than a first preset threshold, the target product belongs to the industry that the first service personnel is good at, and the number of sales history orders of the target product by the first service personnel is greater than a second preset threshold.
在一种可能的实现方式中,该方法还包括:基于第一客户的特征信息和第一服务人员的特征信息,确定第一客户的至少一个偏好产品,目标数据还包括至少一个偏好产品。In a possible implementation, the method further includes: determining at least one preferred product of the first customer based on characteristic information of the first customer and characteristic information of the first service personnel, and the target data further includes at least one preferred product.
在一种可能的实现方式中,基于第一客户的特征信息和第一服务人员的特征信息,确定第一客户的至少一个偏好产品的过程包括:将第一客户的特征信息和第一服务人员的特征信息输入第一模型,得到第一模型输出的至少一个偏好产品,其中,第一模型是通过第一训练数据对第一初始模型进行训练得到的,第一训练数据包括:第二客户的特征信息、第二服务人员的特征信息以及第二客户的历史成交产品。In one possible implementation, the process of determining at least one preferred product of the first customer based on the characteristic information of the first customer and the characteristic information of the first service staff includes: inputting the characteristic information of the first customer and the characteristic information of the first service staff into a first model, and obtaining at least one preferred product output by the first model, wherein the first model is obtained by training a first initial model with first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service staff, and the historical transaction products of the second customer.
其中,第一训练数据可以视为客户、销售、客户对产品的满意度和成交结果最大化的矩阵,以成功销售作为目标训练得到第一模型。The first training data can be regarded as a matrix of customers, sales, customer satisfaction with the product and transaction results, and the first model is obtained by training with successful sales as the goal.
在一种可能的实现方式中,解析目标对话的对话数据,以确定目标对话对应的业务场景意图的过程包括:将对话数据输入第二模型,得到第二模型输出的目标对话对应的业务场景意图,其中,第二模型是通过第二训练数据对第二初始模型进行训练得到的,第二训练数据包括:第三客户与第三服务人员的历史对话的历史对话数据以及历史对话对应的业务场景意图。In one possible implementation, the process of parsing the conversation data of a target conversation to determine the business scenario intention corresponding to the target conversation includes: inputting the conversation data into a second model to obtain the business scenario intention corresponding to the target conversation output by the second model, wherein the second model is obtained by training a second initial model with second training data, and the second training data includes: historical conversation data of historical conversations between a third customer and a third service staff and the business scenario intention corresponding to the historical conversations.
示例地,该方法还包括:从第三客户与第三服务人员的历史对话的对话文本中获取预设数量的连续对话文本,得到历史对话数据。For example, the method further includes: acquiring a preset number of continuous dialogue texts from dialogue texts of historical dialogues between the third customer and the third service personnel to obtain historical dialogue data.
例如可以通过动态窗口限定范围,从第三客户与第三服务人员的历史对话的对话文本中取预设数量的连续对话文本,得到历史对话数据。其有益效果是通过滚动窗口式对话文本可以最大化复用一通对话中的多轮信息,并能够持续纠正,能够提高第二模型的输出准确性和稳定性。For example, a preset number of continuous dialogue texts can be taken from the dialogue texts of historical dialogues between the third customer and the third service personnel through a dynamic window limit range to obtain historical dialogue data. The beneficial effect is that the rolling window dialogue text can maximize the reuse of multiple rounds of information in a dialogue, and can be continuously corrected, which can improve the output accuracy and stability of the second model.
在一种可能的实现方式中,基于目标数据得到推荐话术的过程包括:将目标数据输入第三模型,得到第三模型输出的模型召回结果,其中,第三模型是通过第三训练数据对第三初始模型进行训练得到的,第三训练数据包括:第四客户的特征信息、第四服务人员的特征信息、第四客户与第四服务人员的历史对话对应的业务场景意图以及预设话术;基于模型召回结果,得到推荐话术。In one possible implementation, the process of obtaining recommended words based on target data includes: inputting the target data into a third model to obtain a model recall result output by the third model, wherein the third model is obtained by training a third initial model with third training data, and the third training data includes: characteristic information of a fourth customer, characteristic information of a fourth service personnel, business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service personnel, and preset words; based on the model recall result, the recommended words are obtained.
示例地,目标数据还可以包括以下至少一项:第一客户与第一服务人员的对话数据、第一客户的至少一个偏好产品、第一关键词组。第一关键词组可以是对第一客户与第一服务人员的对话数据进行关键词抽取得到的,第一关键词组可以包括与业务相关、产品相关词以及实体等。关键词抽取过程可以结合预先建立的关键词库进行。For example, the target data may also include at least one of the following: conversation data between the first customer and the first service personnel, at least one preferred product of the first customer, and a first keyword group. The first keyword group may be obtained by extracting keywords from the conversation data between the first customer and the first service personnel, and the first keyword group may include business-related, product-related words and entities, etc. The keyword extraction process may be performed in conjunction with a pre-established keyword library.
其有益效果是通过融合上下文的数据结构进行模型训练和微调,得到的大模型可以按照融合上下文的数据结构推荐话术,同时结合客户特征信息和销售特征信息,相较于相关技术,能够更加有效的贴合服务人员和客户的个性特性进行话术推荐的辅助。并且第一模型、第二模型和第三模型可以实现自闭环可持续迭代更新,从而进一步实现了话术推荐的实时性和准确性。The beneficial effect is that the model is trained and fine-tuned by integrating the context data structure, and the obtained large model can recommend the speech in accordance with the context data structure, and at the same time, combined with the customer feature information and sales feature information, it can more effectively fit the personality characteristics of the service staff and customers to assist in the recommendation of speech compared with related technologies. In addition, the first model, the second model and the third model can realize self-closed loop sustainable iterative update, thereby further realizing the real-time and accuracy of speech recommendation.
在一种可能的实现方式中,该方法还包括:在向量数据库中存储第一向量数据以及预设话术,第一向量数据包括:第四客户的特征信息的向量、第四服务人员的特征信息的向量以及第四客户与第四服务人员的历史对话对应的业务场景意图的向量。In a possible implementation, the method also includes: storing first vector data and preset words in a vector database, the first vector data including: a vector of characteristic information of a fourth customer, a vector of characteristic information of a fourth service staff, and a vector of business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff.
在一种可能的实现方式中,该方法还包括:根据第二向量数据进行向量检索,得到向量召回结果,第二向量数据包括目标数据的向量;基于基于模型召回结果,得到推荐话术的过程包括:将模型召回结果和向量召回结果进行加权处理,得到推荐话术。In a possible implementation, the method also includes: performing vector retrieval based on second vector data to obtain a vector recall result, the second vector data including a vector of the target data; based on the model recall result, the process of obtaining the recommended words includes: weighting the model recall result and the vector recall result to obtain the recommended words.
其有益效果是将模型输出结果和向量检索结果进行加权处理,可以有效减小数据冷启动或者模型误差所导致的推荐话术的误差。The beneficial effect is that the model output results and vector retrieval results are weighted, which can effectively reduce the errors in recommended words caused by data cold start or model errors.
在一种可能的实现方式中,该方法还包括:从目标对话的对话文本中获取预设数量的连续对话文本,得到对话数据。In a possible implementation, the method further includes: acquiring a preset number of continuous dialogue texts from the dialogue text of the target dialogue to obtain dialogue data.
例如可以通过动态窗口限定范围,从目标对话的对话文本中取预设数量的连续对话文本,得到对话数 据。其有益效果是通过滚动窗口式对话文本能够实现实时的业务场景意图识别,这样可以最大化复用一通对话中的多轮信息,并能够持续纠正,具有较高的准确性和稳定性。For example, a dynamic window can be used to limit the range, and a preset number of continuous dialogue texts can be taken from the dialogue text of the target dialogue to obtain the dialogue count. The beneficial effect is that the rolling window-style conversation text can realize real-time business scenario intention recognition, which can maximize the reuse of multiple rounds of information in a conversation and enable continuous correction with high accuracy and stability.
第二方面,本申请提供一种话术推荐装置,该装置包括:处理模块,用于确定目标对话中第一客户的特征信息和第一服务人员的特征信息,目标对话为第一客户和第一服务人员的对话;处理模块,还用于解析目标对话的对话数据,以确定目标对话对应的业务场景意图,对话数据包括目标对话的对话上下文;推荐模块,用于基于目标数据得到推荐话术,目标数据包括:第一客户的特征信息、第一服务人员的特征信息以及目标对话对应的业务场景意图,推荐话术为用于回复第一客户的可选话术;显示模块,用于提供推荐话术展示界面,推荐话术展示界面用于展示推荐话术。In a second aspect, the present application provides a speech recommendation device, which includes: a processing module, which is used to determine the characteristic information of the first customer and the characteristic information of the first service staff in a target conversation, and the target conversation is a conversation between the first customer and the first service staff; the processing module is also used to parse the conversation data of the target conversation to determine the business scenario intention corresponding to the target conversation, and the conversation data includes the conversation context of the target conversation; a recommendation module, which is used to obtain recommended speech based on the target data, and the target data includes: the characteristic information of the first customer, the characteristic information of the first service staff, and the business scenario intention corresponding to the target conversation, and the recommended speech is an optional speech for replying to the first customer; a display module, which is used to provide a recommended speech display interface, and the recommended speech display interface is used to display the recommended speech.
在一种可能的实现方式中,第一服务人员的特征信息包括以下至少一项:第一服务人员的能力等级、第一服务人员的业务团队、第一服务人员的销售状态、第一服务人员的销售历史。In a possible implementation, the characteristic information of the first service personnel includes at least one of the following: the ability level of the first service personnel, the business team of the first service personnel, the sales status of the first service personnel, and the sales history of the first service personnel.
在一种可能的实现方式中,推荐话术为介绍目标产品的话术;目标产品满足以下至少一种特征:目标产品对应第一服务人员的能力等级、目标产品属于第一服务人员的业务团队、第一服务人员历史销售目标产品获得的客户满意度大于第一预设阈值、目标产品属于第一服务人员的擅长行业、第一服务人员对目标产品的销售历史成单数大于第二预设阈值。In one possible implementation, the recommendation script is a script for introducing the target product; the target product satisfies at least one of the following characteristics: the target product corresponds to the ability level of the first service personnel, the target product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the target product is greater than a first preset threshold, the target product belongs to the industry that the first service personnel is good at, and the number of sales history orders of the target product by the first service personnel is greater than a second preset threshold.
在一种可能的实现方式中,处理模块,还用于基于第一客户的特征信息和第一服务人员的特征信息,确定第一客户的至少一个偏好产品,目标数据还包括至少一个偏好产品。In a possible implementation, the processing module is further used to determine at least one preferred product of the first customer based on the characteristic information of the first customer and the characteristic information of the first service personnel, and the target data also includes at least one preferred product.
在一种可能的实现方式中,处理模块,具体用于将第一客户的特征信息和第一服务人员的特征信息输入第一模型,得到第一模型输出的至少一个偏好产品;其中,第一模型是通过第一训练数据对第一初始模型进行训练得到的,第一训练数据包括:第二客户的特征信息、第二服务人员的特征信息以及第二客户的历史成交产品。In one possible implementation, the processing module is specifically used to input the characteristic information of the first customer and the characteristic information of the first service personnel into the first model to obtain at least one preferred product output by the first model; wherein the first model is obtained by training the first initial model with the first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service personnel and the historical transaction products of the second customer.
在一种可能的实现方式中,处理模块,具体用于将对话数据输入第二模型,得到第二模型输出的目标对话对应的业务场景意图;其中,第二模型是通过第二训练数据对第二初始模型进行训练得到的,第二训练数据包括:第三客户与第三服务人员的历史对话的历史对话数据以及历史对话对应的业务场景意图。In one possible implementation, the processing module is specifically used to input the conversation data into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model; wherein the second model is obtained by training the second initial model with second training data, and the second training data includes: historical conversation data of historical conversations between a third customer and a third service staff, and the business scenario intention corresponding to the historical conversations.
在一种可能的实现方式中,推荐模块,具体用于:将目标数据输入第三模型,得到第三模型输出的模型召回结果;以及基于模型召回结果,得到推荐话术;其中,第三模型是通过第三训练数据对第三初始模型进行训练得到的,第三训练数据包括:第四客户的特征信息、第四服务人员的特征信息、第四客户与第四服务人员的历史对话对应的业务场景意图以及预设话术。In one possible implementation, the recommendation module is specifically used to: input the target data into a third model to obtain a model recall result output by the third model; and obtain recommended words based on the model recall result; wherein the third model is obtained by training a third initial model with third training data, and the third training data includes: feature information of a fourth customer, feature information of a fourth service staff, business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff, and preset words.
在一种可能的实现方式中,该装置还包括:存储模块,用于在向量数据库中存储第一向量数据以及预设话术,第一向量数据包括:第四客户的特征信息的向量、第四服务人员的特征信息的向量以及第四客户与第四服务人员的历史对话对应的业务场景意图的向量。In one possible implementation, the device also includes: a storage module for storing first vector data and preset words in a vector database, the first vector data including: a vector of characteristic information of a fourth customer, a vector of characteristic information of a fourth service staff, and a vector of business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff.
在一种可能的实现方式中,推荐模块,还用于根据第二向量数据进行向量检索,得到向量召回结果,第二向量数据包括目标数据的向量;推荐模块,具体用于:将模型召回结果和向量召回结果进行加权处理,得到推荐话术。In a possible implementation, the recommendation module is also used to perform vector retrieval based on the second vector data to obtain a vector recall result, and the second vector data includes a vector of the target data; the recommendation module is specifically used to: weight the model recall result and the vector recall result to obtain a recommended speech.
在一种可能的实现方式中,处理模块,还用于从目标对话的对话文本中获取预设数量的连续对话文本,得到对话数据。In a possible implementation, the processing module is further configured to obtain a preset number of continuous dialogue texts from the dialogue text of the target dialogue to obtain dialogue data.
第三方面,本申请提供一种计算设备集群,包括至少一个计算设备,每个计算设备包括处理器和存储器;至少一个计算设备的处理器用于执行至少一个计算设备的存储器中存储的指令,以使得计算设备集群执行如第一方面中任一项的方法。In a third aspect, the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster performs a method as described in any one of the first aspects.
第四方面,本申请提供一种包含指令的计算机程序产品,其特征在于,当指令被计算设备集群运行时,使得计算设备集群执行如第一方面中任一项的方法。In a fourth aspect, the present application provides a computer program product comprising instructions, wherein when the instructions are executed by a computing device cluster, the computing device cluster executes any method in the first aspect.
第五方面,本申请提供一种计算机可读存储介质,包括计算机程序指令,当计算机程序指令由计算设备集群执行时,计算设备集群执行如第一方面中任一项的方法。In a fifth aspect, the present application provides a computer-readable storage medium, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes any method in the first aspect.
图1为本申请实施例提供的一种话术推荐系统的结构示意图;FIG1 is a schematic diagram of the structure of a speech recommendation system provided in an embodiment of the present application;
图2为本申请实施例提供的一种话术推荐方法的流程示意图;FIG2 is a flow chart of a method for recommending speech skills according to an embodiment of the present application;
图3为本申请实施例提供的一种模型训练方法的流程示意图;FIG3 is a flow chart of a model training method provided in an embodiment of the present application;
图4为本申请实施例提供的一种模型训练过程示意图; FIG4 is a schematic diagram of a model training process provided in an embodiment of the present application;
图5为本申请实施例提供的一种话术推荐过程示意图;FIG5 is a schematic diagram of a speech recommendation process provided by an embodiment of the present application;
图6为本申请实施例提供的一种话术推荐的业务流程图;FIG6 is a business flow chart of a speech recommendation provided in an embodiment of the present application;
图7为本申请实施例提供的一种话术推荐装置的框图;FIG7 is a block diagram of a speech recommendation device provided in an embodiment of the present application;
图8为本申请实施例提供的另一种话术推荐装置的框图;FIG8 is a block diagram of another speech recommendation device provided in an embodiment of the present application;
图9为本申请实施例提供的一种计算设备的结构示意图;FIG9 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
图10为本申请实施例提供的一种计算设备集群的结构示意图;FIG10 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
图11为本申请实施例提供的另一种计算设备集群的结构示意图。FIG. 11 is a schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application.
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
本申请的说明书实施例和权利要求书及附图中的术语“第一”、“第二”等仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元。方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", etc. in the specification embodiments, claims, and drawings of the present application are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product, or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And/or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and/or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character "/" generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
请参考图1,图1为本申请实施例提供的一种话术推荐系统的结构示意图,该系统可以是对内服务的产品形态,也可以用于商用话术辅助。该系统包括:在线服务模块、数据管理模块、模型管理模块以及标注模块。其中,数据管理模块用于将本申请实施例中所用到的数据进行集中管理,其可以包括实时数据存储子模块和离线数据存储子模块。在线服务模块可以由其他系统集成,其用于提供在线应用程序编程接口(application programming interface,API)以服务于话术推荐服务,并将话术推荐过程中的实时数据存储至实时数据存储子模块。例如当本申请实施例通过模型进行话术推荐时,在线服务模块可以提供在线服务API以服务于部署的模型。模型管理模块用于设计模型算法,并使用训练数据进行模型训练和模型部署。示例地,其可以包括语言模型管理子模块、大模型管理子模块以及向量数据管理子模块等。标注模块用于对选择的语料数据进行标注。Please refer to Figure 1, which is a structural diagram of a speech recommendation system provided in an embodiment of the present application. The system can be a product form for internal services, and can also be used for commercial speech assistance. The system includes: an online service module, a data management module, a model management module, and an annotation module. Among them, the data management module is used to centrally manage the data used in the embodiment of the present application, and it can include a real-time data storage submodule and an offline data storage submodule. The online service module can be integrated by other systems, which is used to provide an online application programming interface (application programming interface, API) to serve the speech recommendation service, and store the real-time data in the speech recommendation process to the real-time data storage submodule. For example, when the embodiment of the present application recommends speech through a model, the online service module can provide an online service API to serve the deployed model. The model management module is used to design a model algorithm, and use training data for model training and model deployment. For example, it can include a language model management submodule, a large model management submodule, and a vector data management submodule. The annotation module is used to annotate the selected corpus data.
需要说明的是,图1所示系统的结构仅为示例性说明,其结构所包括的模块可以基于本申请实施例提供的话术推荐方法确定,本申请实施例对此不做限定。It should be noted that the structure of the system shown in FIG. 1 is for exemplary purposes only, and the modules included in the structure can be determined based on the speech recommendation method provided in the embodiment of the present application, and the embodiment of the present application does not limit this.
本申请实施例提供了一种话术推荐方法,该方法可以用于对服务人员进行话术的辅助推荐,也可以用于客户支持的场景中,服务人员可以包括销售人员或者客服等。请参考图2,图2为本申请实施例提供的一种话术推荐方法的流程示意图,可以应用于话术推荐系统,例如图1所示的话术推荐系统。该方法可以包括以下过程:The present application embodiment provides a method for recommending speech skills, which can be used to assist service personnel in recommending speech skills, and can also be used in customer support scenarios. Service personnel can include sales personnel or customer service personnel. Please refer to Figure 2, which is a flow chart of a method for recommending speech skills provided by the present application embodiment, which can be applied to a speech skill recommendation system, such as the speech skill recommendation system shown in Figure 1. The method can include the following process:
101、确定目标对话中第一客户的特征信息和第一服务人员的特征信息,目标对话为第一客户和第一服务人员的对话。101. Determine characteristic information of a first customer and characteristic information of a first service staff in a target dialogue, where the target dialogue is a dialogue between the first customer and the first service staff.
第一客户和第一服务人员处于沟通场景中。第一客户的特征信息可以从第一客户的客户画像库中获取,其可以包括以下至少一项:身份信息、场景状态、行为记录、业务信息等。其中,身份信息例如可以包括以下至少一项:Vx(例如V1、V2、V3等)会员和服务人员对客户的定制化标签(例如头部客户和专精特新等)等。场景状态例如可以包括以下至少一项:活动偏好、建联情况和回访情况等。行为记录可以包括:服务访问偏好(例如云服务访问偏好)。业务信息可以包括以下至少一项:服务人员对第一客户的分组、云服务使用情况以及退订情况等。The first customer and the first service staff are in a communication scenario. The characteristic information of the first customer can be obtained from the customer portrait library of the first customer, which may include at least one of the following: identity information, scenario status, behavior records, business information, etc. Among them, the identity information may include, for example, at least one of the following: Vx (such as V1, V2, V3, etc.) members and customized labels of customers by service staff (such as top customers and specialization, etc.). The scenario status may include, for example, at least one of the following: activity preferences, connection status, and return visit status. Behavior records may include: service access preferences (such as cloud service access preferences). Business information may include at least one of the following: grouping of the first customer by the service staff, cloud service usage, and cancellation status, etc.
第一服务人员的特征信息可以从第一服务人员的服务画像库获取,以第一服务人员为销售人员为例, 第一服务人员的特征信息是服务人员的能力属性字段和标签的集合,用于刻画服务人员的能力。其可以包括以下至少一项:第一服务人员的能力等级、第一服务人员的业务团队、第一服务人员的销售状态、第一服务人员的销售历史等。其中,能力等级例如可以包括以下至少一项:初级、中级、以及高级,第一服务人员的能力等级越高,第一服务人员的销售能力越高。业务团队例如可以包括:拓新团队和/或存量团队等。销售状态例如可以包括:客户满意度和/或擅长行业等。销售历史例如可以包括以下至少一项:成单客户数、成单云服务数、成单总金额和累计呼叫总时长等。前述特征信息仅为示例性说明,并不构成限定。The characteristic information of the first service personnel can be obtained from the service portrait library of the first service personnel. For example, the first service personnel is a salesperson. The characteristic information of the first service personnel is a collection of the service personnel's capability attribute fields and labels, which is used to characterize the service personnel's capabilities. It may include at least one of the following: the capability level of the first service personnel, the business team of the first service personnel, the sales status of the first service personnel, the sales history of the first service personnel, etc. Among them, the capability level may, for example, include at least one of the following: elementary, intermediate, and advanced. The higher the capability level of the first service personnel, the higher the sales capability of the first service personnel. The business team may, for example, include: a new development team and/or an existing team, etc. The sales status may, for example, include: customer satisfaction and/or industry expertise, etc. The sales history may, for example, include at least one of the following: the number of customers who have completed orders, the number of cloud services that have completed orders, the total amount of orders, and the total cumulative call duration, etc. The aforementioned characteristic information is only for illustrative purposes and does not constitute a limitation.
示例地,还可以基于第一客户的特征信息和第一服务人员的特征信息,确定第一客户的至少一个偏好产品。在一种示例中,可以将第一客户的特征信息和第一服务人员的特征信息输入第一模型,得到第一模型输出的第一客户的至少一个偏好产品。如图1所示,可以通过在线服务模块调用第一模型。第一模型是通过第一训练数据训练得到的,第一训练数据包括:第二客户的特征信息、第二服务人员的特征信息以及第二客户的历史成交产品。其中,第二客户的特征信息可以表示为<C-Tags′>(custom tags),第二服务人员的特征信息可以表示为<S-Tags′>(salesperson tags),第二客户的历史成交产品可以表示为<P-list′>(product list)。For example, at least one preferred product of the first customer can also be determined based on the characteristic information of the first customer and the characteristic information of the first service staff. In one example, the characteristic information of the first customer and the characteristic information of the first service staff can be input into the first model to obtain at least one preferred product of the first customer output by the first model. As shown in Figure 1, the first model can be called through the online service module. The first model is obtained by training with the first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service staff, and the historical transaction products of the second customer. Among them, the characteristic information of the second customer can be expressed as <C-Tags′> (custom tags), the characteristic information of the second service staff can be expressed as <S-Tags′> (salesperson tags), and the historical transaction products of the second customer can be expressed as <P-list′> (product list).
第二客户与第二服务人员为之前存在沟通的人员,历史成交产品指的是第二客户通过和第二服务人员的沟通所购买的产品列表。需要说明的是,第二客户与第二服务人员并非特指,将一个第二客户与一个第二服务人员视为一个组合,该组合的数量为多个。第一训练数据包括多个组合分别对应的数据,即第一训练数据包括多组如下数据:<C-Tags′>,<S-Tags′>,<P-list′>。The second customer and the second service staff are persons who have communicated with each other before, and the historical transaction products refer to the list of products purchased by the second customer through communication with the second service staff. It should be noted that the second customer and the second service staff are not specific, and a second customer and a second service staff are regarded as a combination, and the number of such combinations is multiple. The first training data includes data corresponding to multiple combinations, that is, the first training data includes multiple groups of the following data: <C-Tags′>, <S-Tags′>, <P-list′>.
在另一种示例中,可以根据第一向量数据在第一数据库(例如第一向量数据库)中进行向量检索,得到向量召回的第一客户的至少一个偏好产品,第一向量数据包括第一客户的特征信息的向量和第一服务人员的特征信息的向量。第一数据库中可以存储有第一训练数据对应的向量数据,基于存储的向量数据进行向量检索。第一训练数据对应的向量数据包括多组如下数据:<C-Tags′>的向量,<S-Tags′>的向量,<P-list′>的向量。In another example, a vector search can be performed in a first database (e.g., a first vector database) based on the first vector data to obtain at least one preferred product of the first customer recalled by the vector, and the first vector data includes a vector of feature information of the first customer and a vector of feature information of the first service personnel. The first database may store vector data corresponding to the first training data, and a vector search is performed based on the stored vector data. The vector data corresponding to the first training data includes multiple groups of the following data: a vector of <C-Tags′>, a vector of <S-Tags′>, and a vector of <P-list′>.
在又一种示例中,可以将前述两种示例进行加权处理。将第一客户的特征信息和第一服务人员的特征信息输入第一模型,得到第一模型输出的第一模型输出结果。根据第一向量数据在第一数据库中进行向量检索,得到第一向量召回结果。之后将第一模型输出结果和第一向量召回结果进行加权处理,得到第一客户的至少一个偏好产品。将模型输出结果和向量检索结果进行加权处理,可以有效减小数据冷启动或者模型误差所导致的第一客户的至少一个偏好产品的误差。In another example, the two examples described above can be weighted. The feature information of the first customer and the feature information of the first service personnel are input into the first model to obtain the first model output result of the first model output. A vector search is performed in the first database based on the first vector data to obtain a first vector recall result. The first model output result and the first vector recall result are then weighted to obtain at least one preferred product of the first customer. Weighting the model output result and the vector retrieval result can effectively reduce the error of at least one preferred product of the first customer caused by data cold start or model error.
如图1所示,在线服务模块可以将第一客户的特征信息、第一服务人员的特征信息以及确定的第一客户的至少一个偏好产品存储至实时数据存储子模块。As shown in FIG. 1 , the online service module may store the characteristic information of the first customer, the characteristic information of the first service personnel, and at least one determined preferred product of the first customer in the real-time data storage submodule.
102、解析目标对话的对话数据,以确定目标对话对应的业务场景意图,对话数据包括目标对话的对话上下文。102. Parse the conversation data of the target conversation to determine the business scenario intention corresponding to the target conversation, the conversation data including the conversation context of the target conversation.
业务场景意图可以包括:业务场景标签和/或意图标签。业务场景标签可以包括销售场景标签或异议场景标签,销售场景标签包括但不限于:促单、续费、销售转接、合同或非云服务等,异议场景标签包括但不限于:价格、友商产品对比或投诉等。第一客户与第一服务人员的意图标签可以指第一客户意向的实体和关注点等。Business scenario intent may include: business scenario tags and/or intent tags. Business scenario tags may include sales scenario tags or objection scenario tags. Sales scenario tags include but are not limited to: order promotion, renewal, sales transfer, contract or non-cloud services, etc. Objection scenario tags include but are not limited to: price, comparison of friendly products or complaints, etc. The intent tags of the first customer and the first service staff may refer to the entities and concerns of the first customer's intentions, etc.
示例地,可以从目标对话的对话文本中获取预设数量的连续对话文本,得到对话数据。例如可以通过动态窗口限定范围,从目标对话的对话文本中获取预设数量的连续对话文本,得到对话数据。通过滚动窗口方式获取对话数据能够实现实时的业务场景意图识别,这样可以最大化复用一通对话中的多轮信息,并能够持续纠正,具有较高的准确性和稳定性。For example, a preset number of continuous conversation texts can be obtained from the conversation text of the target conversation to obtain conversation data. For example, a preset number of continuous conversation texts can be obtained from the conversation text of the target conversation by limiting the range through a dynamic window to obtain conversation data. Acquiring conversation data by rolling window mode can realize real-time business scenario intention recognition, which can maximize the reuse of multiple rounds of information in a conversation, and can continuously correct, with high accuracy and stability.
若第一客户与第一服务人员是通过语音进行对话的,即目标对话是语音数据,则可以先将目标对话转换为对话文本,再基于对话文本得到对话数据。示例地,可以通过自动语音识别(automatic speech recognition,ASR)技术将目标对话转换为对话文本。If the first customer and the first service personnel have a conversation via voice, that is, the target conversation is voice data, the target conversation can be first converted into a conversation text, and then the conversation data can be obtained based on the conversation text. For example, the target conversation can be converted into a conversation text by automatic speech recognition (ASR) technology.
在一种示例中,可以将第一客户与第一服务人员的对话数据输入第二模型,得到第二模型输出的目标对话对应的业务场景意图。如图1所示,可以通过在线服务模块调用第二模型。第二模型是通过第二训练数据训练得到的,第二训练数据包括:第三客户与第三服务人员的历史对话的历史对话数据以及历史对话对应的业务场景意图。业务场景意图的具体内容可以参考前述说明,本申请实施例在此不做赘述。In one example, the conversation data between the first customer and the first service personnel can be input into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model. As shown in Figure 1, the second model can be called through the online service module. The second model is obtained by training with the second training data, and the second training data includes: the historical conversation data of the historical conversation between the third customer and the third service personnel and the business scenario intention corresponding to the historical conversation. The specific content of the business scenario intention can be referred to the above description, and the embodiments of the present application will not be repeated here.
参考前述过程101的第一训练数据的说明,第三客户与第三服务人员并非特指,将一个第三客户与一个第三服务人员视为一个组合,该组合的数量为多个。存在多个第三客户与第三服务人员的组合,第二训 练数据包括多个组合各自的历史对话的历史对话数据以及每个历史对话分别对应的业务场景意图。Referring to the description of the first training data in the aforementioned process 101, the third customer and the third service personnel are not specific, and a third customer and a third service personnel are regarded as a combination, and the number of such combinations is multiple. The training data includes historical conversation data of multiple combinations of historical conversations and the business scenario intentions corresponding to each historical conversation.
在另一种示例中,可以根据第二向量数据在第二数据库(例如第二向量数据库)中进行向量检索,得到向量召回的目标对话对应的业务场景意图,第二向量数据包括第一客户与第一服务人员的对话数据的向量。第二数据库中可以存储有第二训练数据对应的向量数据,基于第二训练数据对应的向量数据进行向量检索。第二训练数据对应的向量数据包括多组如下数据:历史对话数据的向量以及历史对话对应的业务场景意图的向量。In another example, vector retrieval can be performed in a second database (e.g., a second vector database) based on the second vector data to obtain the business scenario intent corresponding to the target conversation recalled by the vector, and the second vector data includes the vector of the conversation data between the first customer and the first service personnel. The second database may store vector data corresponding to the second training data, and vector retrieval is performed based on the vector data corresponding to the second training data. The vector data corresponding to the second training data includes multiple groups of the following data: vectors of historical conversation data and vectors of business scenario intent corresponding to historical conversations.
在又一种示例中,可以将前述两种示例进行加权处理。将第一客户与第一服务人员的对话数据输入第二模型,得到第二模型输出的第二模型输出结果。根据第二向量数据在第二数据库中进行向量检索,得到第二向量召回结果。之后加权处理第二模型输出结果和第二向量召回结果,得到目标对话对应的业务场景意图。将模型输出结果和向量检索结果进行加权处理,可以有效减小数据冷启动或者模型误差所导致的目标对话对应的业务场景意图的误差。In another example, the two examples described above can be weighted. The conversation data between the first customer and the first service personnel is input into the second model to obtain the second model output result output by the second model. A vector search is performed in the second database based on the second vector data to obtain a second vector recall result. The second model output result and the second vector recall result are then weighted to obtain the business scenario intent corresponding to the target conversation. Weighted processing of the model output result and the vector retrieval result can effectively reduce the error in the business scenario intent corresponding to the target conversation caused by data cold start or model error.
如图1所示,第一客户与第一服务人员的对话数据可以存储在实时数据存储子模块中。在线服务模块可以将确定的目标对话对应的业务场景意图存储至实时数据存储子模块中。As shown in Figure 1, the conversation data between the first customer and the first service personnel can be stored in the real-time data storage submodule. The online service module can store the business scenario intention corresponding to the determined target conversation in the real-time data storage submodule.
示例地,还可以针对该对话数据进行关键词抽取,得到第一关键词组(Words)。再基于对话数据和第一关键词组,确定目标对话对应的业务场景意图。第一关键词组可以是对第一客户与第一服务人员的对话数据进行关键词抽取得到的,第一关键词组可以包括与业务相关、产品相关词以及实体等。关键词抽取过程可以结合预先建立的关键词库进行。For example, keyword extraction can also be performed on the conversation data to obtain a first keyword group (Words). Based on the conversation data and the first keyword group, the business scenario intention corresponding to the target conversation is determined. The first keyword group can be obtained by keyword extraction of the conversation data between the first customer and the first service personnel. The first keyword group can include business-related, product-related words and entities. The keyword extraction process can be performed in conjunction with a pre-established keyword library.
此时前述示例中,可以将对话数据和第一关键词组输入第二模型,得到第二模型输出的目标对话对应的业务场景意图。第二训练数据还包括:第二关键词组,第二关键词组是对历史对话数据进行关键词抽取得到的。第二向量数据还包括:第二关键词组的向量。第二训练数据对应的向量数据包括多组如下数据:历史对话数据的向量、第二关键词组的向量以及历史对话对应的业务场景意图的向量。At this time, in the above example, the conversation data and the first keyword group can be input into the second model to obtain the business scenario intent corresponding to the target conversation output by the second model. The second training data also includes: a second keyword group, which is obtained by keyword extraction of historical conversation data. The second vector data also includes: a vector of the second keyword group. The vector data corresponding to the second training data includes multiple groups of the following data: a vector of historical conversation data, a vector of the second keyword group, and a vector of the business scenario intent corresponding to the historical conversation.
103、基于目标数据得到推荐话术,目标数据包括:第一客户的特征信息、第一服务人员的特征信息以及目标对话对应的业务场景意图,推荐话术为用于回复第一客户的可选话术。103. Obtain recommended words of speech based on the target data, where the target data includes: characteristic information of the first customer, characteristic information of the first service personnel, and business scenario intention corresponding to the target conversation, and the recommended words of speech are optional words of speech for replying to the first customer.
如图1所示,目标数据可以存储在实时数据存储子模块中。目标数据包括的各个数据的解释可以参考前述过程101和102,本申请实施例在此不做赘述。As shown in Figure 1, the target data may be stored in the real-time data storage submodule. The explanation of each data included in the target data may refer to the aforementioned processes 101 and 102, and the present embodiment will not be described in detail here.
推荐话术例如可以包括:对客户提出的问题的解答、介绍产品的话术、对客户提出的异议的解决方案、推荐产品相关的营销活动等。Recommendation scripts may include, for example: answers to questions raised by customers, scripts to introduce products, solutions to objections raised by customers, and marketing activities related to recommended products.
示例地,对于特征信息不同的服务人员,推荐话术也满足不同的特征。以介绍产品的话术为例,第一服务人员的推荐话术为介绍第一产品的话术,第一产品的数量为至少一个。第一产品满足以下至少一种特征:第一产品对应第一服务人员的能力等级、第一产品属于第一服务人员的业务团队、第一服务人员历史销售第一产品获得的客户满意度大于第一预设阈值、第一产品属于第一服务人员的擅长行业、第一服务人员对第一产品的销售历史成单数大于第二预设阈值。For example, for service personnel with different characteristic information, the recommended words also meet different characteristics. Taking the words introducing products as an example, the recommended words of the first service personnel are words introducing the first product, and the number of the first product is at least one. The first product meets at least one of the following characteristics: the first product corresponds to the ability level of the first service personnel, the first product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the first product is greater than the first preset threshold, the first product belongs to the industry that the first service personnel is good at, and the number of sales history of the first product by the first service personnel is greater than the second preset threshold.
示例地,目标数据还可以包括以下至少一项:第一客户与第一服务人员的对话数据、前述过程101得到的至少一个偏好产品、第一关键词组(Words)。第一关键词组可以是对第一客户与第一服务人员的对话数据进行关键词抽取得到的,第一关键词组可以包括与业务相关、产品相关词以及实体等。关键词抽取过程可以结合预先建立的关键词库进行。For example, the target data may also include at least one of the following: conversation data between the first customer and the first service personnel, at least one preferred product obtained in the aforementioned process 101, and a first keyword group (Words). The first keyword group may be obtained by extracting keywords from the conversation data between the first customer and the first service personnel, and the first keyword group may include business-related, product-related words and entities, etc. The keyword extraction process may be performed in conjunction with a pre-established keyword library.
在一种示例中,可以将目标数据输入第三模型,得到第三模型输出的推荐话术。如图1所示,可以通过在线服务模块调用第三模型。第三模型是通过第三训练数据训练得到的,第三训练数据包括:第四客户的特征信息、第四服务人员的特征信息、第四客户与第四服务人员的历史对话对应的业务场景意图以及预设话术。In one example, the target data can be input into the third model to obtain the recommended words output by the third model. As shown in FIG1 , the third model can be called through the online service module. The third model is obtained by training with third training data, and the third training data includes: feature information of the fourth customer, feature information of the fourth service personnel, business scenario intentions corresponding to the historical conversations between the fourth customer and the fourth service personnel, and preset words.
示例地,对于特征信息不同的服务人员,预设话术也满足不同的特征。以介绍产品的预设话术为例,第四服务人员的预设话术为介绍第二产品的话术。第二产品满足以下至少一种特征:第二产品对应第四服务人员的能力等级、第二产品属于第四服务人员的业务团队、第四服务人员历史销售第二产品获得的客户满意度大于第一预设阈值、第二产品属于第四服务人员的擅长行业、第四服务人员对第二产品的销售历史成单数大于第二预设阈值。For example, for service personnel with different characteristic information, the preset words also meet different characteristics. Taking the preset words for introducing products as an example, the preset words for the fourth service personnel are words for introducing the second product. The second product meets at least one of the following characteristics: the second product corresponds to the ability level of the fourth service personnel, the second product belongs to the business team of the fourth service personnel, the customer satisfaction obtained by the fourth service personnel in the history of selling the second product is greater than the first preset threshold, the second product belongs to the industry that the fourth service personnel is good at, and the number of sales history of the second product by the fourth service personnel is greater than the second preset threshold.
第三训练数据中除预设话术之外的数据与目标数据中的数据一一对应,第三训练数据还可以包括以下至少一项:历史对话数据、第四客户的历史成交产品、第二关键词组(Words′)。第二关键词组是对历史对话数据进行关键词抽取得到的。例如当第三训练数据还包括历史对话数据时,目标数据还包括第一客户 与第一服务人员的对话数据。当第三训练数据还包括第二客户的历史成交产品时,目标数据还包括第一客户的至少一个偏好产品。当第三训练数据还包括第二关键词组时,目标数据还包括第一关键词组。The data in the third training data other than the preset words correspond to the data in the target data one by one. The third training data may also include at least one of the following: historical conversation data, historical transaction products of the fourth customer, and a second keyword group (Words'). The second keyword group is obtained by extracting keywords from the historical conversation data. For example, when the third training data also includes historical conversation data, the target data also includes the first customer The target data also includes at least one preferred product of the first customer. When the third training data also includes the second keyword group, the target data also includes the first keyword group.
第三训练数据包括的各个数据的解释可以参考前述过程101和102,本申请实施例在此不做赘述。参考前述过程101的第一训练数据的说明,存在多个第四客户与第四服务人员的组合,第三训练数据包括多个组合分别对应的数据。以第三训练数据还包括:历史对话数据、第四客户的历史成交产品以及第二关键词组(Words′)为例,第三训练数据包括多组如下数据:<C-Tags′>,<S-Tags′>,<P-list′>,历史对话数据,历史对话对应的业务场景意图,Words′,预设话术。The explanation of each data included in the third training data can refer to the aforementioned processes 101 and 102, and the embodiments of the present application will not be repeated here. Referring to the description of the first training data of the aforementioned process 101, there are multiple combinations of fourth customers and fourth service personnel, and the third training data includes data corresponding to the multiple combinations. Taking the third training data also including: historical conversation data, historical transaction products of the fourth customer, and the second keyword group (Words′) as an example, the third training data includes multiple groups of the following data: <C-Tags′>, <S-Tags′>, <P-list′>, historical conversation data, business scenario intentions corresponding to historical conversations, Words′, and preset words.
在另一种示例中,可以根据第三向量数据在第三数据库(例如第三向量数据库)中进行向量检索,得到向量召回的推荐话术。第三向量数据包括目标数据的向量,即包括:第一客户的特征信息的向量、第一服务人员的特征信息的向量以及目标对话对应的业务场景意图的向量。第三数据库中可以存储有第三训练数据对应的向量数据,基于第三训练数据对应的向量数据进行向量检索。第三训练数据对应的向量数据包括多组如下数据:<C-Tags′>的向量,<S-Tags′>的向量,历史对话对应的业务场景意图的向量,预设话术。In another example, vector retrieval can be performed in a third database (e.g., a third vector database) based on the third vector data to obtain recommended words for vector recall. The third vector data includes a vector of the target data, namely, a vector of the feature information of the first customer, a vector of the feature information of the first service personnel, and a vector of the business scenario intention corresponding to the target conversation. The third database may store vector data corresponding to the third training data, and vector retrieval is performed based on the vector data corresponding to the third training data. The vector data corresponding to the third training data includes multiple groups of the following data: vectors of <C-Tags′>, vectors of <S-Tags′>, vectors of business scenario intentions corresponding to historical conversations, and preset words.
以第三训练数据还包括:历史对话数据、第四客户的历史成交产品以及第二关键词组(Words′)为例,第三训练数据对应的向量数据包括多组如下数据:<C-Tags′>的向量,<S-Tags′>的向量,<P-list′>的向量,历史对话数据的向量,历史对话对应的业务场景意图的向量,Words′的向量以及预设话术。第三向量数据包括:第一客户的特征信息的向量、第一服务人员的特征信息的向量、第一客户的至少一个偏好产品的向量、对话数据的向量、目标对话对应的业务场景意图的向量以及第一关键词组的向量。Taking the third training data also including: historical conversation data, historical transaction products of the fourth customer, and the second keyword group (Words′) as an example, the vector data corresponding to the third training data includes multiple groups of the following data: vector of <C-Tags′>, vector of <S-Tags′>, vector of <P-list′>, vector of historical conversation data, vector of business scenario intention corresponding to historical conversations, vector of Words′, and preset words. The third vector data includes: vector of feature information of the first customer, vector of feature information of the first service staff, vector of at least one preferred product of the first customer, vector of conversation data, vector of business scenario intention corresponding to the target conversation, and vector of the first keyword group.
在又一种示例中,可以将前述两种示例进行加权处理。将目标数据输入第三模型,得到第三模型输出的第三模型输出结果。根据第三向量数据在第三数据库中进行向量检索,得到第三向量召回结果。之后加权处理第三模型输出结果和第三向量召回结果,得到推荐话术。将模型输出结果和向量检索结果进行加权处理,可以有效减小数据冷启动或者模型误差所导致的推荐话术的误差。In another example, the two examples described above can be weighted. The target data is input into the third model to obtain the third model output result output by the third model. A vector search is performed in the third database according to the third vector data to obtain a third vector recall result. The third model output result and the third vector recall result are then weighted to obtain a recommended speech. Weighting the model output result and the vector retrieval result can effectively reduce the error of the recommended speech caused by data cold start or model error.
104、提供推荐话术展示界面,推荐话术展示界面用于展示推荐话术。104. Provide a recommended script display interface, which is used to display recommended scripts.
推荐话术的数量为至少一个,第一服务人员可以选择是否点击某一个推荐话术回复第一客户。The number of recommended scripts is at least one, and the first service staff can choose whether to click on a recommended script to reply to the first customer.
综上所述,本申请实施例提供的话术推荐方法,首先确定目标对话中第一客户的特征信息和第一服务人员的特征信息,并解析目标对话的对话数据,以确定目标对话对应的业务场景意图,之后基于目标数据得到推荐话术并提供推荐话术展示界面,推荐话术展示界面用于展示推荐话术,目标数据包括:第一客户的特征信息、第一服务人员的特征信息以及目标对话对应的业务场景意图,推荐话术为用于回复第一客户的可选话术,该方法同时结合客户特征信息和服务人员的特征信息,相较于相关技术,能够更加有效的贴合服务人员和客户的个性特性进行话术推荐的辅助,并且综合使用动态参数(对话文本)以及静态参数(第一客户的特征信息和第一服务人员的特征信息)进行话术推荐,相较于相关技术,能够有效提高话术推荐的准确性和相关性,从而辅助服务人员完成高效率的服务。In summary, the method for recommending words of speech provided in the embodiment of the present application first determines the characteristic information of the first customer and the characteristic information of the first service personnel in the target conversation, and parses the conversation data of the target conversation to determine the business scenario intention corresponding to the target conversation, and then obtains the recommended words of speech based on the target data and provides a recommended words of speech display interface, which is used to display the recommended words of speech, and the target data includes: the characteristic information of the first customer, the characteristic information of the first service personnel and the business scenario intention corresponding to the target conversation, and the recommended words of speech are optional words for replying to the first customer, and the method combines the characteristic information of the customer and the characteristic information of the service personnel at the same time, and compared with the related technology, it can more effectively fit the personality characteristics of the service personnel and the customer to assist in the recommendation of words of speech, and comprehensively uses dynamic parameters (conversation text) and static parameters (characteristic information of the first customer and characteristic information of the first service personnel) to recommend words of speech, and compared with the related technology, it can effectively improve the accuracy and relevance of the word of speech recommendation, thereby assisting the service personnel to complete efficient services.
以下对通过模型进行话术推荐的流程进行说明,并以目标数据包括:第一客户的特征信息、第一服务人员的特征信息、第一客户的至少一个偏好产品、第一客户与第一服务人员的对话数据、目标对话对应的业务场景意图以及第一关键词组为例进行说明。该流程包括模型训练过程和模型推荐过程。请参考图3,图3为本申请实施例提供的一种模型训练方法的流程示意图。该方法可以应用于话术推荐系统,例如图1所示的话术推荐系统。如图3所示,该方法可以包括以下过程:The following is an explanation of the process of recommending speech through the model, and takes the target data including: characteristic information of the first customer, characteristic information of the first service staff, at least one preferred product of the first customer, conversation data between the first customer and the first service staff, business scenario intention corresponding to the target conversation, and the first keyword group as an example. The process includes a model training process and a model recommendation process. Please refer to Figure 3, which is a flow chart of a model training method provided in an embodiment of the present application. The method can be applied to a speech recommendation system, such as the speech recommendation system shown in Figure 1. As shown in Figure 3, the method may include the following process:
201、通过第一训练数据训练第一初始模型,得到第一模型,第一训练数据包括:第二客户的特征信息、第二服务人员的特征信息以及第二客户的历史成交产品。201. Train a first initial model using first training data to obtain a first model, where the first training data includes: feature information of a second customer, feature information of a second service personnel, and historical transaction products of the second customer.
其中,第二客户的特征信息可以从第二客户的客户画像库中获取,第二服务人员的特征信息可以从第二服务人员的服务画像库获取,第二客户的特征信息和第二服务人员的特征信息的解释可以分别参考前述过程101中的第一客户的特征信息和第一服务人员的特征信息,本申请实施例在此不做赘述。Among them, the characteristic information of the second customer can be obtained from the customer portrait library of the second customer, and the characteristic information of the second service personnel can be obtained from the service portrait library of the second service personnel. The interpretation of the characteristic information of the second customer and the characteristic information of the second service personnel can refer to the characteristic information of the first customer and the characteristic information of the first service personnel in the aforementioned process 101 respectively, and the embodiments of the present application are not elaborated here.
第一模型按照其功能可以称为偏好度模型。该过程201以成功销售作为目标训练得到第一模型,训练得到的第一模型的输入为客户的特征信息和服务人员的特征信息,输出为客户的至少一个偏好产品。第一训练数据可以视为客户、销售、客户对产品的满意度和成交结果最大化的矩阵。第一训练数据可以包括多组如下数据:<C-Tags′>,<S-Tags′>,<P-list′>。The first model can be called a preference model according to its function. The process 201 trains the first model with successful sales as the goal. The input of the trained first model is the characteristic information of the customer and the characteristic information of the service personnel, and the output is at least one preferred product of the customer. The first training data can be regarded as a matrix of customers, sales, customer satisfaction with the product and transaction results. The first training data may include multiple groups of the following data: <C-Tags′>, <S-Tags′>, <P-list′>.
如图1所示,第二客户的客户画像库、第二服务人员的服务画像库以及第二客户的历史成交产品可以存储在离线数据存储子模块中。模型训练算法的设计以及模型训练的过程可以由模型管理模块执行。示例地,模型训练算法包括但不限于:协同过滤(collaborative filtering,CF)算法和深度因子分解机(deep factorization machines,DeepFM)算法等,本申请实施例对模型训练算法不做限定。As shown in FIG1 , the customer profile library of the second customer, the service profile library of the second service personnel, and the historical transaction products of the second customer can be stored in the offline data storage submodule. The design of the model training algorithm and the model training process can be performed by the model management module. For example, the model training algorithm includes but is not limited to: collaborative filtering (CF) algorithm and deep factor decomposition machine (deep factorization machines, DeepFM) algorithms, etc. The embodiments of the present application do not limit the model training algorithm.
202、通过第二训练数据训练第二初始模型,得到第二模型,第二训练数据包括:第三客户与第三服务人员的历史对话的历史对话数据以及历史对话对应的业务场景意图。202. Train a second initial model using second training data to obtain a second model, where the second training data includes: historical conversation data of historical conversations between a third customer and a third service personnel and business scenario intentions corresponding to the historical conversations.
示例地,可以从第三客户与第三服务人员的历史对话的对话文本中获取预设数量的连续对话文本,得到历史对话数据,从而建设语料库。例如可以通过动态窗口限定范围,从第三客户与第三服务人员的对话文本中取预设数量的连续对话文本,得到历史对话数据。通过滚动窗口式获取对话文本可以最大化复用一通对话中的多轮信息,并能够持续纠正,能够提高第二模型的输出准确性和稳定性。如图1所示,语料库可以位于离线数据存储子模块中。For example, a preset number of continuous dialogue texts can be obtained from the dialogue texts of the historical dialogues between the third customer and the third service personnel to obtain historical dialogue data, thereby constructing a corpus. For example, a preset number of continuous dialogue texts can be obtained from the dialogue texts between the third customer and the third service personnel through a dynamic window limitation range to obtain historical dialogue data. Acquiring dialogue texts in a rolling window manner can maximize the reuse of multiple rounds of information in a dialogue, and can continuously correct, which can improve the output accuracy and stability of the second model. As shown in FIG1 , the corpus can be located in the offline data storage submodule.
历史对话对应的业务场景意图包括:历史对话对应的业务场景标签和/或意图标签,其解释可以参考前述过程102中的目标对话对应的业务场景意图,本申请实施例在此不做赘述。The business scenario intention corresponding to the historical conversation includes: the business scenario label and/or intention label corresponding to the historical conversation, and its explanation can refer to the business scenario intention corresponding to the target conversation in the aforementioned process 102, and the embodiment of the present application will not be elaborated here.
本申请实施例中,可以建立预设业务场景标签和预设意图标签,从预设业务场景标签和预设意图标签中选择业务场景标签和/或意图标签,并将历史对话对应的业务场景意图标注为选择的业务场景标签和/或意图标签。选择业务场景标签和/或意图标签的过程可以由人工通过图1所示的标注模块执行,本申请实施例对此不做限定。In the embodiment of the present application, a preset business scenario label and a preset intention label can be established, a business scenario label and/or an intention label can be selected from the preset business scenario labels and the preset intention labels, and the business scenario intention corresponding to the historical conversation is marked as the selected business scenario label and/or intention label. The process of selecting a business scenario label and/or an intention label can be performed manually through the marking module shown in FIG1, and the embodiment of the present application does not limit this.
业务场景标签的数量为一个或多个,意图标签的数量为一个或多个。示例地,可以基于业务场景预置和标记收集整理等方式建立业务场景标签和意图标签。业务场景标签和意图标签可以根据实际进行更新,本申请实施例对此不做限定。The number of business scenario tags is one or more, and the number of intent tags is one or more. For example, business scenario tags and intent tags can be established based on business scenario presetting and tag collection and collation. Business scenario tags and intent tags can be updated according to actual conditions, and this embodiment of the application does not limit this.
第二模型按照其功能可以称为场景意图分类模型,训练得到的第二模型的输入为客户与服务人员的对话数据,输出为对话对应的业务场景意图。第二训练数据可以包括多组如下数据:<Text,Intent>,Text(文本)表示历史对话数据,其具体结构为{“句子1<tos>句子2<tos>……句子n”},<tos>为特定分隔符,用于分割不同句子。Intent(意图)表示历史对话对应的业务场景意图。需要说明的是,第二训练数据包括的多组数据与第一训练数据包括的多组数据可以是一一对应的,也可以不完全对应,本申请实施例对此不做限定。这里的对应指的是第二训练数据与第一训练数据中,相同组合的客户与服务人员的数据对应。例如以客户A1和服务人员A2为例,第一训练数据中的A1-A2相关数据与第二训练数据中的A1-A2相关数据对应,第一训练数据中的A1-A2相关数据包括:A1的特征信息、A2的特征信息以及A2的历史成交产品,第二训练数据中的A1-A2相关数据包括:A1与A2的历史对话数据以及A1与A2的历史对话对应的业务场景意图。The second model can be called a scenario intent classification model according to its function. The input of the trained second model is the conversation data between the customer and the service personnel, and the output is the business scenario intent corresponding to the conversation. The second training data may include multiple groups of the following data: <Text, Intent>, Text (text) represents the historical conversation data, and its specific structure is {"sentence 1 <tos> sentence 2 <tos>... sentence n"}, <tos> is a specific separator used to separate different sentences. Intent (intent) represents the business scenario intent corresponding to the historical conversation. It should be noted that the multiple groups of data included in the second training data may correspond one-to-one to the multiple groups of data included in the first training data, or may not completely correspond, and the embodiments of the present application do not limit this. The correspondence here refers to the correspondence between the data of the same combination of customers and service personnel in the second training data and the first training data. For example, taking customer A1 and service staff A2 as an example, the A1-A2 related data in the first training data corresponds to the A1-A2 related data in the second training data. The A1-A2 related data in the first training data includes: A1's feature information, A2's feature information and A2's historical transaction products. The A1-A2 related data in the second training data includes: A1 and A2's historical conversation data and the business scenario intentions corresponding to the historical conversations between A1 and A2.
该过程202中将业务场景标签和意图标签利用同一个模型输出,可以理解的是,也可以训练得到两个模型(业务场景模型和意图模型)分别用于输出业务场景和意图。业务场景模型可以通过第三客户与第三服务人员的历史对话数据以及历史对话对应的业务场景训练得到。意图模型可以通过第三客户与第三服务人员的历史对话数据以及历史对话对应的意图训练得到。本申请实施例对模型数量不做限定。In the process 202, the business scenario label and the intent label are outputted using the same model. It is understandable that two models (business scenario model and intent model) can also be trained to output the business scenario and intent respectively. The business scenario model can be obtained by training the historical conversation data between the third customer and the third service personnel and the business scenario corresponding to the historical conversation. The intent model can be obtained by training the historical conversation data between the third customer and the third service personnel and the intent corresponding to the historical conversation. The embodiment of the present application does not limit the number of models.
如图1所示,模型训练算法的设计以及模型训练的过程可以由模型管理模块执行。示例地,模型训练算法可以包括:Bert(bidirectional encoder representations from transformers)算法,本申请实施例对模型训练算法不做限定。As shown in Figure 1, the design of the model training algorithm and the process of model training can be performed by the model management module. For example, the model training algorithm can include: Bert (bidirectional encoder representations from transformers) algorithm, and the embodiment of the present application does not limit the model training algorithm.
203、通过第三训练数据训练第三初始模型,得到第三模型,第三训练数据包括:第四客户的特征信息、第四服务人员的特征信息、第四客户的历史成交产品、第四客户与第四服务人员的历史对话的历史对话数据、历史对话对应的业务场景意图、第二关键词组以及预设话术,第二关键词组是对历史对话数据进行关键词抽取得到的。203. A third initial model is trained by using third training data to obtain a third model. The third training data includes: characteristic information of a fourth customer, characteristic information of a fourth service personnel, historical transaction products of the fourth customer, historical conversation data of historical conversations between the fourth customer and the fourth service personnel, business scenario intentions corresponding to the historical conversations, a second keyword group, and preset words. The second keyword group is obtained by extracting keywords from the historical conversation data.
示例地,可以整理组合第一模型和第二模型的基础语料(包括第一训练数据和第二训练数据),即将第一训练数据与第二训练数据中对应的两组数据组合为一组数据。并基于所有组合的数据枚举至少一种预设话术(也可称为业务模板,是按照业务场景和产品意图等区别定制的文本信息),为每个组合的数据标注预设话术,得到融合上下文的第三训练数据,融合上下文是一种整合多种信息的数据结构。For example, the basic corpus of the first model and the second model (including the first training data and the second training data) can be sorted and combined, that is, the two corresponding groups of data in the first training data and the second training data can be combined into one group of data. And based on all the combined data, at least one preset speech (also called a business template, which is text information customized according to business scenarios and product intentions, etc.) is enumerated, and the preset speech is annotated for each combined data to obtain the third training data of the fusion context. The fusion context is a data structure that integrates multiple information.
第三模型按照其功能可以称为推荐模型,训练得到的第三模型的输入为:客户的特征信息、服务人员的特征信息、客户的至少一个偏好产品、客户与服务人员的对话数据、客户与服务人员的对话对应的业务场景意图以及从客户与服务人员的对话数据中抽取得到的关键词组,输出为推荐给服务人员的话术。The third model can be called a recommendation model according to its function. The input of the trained third model is: the customer's characteristic information, the service staff's characteristic information, at least one preferred product of the customer, the conversation data between the customer and the service staff, the business scenario intention corresponding to the conversation between the customer and the service staff, and the keyword group extracted from the conversation data between the customer and the service staff. The output is the words recommended to the service staff.
第三训练数据可以包括多组如下数据:<Tags′>,<P-list′>,Cw′,Words′,<Answers>。一组数据中的每个元素之间可以使用<eos>分隔。<Tags′>表示第四客户的特征信息和第四服务人员的特征信息,特征信息之间可以使用“##”符号分隔。<P-list′>可以参考第一训练数据的解释,各个产品之间可以使用“##”符 号分隔。Cw′是复合数据结构,其包括对话窗口信息(即历史对话数据和每句话的发言人)以及历史对话对应的业务场景意图。Words′表示第二关键词组,<Answers>表示预设话术,当预设话术有多个时,各个预设话术之间可以使用“##”符号分隔。The third training data may include multiple groups of the following data: <Tags′>, <P-list′>, Cw′, Words′, <Answers>. Each element in a group of data may be separated by <eos>. <Tags′> represents the characteristic information of the fourth customer and the characteristic information of the fourth service personnel, and the characteristic information may be separated by the "##" symbol. <P-list′> may refer to the explanation of the first training data, and the "##" symbol may be used to separate the products. Cw′ is a composite data structure, which includes the conversation window information (i.e., historical conversation data and the speaker of each sentence) and the business scenario intention corresponding to the historical conversation. Words′ represents the second keyword group, <Answers> represents the preset words, and when there are multiple preset words, the "##" symbol can be used to separate each preset word.
需要说明的是,第一训练数据、第二训练数据以及第三训练数据中的多组数据可以是一一对应的,也可以不完全对应,本申请实施例对此不做限定。这里的对应指的是第一训练数据、第二训练数据以及第三训练数据中,相同组合的客户与服务人员的数据对应。例如以客户A1和服务人员A2为例,第一训练数据中的A1-A2相关数据、第二训练数据中的A1-A2相关数据以及第三训练数据中的A1-A2相关数据对应。第一训练数据中的A1-A2相关数据和第二训练数据中的A1-A2相关数据可以参考前述过程202相关解释,第三训练数据中的A1-A2相关数据包括:A1的特征信息、A2的特征信息、A2的历史成交产品、A1与A2的历史对话的历史对话数据、A1与A2的历史对话对应的业务场景意图、A1与A2对应的预设话术。It should be noted that the multiple groups of data in the first training data, the second training data, and the third training data may correspond one to one or may not correspond completely, and the embodiments of the present application do not limit this. The correspondence here refers to the data correspondence between the same combination of customers and service personnel in the first training data, the second training data, and the third training data. For example, taking customer A1 and service personnel A2 as an example, the A1-A2 related data in the first training data, the A1-A2 related data in the second training data, and the A1-A2 related data in the third training data correspond. The A1-A2 related data in the first training data and the A1-A2 related data in the second training data can refer to the relevant explanations of the aforementioned process 202, and the A1-A2 related data in the third training data includes: feature information of A1, feature information of A2, historical transaction products of A2, historical conversation data of historical conversations between A1 and A2, business scenario intentions corresponding to historical conversations between A1 and A2, and preset words corresponding to A1 and A2.
如图1所示,模型训练算法的设计以及模型训练的过程可以由模型管理模块执行。示例地,第三初始模型可以为能够微调的大模型(例如大语言模型),可以通过第三训练数据进行大模型微调,得到第三模型,第三模型为推荐大模型。本申请实施例对模型训练过程不做限定。As shown in Figure 1, the design of the model training algorithm and the model training process can be performed by the model management module. For example, the third initial model can be a large model that can be fine-tuned (such as a large language model), and the large model can be fine-tuned through the third training data to obtain a third model, and the third model is a recommended large model. The embodiment of the present application does not limit the model training process.
示例地,请参考图4,图4为本申请实施例提供的一种模型训练过程示意图,图4示出了偏好度模型(即第一模型)M1、场景意图分类模型(即第二模型)M2以及大语言模型(即第三模型)M3的训练过程。如图4所示,构建第二客户的特征信息以及第二服务人员的特征信息,并通过第二客户的特征信息、第二服务人员的特征信息以及第二客户的历史成交产品训练得到偏好度模型M1。通过第三客户与第三服务人员的历史对话的历史对话数据以及历史对话对应的业务场景意图训练得到场景意图分配模型M2。之后通过偏好度模型M1和场景意图分配模型M2的基础预料构建融合上下文,并利用构建融合上下文的数据微调大语言模型M3。For example, please refer to Figure 4, which is a schematic diagram of a model training process provided in an embodiment of the present application, and Figure 4 shows the training process of the preference model (i.e., the first model) M1, the scene intent classification model (i.e., the second model) M2, and the large language model (i.e., the third model) M3. As shown in Figure 4, the feature information of the second customer and the feature information of the second service staff are constructed, and the preference model M1 is obtained by training the feature information of the second customer, the feature information of the second service staff, and the historical transaction products of the second customer. The scene intent allocation model M2 is obtained by training the historical conversation data of the historical conversation between the third customer and the third service staff and the business scene intent corresponding to the historical conversation. Afterwards, a fusion context is constructed based on the preference model M1 and the scene intent allocation model M2, and the large language model M3 is fine-tuned using the data of the constructed fusion context.
参考前述描述,本申请实施例在进行话术推荐时,可以将模型输出与向量检索结合。示例地,如图4所示,可以将向量数据存储至数据库(例如向量数据库),之后可以在数据库进行向量检索实现话术推荐。向量数据可以包括多组如下数据:[V1′,V2′,V3′,V4′],<Answers>。V1′表示<Tags′>的向量,V2′表示<P-list′>的向量,V3′表示Cw′的向量,V4′表示Words′的向量。示例地,可以通过统一语言模型的词向量能力将第三训练数据中的数据转换为向量。With reference to the foregoing description, the embodiment of the present application can combine the model output with the vector retrieval when performing speech recommendation. By way of example, as shown in FIG4 , the vector data can be stored in a database (e.g., a vector database), and then the vector retrieval can be performed in the database to implement speech recommendation. The vector data may include multiple groups of the following data: [V1′, V2′, V3′, V4′], <Answers>. V1′ represents the vector of <Tags′>, V2′ represents the vector of <P-list′>, V3′ represents the vector of Cw′, and V4′ represents the vector of Words′. By way of example, the data in the third training data can be converted into vectors through the word vector capability of the unified language model.
以下对通过前述三个模型进行话术推荐的过程进行说明。请参考图5,图5为本申请实施例提供的一种话术推荐过程示意图。如图5所示,确定第一客户的特征信息<C-Tags>和第一服务人员的特征信息<S-Tags>。再调用偏好度模型M1将<C-Tags>和<S-Tags>输入偏好度模型M1,得到偏好度模型M1输出的第一客户的至少一个偏好产品<P-list>。之后构造上下文(context)信息作为静态参数Context-s(<C-Tags>,<S-Tags>,<P-list>)。The following describes the process of recommending speech through the above three models. Please refer to Figure 5, which is a schematic diagram of a speech recommendation process provided in an embodiment of the present application. As shown in Figure 5, the characteristic information <C-Tags> of the first customer and the characteristic information <S-Tags> of the first service personnel are determined. Then call the preference model M1 to input <C-Tags> and <S-Tags> into the preference model M1, and obtain at least one preferred product <P-list> of the first customer output by the preference model M1. Then construct the context information as the static parameter Context-s (<C-Tags>, <S-Tags>, <P-list>).
调用场景意图分配模型M2将第一客户与第一服务人员的对话数据输入场景意图分配模型M2,得到场景意图分配模型M2输出的目标对话对应的业务场景意图。并且对第一客户与第一服务人员的对话数据进行关键词抽取,得到第一关键词组。The scenario intention allocation model M2 is called to input the conversation data between the first customer and the first service personnel into the scenario intention allocation model M2, and the business scenario intention corresponding to the target conversation output by the scenario intention allocation model M2 is obtained. Keywords are extracted from the conversation data between the first customer and the first service personnel to obtain a first keyword group.
之后构建融合上下文Context-d(Cw,Words),Cw包括第一客户与第一服务人员的对话数据以及目标对话对应的业务场景意图,Words表示第一关键词组。Then, a fusion context Context-d (Cw, Words) is constructed, where Cw includes the conversation data between the first customer and the first service personnel and the business scenario intention corresponding to the target conversation, and Words represents the first keyword group.
接着继续构建融合上下文,融合Context-s和Context-d得到Context(<Tags>,<P-list>,Cw,Words),并调用大语言模型M3将Context对象输入大语言模型M3,得到大语言模型M3输出的模型召回结果。并基于模型召回结果得到推荐话术。Then continue to build the fusion context, fuse Context-s and Context-d to get Context (<Tags>, <P-list>, Cw, Words), and call the large language model M3 to input the Context object into the large language model M3 to get the model recall result output by the large language model M3. And get the recommended words based on the model recall result.
示例地,还可以基于前述Context-s和Context-d得到[V1,V2,V3,V4],V1表示<Tags>的向量,V2表示<P-list>的向量,V3表示Cw的向量,V4表示Words的向量。之后如图5所示,根据[V1,V2,V3,V4]进行向量检索,得到向量召回结果。并加权处理模型召回结果和向量召回结果,得到推荐话术。推荐话术可以通过推荐话术列表形式进行展示。For example, [V1, V2, V3, V4] can also be obtained based on the aforementioned Context-s and Context-d, where V1 represents the vector of <Tags>, V2 represents the vector of <P-list>, V3 represents the vector of Cw, and V4 represents the vector of Words. Then, as shown in FIG5 , vector retrieval is performed based on [V1, V2, V3, V4] to obtain the vector recall result. The model recall result and the vector recall result are weighted to obtain the recommended words. The recommended words can be displayed in the form of a recommended words list.
例如可以将模型召回结果与向量召回结果进行加权比较,按照预设规则输出推荐话术。预设规则可以为相关性优先或者相似性优先,相关性优先指的是推荐话术列表中模型召回结果排序靠前,向量召回结果排序靠后。相似性优先指的是推荐话术列表中向量召回结果排序靠前,模型召回结果排序靠后。本申请实施例中,可以根据规则配置参数选择生效的预设规则。For example, a weighted comparison can be made between the model recall result and the vector recall result, and the recommended words can be output according to the preset rules. The preset rules can be relevance priority or similarity priority. Relevance priority means that the model recall result is ranked first in the recommended words list, and the vector recall result is ranked last. Similarity priority means that the vector recall result is ranked first in the recommended words list, and the model recall result is ranked last. In the embodiment of the present application, the preset rules that take effect can be selected according to the rule configuration parameters.
其中,向量检索的过程具体可以包括:比较[V1,V2,V3,V4]与数据库中存储的[V1′,V2′,V3′,V4′]进行比较,得到最近似的[V1′,V2′,V3′,V4′],并将最近似的[V1′,V2′,V3′,V4′]对应的<Answers>召 回。The process of vector retrieval may specifically include: comparing [V1, V2, V3, V4] with [V1′, V2′, V3′, V4′] stored in the database to obtain the most approximate [V1′, V2′, V3′, V4′], and calling the <Answers> corresponding to the most approximate [V1′, V2′, V3′, V4′]. Back.
本申请实施例中,可以通过词向量(word embedding)技术将前述各个数据转换为向量。例如可以通过词向量技术将<Tags>转换为V1,将<P-list>转换为V2,将Cw转换为V3,以及将Words转换为V4。In the embodiment of the present application, the aforementioned data can be converted into vectors by word embedding technology. For example, <Tags> can be converted into V1, <P-list> can be converted into V2, Cw can be converted into V3, and Words can be converted into V4 by word embedding technology.
以下以具体的例子对本申请实施例提供的方法进行说明,请参考图6,图6为本申请实施例提供的一种话术推荐的业务流程图,图6对前述过程进行进一步具体说明。The following is an explanation of the method provided in the embodiment of the present application with a specific example. Please refer to FIG6 , which is a business flow chart of a speech recommendation provided in the embodiment of the present application. FIG6 further explains the aforementioned process in detail.
首先执行流程1:建立第一客户与第一服务人员的对话窗口。接着执行流程2:理解业务场景意图,该流程2可以由场景意图分类模型M2执行,图6中场景意图分类模型M2可以包括多个子模型,以执行各种识别过程。First, process 1 is executed: establishing a dialogue window between the first customer and the first service personnel. Then process 2 is executed: understanding the business scenario intention. This process 2 can be executed by the scenario intention classification model M2. The scenario intention classification model M2 in FIG6 can include multiple sub-models to perform various recognition processes.
如图6所示,流程2具体包括如下过程:首先进行关键词抽取,关键词抽取过程的输入(input)为对话窗口中的N轮对话,输出为关键词组(例如对话窗口中的加粗词)。接着进行销售场景识别,销售场景识别过程的输入为N轮对话以及关键词组,输出为销售场景(包括促单/续费/转接/非云服务/其他)。并进行异议场景识别,异议场景识别过程的输入为N轮对话以及关键词组,输出为异议场景(包括价格/友商/投诉)。并进行产品意图识别,产品意图识别过程的输入为N轮对话以及关键词组,输出为第一客户意向的实体和关注点。As shown in Figure 6, process 2 specifically includes the following processes: First, keyword extraction is performed, and the input of the keyword extraction process is N rounds of conversations in the conversation window, and the output is a keyword group (such as bold words in the conversation window). Then, sales scenario recognition is performed. The input of the sales scenario recognition process is N rounds of conversations and keyword groups, and the output is a sales scenario (including promotion/renewal/transfer/non-cloud services/others). And objection scenario recognition is performed. The input of the objection scenario recognition process is N rounds of conversations and keyword groups, and the output is an objection scenario (including price/friendly business/complaint). And product intent recognition is performed. The input of the product intent recognition process is N rounds of conversations and keyword groups, and the output is the entities and concerns of the first customer's intention.
前述流程2将过程102的业务场景意图识别分为了:销售场景识别、异议场景识别以及产品意图识别三个过程,在通过场景意图分类模型M2执行该过程时,场景意图分类模型M2可以包括销售场景识别子模型、异议场景识别子模型以及产品意图识别子模型,分别用于执行该三个过程。销售场景识别子模型是通过第三客户与第三服务人员的历史对话的历史对话数据、第二关键词组以及历史对话对应的销售场景标签训练得到的。异议场景识别子模型是通过第三客户与第三服务人员的历史对话的历史对话数据、第二关键词组以及历史对话对应的异议场景标签训练得到的。产品意图识别子模型是通过第三客户与第三服务人员的历史对话的历史对话数据、第二关键词组以及历史对话对应的产品意图标签训练得到的。可以理解的是,还可以有其他的划分组合,例如将销售场景识别和异议场景识别合为一个场景识别过程,或者将这三个过程合并为一个识别过程,本申请实施例对此不做限定。The aforementioned process 2 divides the business scenario intention recognition of process 102 into three processes: sales scenario recognition, objection scenario recognition, and product intention recognition. When the process is executed by the scenario intention classification model M2, the scenario intention classification model M2 may include a sales scenario recognition sub-model, an objection scenario recognition sub-model, and a product intention recognition sub-model, which are respectively used to execute the three processes. The sales scenario recognition sub-model is obtained by training the historical dialogue data of the historical dialogue between the third customer and the third service personnel, the second keyword group, and the sales scenario label corresponding to the historical dialogue. The objection scenario recognition sub-model is obtained by training the historical dialogue data of the historical dialogue between the third customer and the third service personnel, the second keyword group, and the objection scenario label corresponding to the historical dialogue. The product intention recognition sub-model is obtained by training the historical dialogue data of the historical dialogue between the third customer and the third service personnel, the second keyword group, and the product intention label corresponding to the historical dialogue. It can be understood that there can be other division combinations, such as combining sales scenario recognition and objection scenario recognition into one scenario recognition process, or merging these three processes into one recognition process, which is not limited in the embodiments of the present application.
接着执行流程3,该流程3可以由大语言模型M3执行,或者通过大语言模型M3和向量检索过程融合进行,图6中大语言模型M3可以包括多个子模型,以执行各种推荐过程。图6将流程3划分为两个部分:3.1推荐销售话术以及3.2推荐产品/解决方案。3.1中,首先检索预设销售话术,检索预设销售话术过程的输入为第一客户的特征信息、第一服务人员的特征信息、之前输出的销售场景、异议场景以及关键词组,输出为从预设销售话术中选择的M条销售话术。之后进行相关性排序,相关性排序过程的输入为之前输出的M条销售话术、销售场景和异议场景,输出为M条销售话术中的前X条销售话术。Then, process 3 is executed. This process 3 can be executed by the large language model M3, or by fusing the large language model M3 and the vector retrieval process. In Figure 6, the large language model M3 can include multiple sub-models to perform various recommendation processes. Figure 6 divides process 3 into two parts: 3.1 recommending sales scripts and 3.2 recommending products/solutions. In 3.1, the preset sales scripts are first retrieved. The input of the process of retrieving the preset sales scripts is the characteristic information of the first customer, the characteristic information of the first service personnel, the previously output sales scenarios, objection scenarios, and keyword groups, and the output is M sales scripts selected from the preset sales scripts. Then, relevance sorting is performed. The input of the relevance sorting process is the previously output M sales scripts, sales scenarios, and objection scenarios, and the output is the top X sales scripts among the M sales scripts.
3.2中,首先获取产品/解决方案列表,获取产品/解决方案列表过程的输入为第一客户的特征信息、第一服务人员的特征信息以及之前输出的第一客户意向的实体和关注点,输出为Y个相关产品。之后进行相关性排序,相关性排序过程的输入为之前输出的第一客户意向的关注点、Y个相关产品以及第一客户的特征信息,输出为Y个相关产品中的前Z个相关产品。In 3.2, first, a list of products/solutions is obtained. The input of the process of obtaining the list of products/solutions is the characteristic information of the first customer, the characteristic information of the first service personnel, and the entities and concerns of the first customer's intentions previously output, and the output is Y related products. Then, relevance sorting is performed. The input of the relevance sorting process is the concerns of the first customer's intentions previously output, the Y related products, and the characteristic information of the first customer, and the output is the first Z related products among the Y related products.
对于3.2输出的Z个相关产品,可以继续执行3.3推荐营销活动,该过程3.3包括将Z个相关产品与活动库中的营销活动关联,并确定大促活动时机。For the Z related products outputted in 3.2, 3.3 may be continued to be performed to recommend marketing activities. The process 3.3 includes associating the Z related products with the marketing activities in the activity library and determining the timing of the promotion activities.
接着执行流程4,流程4中,对3.1或3.2和3.3输出内容进行结果组装,得到最终展示在平台上的话术列表。流程4中可以集成人工策略(规则)进行结果组装,人工可以对结果进行干预,例如设置部分结果不展示。如图6所示,第一服务人员的最后一段话即为第一服务人员从展示的话术列表中选择的话术。Then, process 4 is executed. In process 4, the output contents of 3.1 or 3.2 and 3.3 are assembled to obtain the final list of words displayed on the platform. In process 4, manual strategies (rules) can be integrated to assemble the results, and manual intervention can be made on the results, such as setting some results not to be displayed. As shown in Figure 6, the last paragraph of the first service staff is the words selected by the first service staff from the displayed list of words.
前述流程3将过程103的话术推荐分为了:销售话术推荐和产品/解决方案推荐这两个过程,在通过大语言模型M3执行该过程时,大语言模型M3可以包括销售话术推荐子模型以及产品推荐子模型,分别用于执行该两个过程。销售话术推荐子模型是通过第四客户的特征信息、第四服务人员的特征信息、历史对话对应的业务场景标签、第二关键词组以及预设销售话术训练得到的。产品推荐子模型是通过第四客户的特征信息、第四服务人员的特征信息、第四客户与第四服务人员的历史对话对应的意图标签以及预设产品训练得到的。可以理解的是,还可以有其他的划分组合,例如将销售话术推荐和产品/解决方案推荐合为一个推荐过程,本申请实施例对此不做限定。The aforementioned process 3 divides the speech recommendation of process 103 into two processes: sales speech recommendation and product/solution recommendation. When the process is executed by the large language model M3, the large language model M3 may include a sales speech recommendation sub-model and a product recommendation sub-model, which are respectively used to execute the two processes. The sales speech recommendation sub-model is obtained through the characteristic information of the fourth customer, the characteristic information of the fourth service personnel, the business scenario label corresponding to the historical conversation, the second keyword group, and the preset sales speech training. The product recommendation sub-model is obtained through the characteristic information of the fourth customer, the characteristic information of the fourth service personnel, the intention label corresponding to the historical conversation between the fourth customer and the fourth service personnel, and the preset product training. It can be understood that there can be other division combinations, such as combining the sales speech recommendation and the product/solution recommendation into one recommendation process, which is not limited in the embodiments of the present application.
前述流程2和流程3都通过模型实现时,如图6所示,模型训练过程中需要执行流程5:人工标注过程。流程5中,从对话语料库中选定对话窗口数据,接着为对话窗口数据标注关键词组,以通过对话窗口数据与标注的关键词组训练得到模型,该模型用于实现前述流程2中的关键词抽取过程。 When both the aforementioned processes 2 and 3 are implemented through the model, as shown in FIG6 , process 5: manual labeling process needs to be executed during the model training process. In process 5, dialogue window data is selected from the dialogue corpus, and then keyword groups are labeled for the dialogue window data, so as to obtain a model through training the dialogue window data and the labeled keyword groups, and the model is used to implement the keyword extraction process in the aforementioned process 2.
流程5中还可以为对话窗口数据标注销售场景标签,以通过对话窗口数据与标注的销售场景标签训练得到模型,该模型用于实现前述流程2中的销售场景识别过程。In process 5, sales scene labels can also be annotated for the dialogue window data, so as to obtain a model through training the dialogue window data and the annotated sales scene labels. The model is used to implement the sales scene recognition process in the aforementioned process 2.
流程5中还可以为对话窗口数据标注异议场景标签,以通过对话窗口数据与标注的异议场景标签训练得到模型,该模型用于实现前述流程2中的异议场景识别过程。In process 5, objection scene labels can also be annotated for the dialogue window data, so as to obtain a model through training the dialogue window data and the annotated objection scene labels, and the model is used to implement the objection scene identification process in the above-mentioned process 2.
流程5中还可以为对话窗口数据标注产品意图标签,以通过对话窗口数据与标注的产品意图标签训练得到模型,该模型用于实现前述流程2中的产品意图识别过程。In process 5, product intent labels can also be annotated for the dialogue window data, so as to obtain a model through training the dialogue window data and the annotated product intent labels. The model is used to implement the product intent recognition process in the aforementioned process 2.
本申请实施例中,可以获取推荐结果的反馈数据。如图6所示,可以获取基于推荐话术的成交数据和点击数据,得到产品方案反馈样本,基于该产品方案反馈样本可以在修改人工标注的结果,重新训练第一模型至第三模型,实现模型的更新。In the embodiment of the present application, feedback data of the recommendation results can be obtained. As shown in FIG6 , transaction data and click data based on the recommendation words can be obtained to obtain product solution feedback samples, based on which the manually labeled results can be modified, and the first model to the third model can be retrained to achieve model update.
需要说明的是,图6中所示出的各个模型的输入数据仅为示例性说明,还可以有其他组合,具体可以参考前述说明,本申请实施例在此不做赘述。It should be noted that the input data of each model shown in FIG6 is for illustrative purposes only, and there may be other combinations. For details, please refer to the above description, and the embodiments of the present application will not be elaborated here.
综上所述,本申请实施例提供的话术推荐方法,通过第一训练数据训练第一初始模型,得到第一模型,第一训练数据包括:第二客户的特征信息、第二服务人员的特征信息以及第二客户的历史成交产品,通过第二训练数据训练第二初始模型,得到第二模型,第二训练数据包括:第三客户与第三服务人员的历史对话的历史对话数据以及历史对话对应的业务场景意图,通过第三训练数据训练第三初始模型,得到第三模型,第三训练数据包括:第四客户的特征信息、第四服务人员的特征信息、第四客户的历史成交产品、第四客户与第四服务人员的历史对话的历史对话数据、历史对话对应的业务场景意图、第二关键词组以及预设话术,第二关键词组是对历史对话数据进行关键词抽取得到的,将第一客户的特征信息和第一服务人员的特征信息输入第一模型,得到第一模型输出的第一客户的至少一个偏好产品,将第一客户与第一服务人员的对话数据输入第二模型,得到第二模型输出的目标对话对应的业务场景意图,之后将目标数据输入第三模型,基于第三模型输出的模型召回结果得到推荐话术,目标数据包括:第一客户的特征信息、第一服务人员的特征信息、第一客户的至少一个偏好产品、对话数据以及目标对话对应的业务场景意图,该方法通过融合上下文的数据结构进行模型训练和微调,得到的大模型可以按照融合上下文的数据结构推荐话术,同时结合客户特征信息和服务人员的特征信息,相较于相关技术,能够更加有效的贴合服务人员和客户的个性特性进行话术推荐的辅助。In summary, the method for recommending words of speech provided in the embodiment of the present application trains a first initial model with first training data to obtain a first model, the first training data includes: characteristic information of the second customer, characteristic information of the second service personnel, and historical transaction products of the second customer, trains a second initial model with second training data to obtain a second model, the second training data includes: historical conversation data of historical conversations between a third customer and a third service personnel, and business scenario intentions corresponding to the historical conversations, trains a third initial model with third training data to obtain a third model, the third training data includes: characteristic information of a fourth customer, characteristic information of a fourth service personnel, historical transaction products of the fourth customer, historical conversation data of historical conversations between the fourth customer and the fourth service personnel, business scenario intentions corresponding to the historical conversations, a second keyword group, and preset words of speech, the second keyword group is obtained by extracting keywords from the historical conversation data, and the third initial model is obtained by training the third initial model with third training data. The characteristic information of a customer and the characteristic information of the first service staff are input into the first model to obtain at least one preferred product of the first customer output by the first model, the conversation data between the first customer and the first service staff is input into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model, and then the target data is input into the third model to obtain the recommended speech based on the model recall result output by the third model. The target data includes: the characteristic information of the first customer, the characteristic information of the first service staff, at least one preferred product of the first customer, the conversation data and the business scenario intention corresponding to the target conversation. The method trains and fine-tunes the model through the data structure of the fused context, and the obtained large model can recommend speech according to the data structure of the fused context. At the same time, combined with the customer characteristic information and the characteristic information of the service staff, compared with the related technology, it can more effectively fit the personality characteristics of the service staff and the customer to assist in the recommendation of speech.
并且综合使用动态参数(对话文本)以及静态参数(第一客户的特征信息和第一服务人员的特征信息)进行话术推荐,相较于相关技术,能够有效提高话术推荐的准确性和相关性,从而辅助服务人员完成高效率的服务。例如在电话或者其他可以直接或间接产生文本数据的渠道的销售过程中,可以实现销售话术和产品的精准推荐,辅助销售人员完成高效率的销售。此外,第一模型、第二模型和第三模型可以实现自闭环可持续迭代更新,从而进一步实现了话术推荐的实时性和准确性。In addition, the combined use of dynamic parameters (conversation text) and static parameters (feature information of the first customer and feature information of the first service personnel) for speech recommendation can effectively improve the accuracy and relevance of speech recommendation compared to related technologies, thereby assisting service personnel to provide efficient services. For example, in the sales process over the phone or other channels that can directly or indirectly generate text data, accurate recommendations for sales speech and products can be achieved, assisting sales personnel to complete efficient sales. In addition, the first model, the second model, and the third model can achieve self-closed-loop sustainable iterative updates, thereby further achieving the real-time and accuracy of speech recommendations.
本申请实施例提供的方法的先后顺序可以进行适当调整,过程也可以根据情况进行相应增减。任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,本申请实施例对此不做限定。The sequence of the methods provided in the embodiments of the present application can be adjusted appropriately, and the process can be increased or decreased accordingly according to the situation. Any technician familiar with the technical field can easily think of a method of change within the technical scope disclosed in this application, which should be included in the protection scope of this application, and the embodiments of the present application do not limit this.
本申请实施例还提供了一种话术推荐装置,如图7所示,在采用对应各个功能划分各个功能模块的情况下,话术推荐装置300可以包括:处理模块301、推荐模块302和显示模块303。示例性地,该话术推荐装置可以是话术推荐设备,也可以是其中的芯片或者其他具有上述话术推荐装置功能的组合器件、部件等。该装置的各个模块的功能如下所示:The embodiment of the present application also provides a speech recommendation device, as shown in FIG7 , in the case of dividing each functional module according to each function, the speech recommendation device 300 may include: a processing module 301, a recommendation module 302 and a display module 303. Exemplarily, the speech recommendation device may be a speech recommendation device, or a chip therein or other combined devices, components, etc. having the functions of the above-mentioned speech recommendation device. The functions of each module of the device are as follows:
处理模块,用于确定目标对话中第一客户的特征信息和第一服务人员的特征信息,目标对话为第一客户和第一服务人员的对话;处理模块,还用于解析目标对话的对话数据,以确定目标对话对应的业务场景意图,对话数据包括目标对话的对话上下文;推荐模块,用于基于目标数据得到推荐话术,目标数据包括:第一客户的特征信息、第一服务人员的特征信息以及目标对话对应的业务场景意图,推荐话术为用于回复第一客户的可选话术;显示模块,用于提供推荐话术展示界面,推荐话术展示界面用于展示推荐话术。A processing module is used to determine the characteristic information of the first customer and the characteristic information of the first service staff in the target dialogue, and the target dialogue is the dialogue between the first customer and the first service staff; the processing module is also used to parse the dialogue data of the target dialogue to determine the business scenario intention corresponding to the target dialogue, and the dialogue data includes the dialogue context of the target dialogue; a recommendation module is used to obtain recommended words based on the target data, and the target data includes: the characteristic information of the first customer, the characteristic information of the first service staff and the business scenario intention corresponding to the target dialogue, and the recommended words are optional words for replying to the first customer; a display module is used to provide a recommended words display interface, and the recommended words display interface is used to display the recommended words.
结合上述方案,第一服务人员的特征信息包括以下至少一项:第一服务人员的能力等级、第一服务人员的业务团队、第一服务人员的销售状态、第一服务人员的销售历史。In combination with the above solution, the characteristic information of the first service personnel includes at least one of the following: the ability level of the first service personnel, the business team of the first service personnel, the sales status of the first service personnel, and the sales history of the first service personnel.
结合上述方案,推荐话术为介绍目标产品的话术;目标产品满足以下至少一种特征:目标产品对应第一服务人员的能力等级、目标产品属于第一服务人员的业务团队、第一服务人员历史销售目标产品获得的客户满意度大于第一预设阈值、目标产品属于第一服务人员的擅长行业、第一服务人员对目标产品的销售历史成单数大于第二预设阈值。 In combination with the above scheme, the recommended script is the script for introducing the target product; the target product meets at least one of the following characteristics: the target product corresponds to the ability level of the first service personnel, the target product belongs to the business team of the first service personnel, the customer satisfaction obtained by the first service personnel in the history of selling the target product is greater than a first preset threshold, the target product belongs to the industry that the first service personnel is good at, and the number of historical sales orders of the target product by the first service personnel is greater than a second preset threshold.
结合上述方案,处理模块,还用于基于第一客户的特征信息和第一服务人员的特征信息,确定第一客户的至少一个偏好产品,目标数据还包括至少一个偏好产品。In combination with the above solution, the processing module is further used to determine at least one preferred product of the first customer based on the characteristic information of the first customer and the characteristic information of the first service personnel, and the target data also includes at least one preferred product.
结合上述方案,处理模块,具体用于将第一客户的特征信息和第一服务人员的特征信息输入第一模型,得到第一模型输出的至少一个偏好产品;其中,第一模型是通过第一训练数据对第一初始模型进行训练得到的,第一训练数据包括:第二客户的特征信息、第二服务人员的特征信息以及第二客户的历史成交产品。In combination with the above scheme, the processing module is specifically used to input the characteristic information of the first customer and the characteristic information of the first service personnel into the first model to obtain at least one preferred product output by the first model; wherein the first model is obtained by training the first initial model with the first training data, and the first training data includes: the characteristic information of the second customer, the characteristic information of the second service personnel and the historical transaction products of the second customer.
结合上述方案,处理模块,具体用于将对话数据输入第二模型,得到第二模型输出的目标对话对应的业务场景意图;其中,第二模型是通过第二训练数据对第二初始模型进行训练得到的,第二训练数据包括:第三客户与第三服务人员的历史对话的历史对话数据以及历史对话对应的业务场景意图。In combination with the above scheme, the processing module is specifically used to input the conversation data into the second model to obtain the business scenario intention corresponding to the target conversation output by the second model; wherein the second model is obtained by training the second initial model with second training data, and the second training data includes: historical conversation data of historical conversations between the third customer and the third service personnel and the business scenario intentions corresponding to the historical conversations.
结合上述方案,推荐模块,具体用于:将目标数据输入第三模型,得到第三模型输出的模型召回结果;以及基于模型召回结果,得到推荐话术;其中,第三模型是通过第三训练数据对第三初始模型进行训练得到的,第三训练数据包括:第四客户的特征信息、第四服务人员的特征信息、第四客户与第四服务人员的历史对话对应的业务场景意图以及预设话术。In combination with the above scheme, the recommendation module is specifically used to: input the target data into the third model to obtain the model recall result output by the third model; and obtain the recommended words based on the model recall result; wherein the third model is obtained by training the third initial model with the third training data, and the third training data includes: the characteristic information of the fourth customer, the characteristic information of the fourth service personnel, the business scenario intentions corresponding to the historical conversations between the fourth customer and the fourth service personnel, and the preset words.
结合上述方案,请参考图8,图8为本申请实施例提供的另一种话术推荐装置的框图,在图7的基础上,该装置还包括:存储模块304。In combination with the above solution, please refer to Figure 8, which is a block diagram of another speech recommendation device provided in an embodiment of the present application. Based on Figure 7, the device also includes: a storage module 304.
存储模块,用于在向量数据库中存储第一向量数据以及预设话术,第一向量数据包括:第四客户的特征信息的向量、第四服务人员的特征信息的向量以及第四客户与第四服务人员的历史对话对应的业务场景意图的向量。A storage module is used to store first vector data and preset words in a vector database, wherein the first vector data includes: a vector of characteristic information of a fourth customer, a vector of characteristic information of a fourth service staff, and a vector of business scenario intentions corresponding to historical conversations between the fourth customer and the fourth service staff.
结合上述方案推荐模块,还用于根据第二向量数据进行向量检索,得到向量召回结果,第二向量数据包括目标数据的向量;推荐模块,具体用于:将模型召回结果和向量召回结果进行加权处理,得到推荐话术。In combination with the above-mentioned solution recommendation module, it is also used to perform vector retrieval based on the second vector data to obtain a vector recall result, and the second vector data includes a vector of the target data; the recommendation module is specifically used to: weight the model recall result and the vector recall result to obtain a recommended speech.
结合上述方案,处理模块,还用于从目标对话的对话文本中获取预设数量的连续对话文本,得到对话数据。In combination with the above solution, the processing module is also used to obtain a preset number of continuous dialogue texts from the dialogue text of the target dialogue to obtain dialogue data.
本申请提供的云管理平台包括处理模块、推荐模块、显示模块、存储模块。The cloud management platform provided in this application includes a processing module, a recommendation module, a display module, and a storage module.
其中,处理模块、推荐模块、显示模块、存储模块均可以通过软件实现,或者可以通过硬件实现。示例性的,接下来以处理模块为例,介绍处理模块的实现方式。类似的,推荐模块、显示模块、存储模块的实现方式可以参考处理模块的实现方式。Among them, the processing module, the recommendation module, the display module, and the storage module can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the processing module is introduced below by taking the processing module as an example. Similarly, the implementation of the recommendation module, the display module, and the storage module can refer to the implementation of the processing module.
模块作为软件功能单元的一种举例,处理模块可以包括运行在计算实例上的代码。其中,计算实例可以包括物理主机(计算设备)、虚拟机、容器中的至少一种。进一步地,上述计算实例可以是一台或者多台。例如,处理模块可以包括运行在多个主机/虚拟机/容器上的代码。需要说明的是,用于运行该代码的多个主机/虚拟机/容器可以分布在相同的区域(region)中,也可以分布在不同的region中。进一步地,用于运行该代码的多个主机/虚拟机/容器可以分布在相同的可用区(availability zone,AZ)中,也可以分布在不同的AZ中,每个AZ包括一个数据中心或多个地理位置相近的数据中心。其中,通常一个region可以包括多个AZ。As an example of a software functional unit, a processing module may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the above-mentioned computing instance may be one or more. For example, a processing module may include code running on multiple hosts/virtual machines/containers. It should be noted that the multiple hosts/virtual machines/containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts/virtual machines/containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
同样,用于运行该代码的多个主机/虚拟机/容器可以分布在同一个虚拟私有云(virtual private cloud,VPC)中,也可以分布在多个VPC中。其中,通常一个VPC设置在一个region内,同一region内两个VPC之间,以及不同region的VPC之间跨区通信需在每个VPC内设置通信网关,经通信网关实现VPC之间的互连。Similarly, multiple hosts/virtual machines/containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
模块作为硬件功能单元的一种举例,处理模块可以包括至少一个计算设备,如服务器等。或者,处理模块也可以是利用专用集成电路(application-specific integrated circuit,ASIC)实现、或可编程逻辑器件(programmable logic device,PLD)实现的设备等。其中,上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD)、现场可编程门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合实现。As an example of a hardware functional unit, a processing module may include at least one computing device, such as a server, etc. Alternatively, the processing module may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
处理模块包括的多个计算设备可以分布在相同的region中,也可以分布在不同的region中。处理模块包括的多个计算设备可以分布在相同的AZ中,也可以分布在不同的AZ中。同样,处理模块包括的多个计算设备可以分布在同一个VPC中,也可以分布在多个VPC中。其中,所述多个计算设备可以是服务器、ASIC、PLD、CPLD、FPGA和GAL等计算设备的任意组合。The multiple computing devices included in the processing module can be distributed in the same region or in different regions. The multiple computing devices included in the processing module can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the processing module can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
需要说明的是,在其他实施例中,处理模块可以用于执行话术推荐方法中的任意步骤,推荐模块可以用于执行话术推荐方法中的任意步骤,显示模块可以用于执行话术推荐方法中的任意步骤,存储模块可以 用于执行话术推荐方法中的任意步骤。处理模块、推荐模块、显示模块、存储模块负责实现的步骤可根据需要指定,通过处理模块、推荐模块、显示模块、存储模块分别实现权利要求1至10中任一项方法中不同的步骤来实现云管理平台的全部功能。It should be noted that, in other embodiments, the processing module can be used to execute any step in the speech recommendation method, the recommendation module can be used to execute any step in the speech recommendation method, the display module can be used to execute any step in the speech recommendation method, and the storage module can be used to execute any step in the speech recommendation method. Used to execute any step in the speech recommendation method. The steps that the processing module, recommendation module, display module, and storage module are responsible for implementing can be specified as needed, and the processing module, recommendation module, display module, and storage module respectively implement different steps in any method of claims 1 to 10 to realize all the functions of the cloud management platform.
本申请还提供一种话术推荐系统,包括云管理平台和基础设施。The present application also provides a speech recommendation system, including a cloud management platform and infrastructure.
云管理平台和基础设施均可以通过软件实现,或者可以通过硬件实现。示例性的,接下来介绍云管理平台的实现方式。类似的,基础设施的实现方式可以参考云管理平台的实现方式。The cloud management platform and the infrastructure can be implemented by software or hardware. As an example, the implementation of the cloud management platform is introduced below. Similarly, the implementation of the infrastructure can refer to the implementation of the cloud management platform.
模块作为软件功能单元的一种举例,云管理平台可以包括运行在计算实例上的代码。其中,计算实例可以是物理主机(计算设备)、虚拟机、容器等计算设备中的至少一种。进一步地,上述计算设备可以是一台或者多台。例如,云管理平台可以包括运行在多个主机/虚拟机/容器上的代码。需要说明的是,用于运行该应用程序的多个主机/虚拟机/容器可以分布在相同的region中,也可以分布在不同的region中。用于运行该代码的多个主机/虚拟机/容器可以分布在相同的AZ中,也可以分布在不同的AZ中,每个AZ包括一个数据中心或多个地理位置相近的数据中心。其中,通常一个region可以包括多个AZ。As an example of a software functional unit, a cloud management platform may include code running on a computing instance. The computing instance may be at least one of a physical host (computing device), a virtual machine, a container, and other computing devices. Furthermore, the computing device may be one or more. For example, the cloud management platform may include code running on multiple hosts/virtual machines/containers. It should be noted that the multiple hosts/virtual machines/containers used to run the application may be distributed in the same region or in different regions. The multiple hosts/virtual machines/containers used to run the code may be distributed in the same AZ or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Typically, a region may include multiple AZs.
同样,用于运行该代码的多个主机/虚拟机/容器可以分布在同一个VPC中,也可以分布在多个VPC中。其中,通常一个VPC设置在一个region内。同一region内两个VPC之间,以及不同region的VPC之间跨区通信需在每个VPC内设置通信网关,经通信网关实现VPC之间的互连。Similarly, multiple hosts/virtual machines/containers used to run the code can be distributed in the same VPC or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway must be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
模块作为硬件功能单元的一种举例,云管理平台可以包括至少一个计算设备,如服务器等。或者,云管理平台也可以是利用ASIC实现、或PLD实现的设备等。其中,上述PLD可以是CPLD、FPGA、GAL或其任意组合实现。As an example of a hardware functional unit, the cloud management platform may include at least one computing device, such as a server, etc. Alternatively, the cloud management platform may also be a device implemented using ASIC or PLD, etc. The PLD may be implemented using CPLD, FPGA, GAL or any combination thereof.
云管理平台包括的多个计算设备可以分布在相同的region中,也可以分布在不同的region中。云管理平台包括的多个计算设备可以分布在相同的AZ中,也可以分布在不同的AZ中。同样,话术推荐装置包括的多个计算设备可以分布在同一个VPC中,也可以分布在多个VPC中。其中,所述多个计算设备可以是服务器、ASIC、PLD、CPLD、FPGA和GAL等计算设备的任意组合。The multiple computing devices included in the cloud management platform can be distributed in the same region or in different regions. The multiple computing devices included in the cloud management platform can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the speech recommendation device can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
本申请还提供一种计算设备400。如图9所示,计算设备400包括:总线402、处理器404、存储器406和通信接口408。处理器404、存储器406和通信接口408之间通过总线402通信。计算设备400可以是服务器或终端设备。应理解,本申请不限定计算设备400中的处理器、存储器的个数。The present application also provides a computing device 400. As shown in FIG9 , the computing device 400 includes: a bus 402, a processor 404, a memory 406, and a communication interface 408. The processor 404, the memory 406, and the communication interface 408 communicate with each other through the bus 402. The computing device 400 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 400.
总线402可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。总线402可包括在计算设备400各个部件(例如,存储器406、处理器404、通信接口408)之间传送信息的通路。The bus 402 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, FIG. 9 is represented by only one line, but does not mean that there is only one bus or one type of bus. The bus 402 may include a path for transmitting information between various components of the computing device 400 (e.g., the memory 406, the processor 404, and the communication interface 408).
处理器404可以包括中央处理器(central processing unit,CPU)、图形处理器(graphics processing unit,GPU)、微处理器(micro processor,MP)或者数字信号处理器(digital signal processor,DSP)等处理器中的任意一种或多种。Processor 404 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
存储器406可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM)。处理器404还可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器,机械硬盘(hard disk drive,HDD)或固态硬盘(solid state drive,SSD)。The memory 406 may include a volatile memory (volatile memory), such as a random access memory (RAM). The processor 404 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
存储器406中存储有可执行的程序代码,处理器404执行该可执行的程序代码以分别实现前述处理模块、推荐模块、显示模块和存储模块的功能,从而实现权利要求1至10的任一项话术推荐方法。也即,存储器406上存有用于执行权利要求1至10的任一项话术推荐方法的指令。The memory 406 stores executable program codes, and the processor 404 executes the executable program codes to respectively implement the functions of the aforementioned processing module, recommendation module, display module, and storage module, thereby implementing any one of the speech recommendation methods of claims 1 to 10. That is, the memory 406 stores instructions for executing any one of the speech recommendation methods of claims 1 to 10.
通信接口408使用例如但不限于网络接口卡、收发器一类的收发模块,来实现计算设备400与其他设备或通信网络之间的通信。The communication interface 408 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 400 and other devices or a communication network.
本申请实施例还提供了一种计算设备集群。该计算设备集群包括至少一台计算设备。该计算设备可以是服务器,例如是中心服务器、边缘服务器,或者是本地数据中心中的本地服务器。在一些实施例中,计算设备也可以是台式机、笔记本电脑或者智能手机等终端设备。The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
如图10所示,所述计算设备集群包括至少一个计算设备400。计算设备集群中的一个或多个计算设备400中的存储器406中可以存有相同的用于执行权利要求1至10的任一项话术推荐方法的指令。As shown in Fig. 10, the computing device cluster includes at least one computing device 400. The memory 406 in one or more computing devices 400 in the computing device cluster may store the same instructions for executing any one of the speech recommendation methods of claims 1 to 10.
在一些可能的实现方式中,该计算设备集群中的一个或多个计算设备400的存储器406中也可以分别存有用于执行权利要求1至10的任一项话术推荐方法的部分指令。换言之,一个或多个计算设备400的组合可以共同执行用于执行权利要求1至10的任一项话术推荐方法的指令。 In some possible implementations, the memory 406 of one or more computing devices 400 in the computing device cluster may also respectively store partial instructions for executing any one of the speech recommendation methods of claims 1 to 10. In other words, the combination of one or more computing devices 400 may jointly execute instructions for executing any one of the speech recommendation methods of claims 1 to 10.
需要说明的是,计算设备集群中的不同的计算设备400中的存储器406可以存储不同的指令,分别用于执行云管理平台的部分功能。也即,不同的计算设备400中的存储器406存储的指令可以实现处理模块、推荐模块、显示模块和存储模块中的一个或多个模块的功能。It should be noted that the memory 406 in different computing devices 400 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the cloud management platform. That is, the instructions stored in the memory 406 in different computing devices 400 can implement the functions of one or more modules among the processing module, the recommendation module, the display module and the storage module.
在一些可能的实现方式中,计算设备集群中的一个或多个计算设备可以通过网络连接。其中,所述网络可以是广域网或局域网等等。图11示出了一种可能的实现方式。如图11所示,两个计算设备400A和400B之间通过网络进行连接。具体地,通过各个计算设备中的通信接口与所述网络进行连接。在这一类可能的实现方式中,计算设备400A中的存储器406中存有执行处理模块、推荐模块的功能的指令。同时,计算设备400B中的存储器406中存有执行显示模块、存储模块的功能的指令。In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network or a local area network, etc. FIG. 11 shows a possible implementation. As shown in FIG. 11 , two computing devices 400A and 400B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 406 in the computing device 400A stores instructions for executing the functions of the processing module and the recommendation module. At the same time, the memory 406 in the computing device 400B stores instructions for executing the functions of the display module and the storage module.
图11所示的计算设备集群之间的连接方式可以是考虑到本申请提供的权利要求1至10的任一项话术推荐方法需要进行话术推荐,因此考虑将显示模块和存储模块实现的功能交由计算设备400B执行。The connection method between the computing device clusters shown in Figure 11 can be that considering that any of the speech recommendation methods of claims 1 to 10 provided in the present application requires speech recommendation, it is considered to entrust the functions implemented by the display module and the storage module to the computing device 400B for execution.
应理解,图11中示出的计算设备400A的功能也可以由多个计算设备400完成。同样,计算设备400B的功能也可以由多个计算设备400完成。It should be understood that the functions of the computing device 400A shown in FIG11 may also be completed by multiple computing devices 400. Similarly, the functions of the computing device 400B may also be completed by multiple computing devices 400.
本申请实施例还提供了一种包含指令的计算机程序产品。所述计算机程序产品可以是包含指令的,能够运行在计算设备上或被储存在任何可用介质中的软件或程序产品。当所述计算机程序产品在至少一个计算设备上运行时,使得至少一个计算设备执行权利要求1至10的任一项话术推荐方法。The embodiment of the present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes any one of the speech recommendation methods of claims 1 to 10.
本申请实施例还提供了一种计算机可读存储介质。所述计算机可读存储介质可以是计算设备能够存储的任何可用介质或者是包含一个或多个可用介质的数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘)等。该计算机可读存储介质包括指令,所述指令指示计算设备执行权利要求1至10的任一项话术推荐方法。The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute any one of the speech recommendation methods of claims 1 to 10.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims (23)
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311481562 | 2023-11-08 | ||
| CN202311481562.8 | 2023-11-08 | ||
| CN202410231625.2A CN119988529A (en) | 2023-11-08 | 2024-02-29 | Method, device and equipment for recommending speech skills |
| CN202410231625.2 | 2024-02-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025097891A1 true WO2025097891A1 (en) | 2025-05-15 |
Family
ID=95646012
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/110148 Pending WO2025097891A1 (en) | 2023-11-08 | 2024-08-06 | Pitch recommendation method and apparatus, and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN119988529A (en) |
| WO (1) | WO2025097891A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112885376A (en) * | 2021-01-23 | 2021-06-01 | 深圳通联金融网络科技服务有限公司 | Method and device for improving voice call quality inspection effect |
| CN113886539A (en) * | 2021-09-29 | 2022-01-04 | 未鲲(上海)科技服务有限公司 | Method and device for recommending dialect, customer service equipment and storage medium |
| CN115271932A (en) * | 2022-08-19 | 2022-11-01 | 中国银行股份有限公司 | Outbound risk identification method and device |
| US11694039B1 (en) * | 2021-01-22 | 2023-07-04 | Walgreen Co. | Intelligent automated order-based customer dialogue system |
-
2024
- 2024-02-29 CN CN202410231625.2A patent/CN119988529A/en active Pending
- 2024-08-06 WO PCT/CN2024/110148 patent/WO2025097891A1/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11694039B1 (en) * | 2021-01-22 | 2023-07-04 | Walgreen Co. | Intelligent automated order-based customer dialogue system |
| CN112885376A (en) * | 2021-01-23 | 2021-06-01 | 深圳通联金融网络科技服务有限公司 | Method and device for improving voice call quality inspection effect |
| CN113886539A (en) * | 2021-09-29 | 2022-01-04 | 未鲲(上海)科技服务有限公司 | Method and device for recommending dialect, customer service equipment and storage medium |
| CN115271932A (en) * | 2022-08-19 | 2022-11-01 | 中国银行股份有限公司 | Outbound risk identification method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119988529A (en) | 2025-05-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12039545B2 (en) | Third-party service for suggesting a response to a received message | |
| US11847106B2 (en) | Multi-service business platform system having entity resolution systems and methods | |
| US12125045B2 (en) | Multi-client service system platform | |
| US12154117B2 (en) | Facilitating an automated, interactive, conversational troubleshooting dialog regarding a product support issue via a chatbot and associating product support cases with a newly identified issue category | |
| US20230316186A1 (en) | Multi-service business platform system having entity resolution systems and methods | |
| US11063949B2 (en) | Dynamic socialized collaboration nodes | |
| CN115129832A (en) | Facilitating troubleshooting conversations over product support issues via a chat robot | |
| US11436446B2 (en) | Image analysis enhanced related item decision | |
| US20210142291A1 (en) | Virtual business assistant ai engine for multipoint communication | |
| US20230418793A1 (en) | Multi-service business platform system having entity resolution systems and methods | |
| US12164875B2 (en) | Social network adapted response | |
| US20240338710A1 (en) | Real-time assistance for a customer at a point of decision through hardware and software smart indicators deterministically generated through artificial intelligence | |
| CN118631939A (en) | Intelligent quality inspection method and device for voice customer service based on multimodal large model | |
| CN118093839A (en) | Knowledge operation question-answer dialogue processing method and system based on deep learning | |
| WO2025097891A1 (en) | Pitch recommendation method and apparatus, and device | |
| US12039556B2 (en) | Method and system for protocol generation | |
| CN115482022A (en) | A multi-batch marketing method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24887513 Country of ref document: EP Kind code of ref document: A1 |