Text processing method, device, equipment and medium based on RPA and AI

By using text processing methods based on RPA and AI in the e-commerce industry, we can automatically identify and analyze the chat details between e-commerce customer service and customers, solving the problem of merchants manually configuring and reviewing chat data, improving processing efficiency and achieving Delicate management.

CN115080720BActive Publication Date: 2024-09-131DATA TECH SHANGHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210750317.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-09-13
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

In the e-commerce industry, merchants need to manually configure and review the chat data of each store, resulting in high-frequency questions and answers requiring manual review. The processing efficiency is low, and it is impossible to achieve self-retrieval and precipitation of online chat data.

Method used

Use text processing methods based on RPA and AI to obtain detailed information about the interactions between e-commerce customer service and customers in the seller's workbench application. Through text recognition, data statistics, information extraction and sentiment analysis, high-frequency questions and their answers are determined, and Write it into the background QA knowledge base to achieve automated processing.

Benefits of technology

There is no need for a lot of manpower to monitor and review high-frequency questions and their answers, which improves processing efficiency and helps merchants achieve refined management and digital operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080720B
    Figure CN115080720B
Patent Text Reader

Abstract

The present application discloses a text processing method, apparatus, device and medium based on RPA and AI, including: obtaining chat details information generated during the interaction between e-commerce customer service and customers of each virtual store in the seller workbench application, wherein the chat details information includes multiple questions and original information text corresponding to each of the questions; performing text recognition and data statistics on each of the questions in the chat details information to obtain multiple high-frequency questions; performing information extraction and text sentiment analysis on the original information text of each of the high-frequency questions to obtain answers to the high-frequency questions; combining each of the high-frequency questions and the answers to the high-frequency questions into a target text; and writing all the target texts into a background QA knowledge base. The present application does not need to concentrate a large amount of manpower on message monitoring and collection, and does not need to use manual review and configuration of high-frequency questions and their answers, which can improve processing efficiency and help merchants achieve refined management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of process automation technology, and more specifically, to a text processing method, device, equipment and medium based on RPA. Background Art

[0002] With the rapid development of society, the e-commerce industry plays an increasingly important role. At present, the market uses a variety of underlying frameworks for secondary construction and packaging to build an automated workflow system. In this workflow system, process automation robots are mainly used for process processing. Robotic Process Automation (RPA) is a product solution that automates manual activities by performing repetitive rule-based tasks. RPA mainly focuses on using the human-computer interaction interface to complete automated processing to replace manual operations.

[0003] However, in this case, merchants need to manually configure all the basic docking information of all store robots, and then manually collect and summarize the daily chat data of each store to form Frequently Asked Questions (FAQ), and finally manually enter the FAQ big data into the corresponding software robot system. FAQ big data needs to be manually collected, configured and reviewed, and it is impossible to automatically retrieve and pull online chat data and deposit it into the robot backend database, resulting in high-frequency questions and answers that need to be manually reviewed and configured, resulting in reduced processing efficiency. Summary of the invention

[0004] In view of the above problems, this application is proposed to provide a text processing method, device, equipment and medium based on RPA and AI. The specific scheme is as follows:

[0005] A text processing method based on RPA and AI, comprising:

[0006] Obtaining chat details information generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer, wherein the chat details information includes multiple questions and original information text corresponding to each of the questions;

[0007] Performing text recognition and data statistics on each of the questions in the chat details information to obtain a plurality of high-frequency questions;

[0008] Performing information extraction and text sentiment analysis on the original information text of each of the high-frequency questions to obtain answers to the high-frequency questions;

[0009] Combining each of the high-frequency questions and the answers to the high-frequency questions into a target text;

[0010] Write all the target texts into the background QA knowledge base.

[0011] Preferably, the text recognition and data statistics are performed on each of the questions in the chat details information to obtain a plurality of high-frequency questions, including:

[0012] Identify the named entities in each question in the chat details information to obtain all the words in each question;

[0013] Perform word frequency statistics on all the words in each of the questions to obtain the word frequency of all the words in each of the questions;

[0014] Sorting the word frequencies of all the words to obtain a sorting result;

[0015] Determining a plurality of high-frequency words according to the sorting results;

[0016] Among the questions, questions containing high-frequency words are regarded as high-frequency questions.

[0017] Preferably, the extracting information and analyzing text sentiment of the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question includes:

[0018] Performing sentiment attribute recognition on the original information text of each of the high-frequency questions to obtain the sentiment attribute of the original information text of each of the high-frequency questions;

[0019] According to the sentiment attribute of each original information text, each original information text is screened to obtain an intermediate information text of each high-frequency question;

[0020] Performing semantic recognition on the intermediate information text of each of the high-frequency questions to obtain semantic information of the intermediate information text of each of the high-frequency questions;

[0021] Matching the semantic information of the intermediate information text of each of the high-frequency questions with the semantic information of each standard answer in a preset standard answer library to obtain a matching result;

[0022] Based on the matching results, answers to the high-frequency questions are determined.

[0023] Preferably, determining the answers to the high-frequency questions based on the matching results includes:

[0024] According to the matching results, the intermediate information texts in the intermediate information texts of each high-frequency question that match the standard answers are used as the answers to the corresponding high-frequency questions, the intermediate information texts in the intermediate information texts of each high-frequency question that do not match the standard answers are eliminated, and the standard answers corresponding to the high-frequency questions with the intermediate information texts eliminated are used as the answers.

[0025] Preferably, the acquisition of chat details information generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer includes:

[0026] Launch the Seller Workbench application window;

[0027] Entering the chat window interface of each of the virtual stores;

[0028] The web page data on the chat window interface of each of the stores is collected, and the collected web page data is used as chat detail information.

[0029] Preferably, the collecting of web page data on the chat window interface of each of the shops and using the collected web page data as chat details information includes:

[0030] Get all target links of the current web page;

[0031] Click on all the target links to enter the details page corresponding to each target link;

[0032] Extracting data from a detail page corresponding to each of the target links, and using the extracted data from each of the detail pages as chat detail data;

[0033] Check whether there is a page turning button in the current web page. If so, click the page turning button to enter the next web page, and use the next web page as the current web page, and return to execute the step of obtaining all target links of the current web page until no page turning button is found.

[0034] Preferably, the launching of the seller workbench application window includes:

[0035] Use the automated testing tool to start the browser driver to launch the Seller Workbench application;

[0036] The application window of the seller workbench application is started through a remote driver.

[0037] A text processing device based on RPA and AI, comprising:

[0038] An information acquisition unit is used to acquire chat details information of each store in the seller workbench application, wherein the chat details information is generated during the interaction between the e-commerce customer service and the customer, and the chat details information of each store includes multiple questions and original information text corresponding to each question;

[0039] A high-frequency question acquisition unit, configured to perform text recognition and data statistics on each of the questions in the chat details information to obtain a plurality of high-frequency questions;

[0040] An answer acquisition unit is used to extract information and perform text sentiment analysis on the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question;

[0041] A text generation unit, used for combining each of the high-frequency questions and the answers to the high-frequency questions into a target text;

[0042] The text writing unit is used to write all the target texts into the background QA knowledge base.

[0043] A text processing device based on RPA and AI, comprising: a memory and a processor;

[0044] The memory is used to store programs;

[0045] The processor is used to execute the program to implement the various steps of the text processing method based on RPA and AI as described above.

[0046] A storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, each step of the text processing method based on RPA and AI as described above is implemented.

[0047] With the help of the above technical scheme, a text processing method based on RPA and AI in the present application obtains the chat details information generated during the interaction between the e-commerce customer service and customers of each virtual store in the seller's workbench application, performs text recognition and data statistics on each of the questions in the chat details information, and obtains multiple high-frequency questions. Then, information extraction and text sentiment analysis are performed on the original information text of each high-frequency question to obtain the answer to the high-frequency question, and then each high-frequency question and the answer to the high-frequency question are combined into a target text, and finally all the target texts are written into the background QA knowledge base. The present application first determines multiple questions and the original information text corresponding to each of the questions, and then determines the high-frequency questions, and then determines the answers corresponding to the high-frequency questions. In this way, there is no need to concentrate a large amount of manpower on message monitoring and collection, and there is no need to use manual review and configuration of high-frequency questions and their answers, which can improve processing efficiency and help merchants achieve refined management. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0049] Figure 1 A flowchart of a text processing method based on RPA and AI provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of the structure of a text processing device based on RPA and AI provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of the structure of a text processing device based on RPA and AI provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0053] In the current e-commerce work situation, merchants need to manually configure all the basic docking information of all store robots, and then manually collect and summarize the daily chat data of each store to form Frequently Asked Questions (FAQ), and finally manually enter the FAQ big data into the corresponding software robot system. FAQ big data needs to be manually collected, configured and reviewed, and it is impossible to realize the self-retrieval and extraction of online chat data and deposit it into the robot backend database, resulting in the need for manual review and configuration of high-frequency questions and answers, resulting in reduced processing efficiency.

[0054] Therefore, in order to solve the above problems, the present application provides a text processing method, device, equipment and medium based on RPA and AI, which can determine high-frequency questions and their corresponding answers, thereby avoiding the use of manual review and configuration of high-frequency questions and their answers. By integrating RPA and AI, the present application can first quickly form its own special demand scenarios in the form of front-end workflows. At the same time, multiple stores only need to configure the workflow once, and in the subsequent use process, it can be used out of the box and automatically monitored through the underlying driver communication; through OCR and NLP modeling, emotional attributes and semantic information are locked, and real-time traversal cycles are combined to complete data capture, review and storage, so as to achieve efficient and fast automatic replies. At the same time, with language processing and question type positioning functions, there will be no more questions that cannot be answered frequently, which can improve processing efficiency and help merchants achieve refined management and digital operations.

[0055] Next, we will introduce the text processing method based on RPA and AI in this application in detail. Please refer to Figure 1 , Figure 1 The following is a flowchart of a text processing method based on RPA and AI provided in an embodiment of the present application, wherein the method includes:

[0056] Step S110: Obtain chat details information generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer, wherein the chat details information includes multiple questions and original information text corresponding to each of the questions.

[0057] Specifically, the seller workbench is a platform that integrates store management tools, business consulting information and business partnerships for e-commerce sellers, which can improve the seller's efficiency in handling events. The chat details information can be the historical chat information records generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer. The e-commerce customer service here can be a real person or a robot. Customers can ask questions about the information of the product, and then the e-commerce customer service communicates with the customer based on the customer's questions, and understands the customer's core needs according to the communication process to answer the customer's questions. Therefore, the chat details information can include several questions raised by different customers, as well as a long dialogue around this question. The dialogue includes the intermediate process fields generated by the communication and the answer fields that are finally answered. These intermediate process fields and answer fields are included in the original information text corresponding to each question.

[0058] Furthermore, in this embodiment, the chat information is obtained by loading the acquisition function module in the RPA robot. RPA, or Robotic Process Automation, is a product solution that automates manual activities by performing repetitive rule-based tasks, with the advantages of high efficiency, low error rate, and reduced labor.

[0059] Step S120: Perform text recognition and data statistics on each of the questions in the chat details information to obtain multiple high-frequency questions.

[0060] Specifically, in this step, the language text recognition processing function module in the RPA robot is run to determine the high-frequency problems. Language text recognition can identify language text from pictures. Language text recognition has been modularized into the RPA robot as one of the functions that can be realized by the RPA robot. By loading the corresponding module of the RPA robot, the high-frequency problems are determined from the picture using language text recognition. In some embodiments, the chat details information can be stored as a file in the image format, so that the language text recognition technology is used for the picture to determine the high-frequency problems. In some other embodiments, the chat details information can also be stored as a file in other formats, and then other text recognition technologies corresponding to the format are used to identify the high-frequency problems, so as to determine the high-frequency problems.

[0061] Step S130: extract information and perform text sentiment analysis on the original information text of each of the high-frequency questions to obtain answers to the high-frequency questions.

[0062] Specifically, after obtaining the chat details, the chat details between the e-commerce customer service and the customer are obtained, including the user's questions, the answers given by the customer service, and some useless fields, which may include text or pictures that are not obviously related to the questions and answers. By running the information extraction and text sentiment analysis function modules in the RPA robot, the answer corresponding to each high-frequency question is determined. Information extraction and text sentiment analysis have been modularized into the RPA robot as one of the functions that the RPA robot can implement. By loading the corresponding modules of the RPA robot, information extraction and text sentiment analysis are performed on the original information text to determine the answers to high-frequency questions.

[0063] Step S140: Combine each of the high-frequency questions and the answers to the high-frequency questions into a target text.

[0064] Specifically, after the high-frequency questions and their corresponding answers are determined, they can be combined into a target text.

[0065] Understandably, when the store is set to unattended mode, the software robot automation mechanism will be triggered. When the user asks a relevant question, the software robot will perform a big data traversal in the background. When it traverses the relevant question and the corresponding answer, it will automatically reply. If it cannot traverse the question, it cannot obtain the corresponding answer to the question. At this time, the software robot will be silent and unable to answer the customer's question. In this embodiment, when facing the questions raised by the customer, the software robot can directly determine the answer based on the question raised by the customer, and there will be no problem of silence if it cannot traverse.

[0066] Step S150: Write all the target texts into the background QA knowledge base.

[0067] Specifically, in this embodiment, by loading the traversal card of the RPA robot, all target texts are written into the background QA knowledge base. When facing questions raised by customers, the software robot can directly traverse the background QA knowledge base to find similar questions based on the questions raised by the customers, and then determine the answer based on the questions, without the problem of silence when traversal fails.

[0068] It can be seen from the above technical solutions that a text processing method based on RPA and AI in the present application obtains the chat details information generated during the interaction between the e-commerce customer service and customers of each virtual store in the seller's workbench application, performs text recognition and data statistics on each of the questions in the chat details information, and obtains multiple high-frequency questions. Then, information extraction and text sentiment analysis are performed on the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question, and then each of the high-frequency questions and the answer to the high-frequency question are combined into a target text. Finally, all the target texts are written into the background QA knowledge base. The present application first determines multiple questions and the original information text corresponding to each of the questions, and then determines the high-frequency questions, and then determines the answers corresponding to the high-frequency questions. In this way, there is no need to concentrate a large amount of manpower on message monitoring and collection, and there is no need to use manual review and configuration of high-frequency questions and their answers, which can improve processing efficiency and help merchants achieve refined management.

[0069] The above embodiment briefly introduces a text processing method based on RPA and AI in this application. In some embodiments of this application, the above step S120 is to perform text recognition and data statistics on each of the questions in the chat details information to obtain multiple high-frequency questions. The process may include the following steps:

[0070] Step S121: Identify the named entities in each question in the chat details information to obtain all the words in each question.

[0071] Specifically, after the text of the question is organized, all the words in each question are extracted through LAC named entity recognition. LAC (Lexical Analysis of Chinese) is a joint lexical analysis tool that can realize Chinese word segmentation, part-of-speech tagging, proper name recognition and other functions. For example, input a sentence: "LAC is an excellent word segmentation tool", and the word segmentation results are: "LAC", "is", "a", "excellent", "of", "word segmentation", "tool".

[0072] Furthermore, in this embodiment, the organizational entities in the text information can be extracted by calling the Taskflow API in PaddleNLP to obtain all the words in each question.

[0073] Step S122: Perform word frequency statistics on all the words in each of the questions to obtain the word frequency of all the words in each of the questions.

[0074] Specifically, all the words in all questions are counted for word frequency to determine the word frequency of all the words in each question. It should be noted that the word frequency statistics here are for all the words in all questions, and it can be seen from the word frequency statistics that specific words are high-frequency words. Furthermore, the specific distribution of one or more high-frequency words in certain questions or certain specific scenarios can also be known, which is helpful for determining high-frequency problems.

[0075] Step S123: sort the word frequencies of all the words to obtain a sorting result.

[0076] Specifically, all words are sorted from high to low or from low to high according to their word frequencies, so as to know which word or words appear more frequently in all questions. In some embodiments, based on the sorting results, the average word frequency of all words can be calculated as a standard for measuring high-frequency words, or a value can be preset to determine words whose word frequencies are higher than this preset value as high-frequency words.

[0077] Step S124: Determine a plurality of high-frequency words according to the sorting result.

[0078] Specifically, after obtaining the sorting results, the average frequency of all words can be calculated as a standard for measuring high-frequency words, or a value can be set in advance, and words whose frequency is higher than this preset value are regarded as high-frequency words. These high-frequency words may include some less important question words, modal particles and question punctuation marks (such as "why", "?" and "?"), and may also include some more important core words (such as "performance", "parameters", "price" and "discount").

[0079] Step S125: The questions containing high-frequency words in each of the questions are regarded as high-frequency questions.

[0080] Specifically, the high-frequency questions here may include an unlimited number and an unlimited frequency of high-frequency words.

[0081] Furthermore, for example, customers usually compare a certain product and its substitutes and ask questions similar to the following: "What is the relationship between the performance of this product and its price?" Then this question may include at least two high-frequency words, "performance" and "price", and is a high-frequency question.

[0082] The above embodiment briefly introduces the process of performing text recognition and data statistics on each question in the chat details information to obtain multiple high-frequency questions. In some embodiments of the present application, step S130 is described in detail, in which the original information text of each high-frequency question is extracted and the text sentiment analysis is performed to obtain the answer to the high-frequency question. The process may include the following steps:

[0083] Step S131: Perform sentiment attribute recognition on the original information text of each of the high-frequency questions to obtain the sentiment attribute of the original information text of each of the high-frequency questions.

[0084] Specifically, in this step, the original information text of each high-frequency question is first segmented and divided into multiple sentences. All phrases in each sentence are extracted from the sentence, and then the sentiment attributes of the phrases are identified to obtain the sentiment attributes of the phrases, thereby determining the sentiment attributes of the sentence. According to the typical sentiment feature algorithm model of each level of the classification hierarchy, the hierarchical phenomenon of sentiment features and the relationship between features are analyzed, and then the sentiment attributes are classified in the underlying system of the algorithm.

[0085] Furthermore, sentiment attribute recognition is one of the functions of language text recognition. Sentiment attribute recognition of sentences helps to accurately analyze and locate answers. In sentiment attribute recognition, the sentiment of sentences or phrases can usually be classified into positive, negative, neutral, affirmative and negative, etc. With the help of sentiment attribute analysis of sentences or phrases, it is possible to preliminarily determine the context in which the user asks the question, what kind of question the user is generally asking, what kind of information the user wants to get from this question, etc. Sentiment attribute recognition helps to preliminarily determine the answers to high-frequency questions, laying the foundation for further narrowing the scope in the future.

[0086] Step S132: Screen each original information text according to the sentiment attribute of each original information text to obtain an intermediate information text of each high-frequency question.

[0087] Specifically, the original information text does not only include answers to high-frequency questions, but also includes some intermediate communication processes, animated expressions, and pictures. If the customer service reply message does not completely solve the user's problem, the user may continue to ask questions with doubts or negative emotional attributes. In this case, it can be determined that this customer service message is not the answer to the question and will be screened out.

[0088] Step S133: Perform semantic recognition on the intermediate information text of each of the high-frequency questions to obtain semantic information of the intermediate information text of each of the high-frequency questions.

[0089] Specifically, after obtaining the intermediate information text of each high-frequency question through sentiment attribute recognition and screening, semantic recognition is performed on the intermediate information text to understand the meaning of the intermediate information text, that is, the semantic information, so as to proceed to the next step.

[0090] Step S134: Match the semantic information of the intermediate information text of each of the high-frequency questions with the semantic information of each standard answer in the preset standard answer library to obtain a matching result.

[0091] Specifically, the semantic information of each standard answer in the preset answer library has been obtained. By matching the semantic information of the intermediate information text of each high-frequency question with the semantic information of each standard answer in the preset standard answer library, it is possible to determine whether the semantic information of the intermediate text of the high-frequency question meets the requirements of the standard answer, thereby determining whether the intermediate information text is the answer to the high-frequency question.

[0092] Furthermore, in specific usage scenarios, enterprises only need to continuously optimize the standard answer library, without the need for customer service specialists to focus on monitoring and collecting enterprise messages, thus saving manpower. At the same time, it can easily solve the configuration problems of multiple stores running online at the same time, achieving a seamless out-of-the-box effect, and truly helping enterprises achieve refined operations.

[0093] Step S135: Determine answers to each of the high-frequency questions based on the matching results.

[0094] Specifically, if the semantic information of the intermediate text of the high-frequency question meets the requirements of the standard answer, then the intermediate information text can be determined as the answer to the high-frequency question.

[0095] The above embodiments briefly introduce the process of extracting information and analyzing text sentiment of the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question. In some embodiments of the present application, step S135 is described in detail, and the process of determining the answer to each of the high-frequency questions based on the matching results may include the following steps:

[0096] According to the matching results, the intermediate information texts in the intermediate information texts of each high-frequency question that match the standard answers are used as the answers to the corresponding high-frequency questions, the intermediate information texts in the intermediate information texts of each high-frequency question that do not match the standard answers are eliminated, and the standard answers corresponding to the high-frequency questions with the intermediate information texts eliminated are used as the answers.

[0097] Specifically, the intermediate information text with certain emotional attributes and whose semantic information is consistent with the standard answer is used as the answer to the high-frequency question. However, if after emotional attribute identification, screening, semantic identification and matching, it is found that the intermediate information text has neither relevant emotional attributes nor its semantic information matches the semantic information of the standard answer, it means that the intermediate text information does not solve the problem raised by the customer and is useless text information. In this case, the intermediate information text is removed, and the standard answer corresponding to the high-frequency question without the intermediate information text is used as the answer to the high-frequency question.

[0098] The above embodiments briefly introduce the process of determining the answers to the high-frequency questions based on the matching results of the present application. In some embodiments of the present application, the process of obtaining the chat details information generated during the interaction between the e-commerce customer service of each virtual store and the customer in the seller workbench application in step S110 is described in detail. The process may include the following steps:

[0099] Step S111, start the seller workbench application window.

[0100] Specifically, this step opens the seller's workbench by loading the start application function module in the RPA robot. The seller's workbench here can be Qianniu.com. The specific operation steps are:

[0101] Chromedriver is launched through the underlying Selenium to open the seller workbench on the browser interface.

[0102] Selenium is an automated testing tool used to drive browsers to perform corresponding operations, and Chromedriver is a Chrome driver.

[0103] Launch a browser window with the remote driver to open the Seller Workstation application window.

[0104] Specifically, remote driver is a remote driver.

[0105] Further, starting Chromedriver through the underlying Selenium to open the seller workbench on the browser interface may include:

[0106] Enter and access the URL to call the AbstractHttpCommandCodec class method in Selenium, request the driver to process, and finally the driver interacts with the browser, and the browser performs corresponding operations according to the instructions.

[0107] Specifically, inputting and accessing a URL is to access a uniform resource locator by inputting a uniform resource locator and calling an HTTP command in Selenium.

[0108] Use the HTTP command line to start the browser driver.

[0109] Use the browser driver to launch the seller workbench application.

[0110] Step S112: Enter the chat window interface of each virtual store.

[0111] Specifically, in this step, by loading the interface element click function module in the RPA robot, click the corresponding event on the browser interface to enter the chat window of each store.

[0112] Step S113: collect web page data on the chat window interface of each store, and use the collected web page data as chat detail information.

[0113] Specifically, in this step, the intelligent web page data collection module of the RPA robot is used to perform automatic page-turning polling traversal with coordinate setting to obtain chat detail data.

[0114] Furthermore, the above steps effectively avoid repeated node data collection, maintain real-time incremental data update collection, reduce program occupancy, and improve processing efficiency.

[0115] The above embodiments briefly introduce the process of obtaining chat details information generated during the interaction between the e-commerce customer service and the customer of each virtual store in the seller workbench application of the present application. In some embodiments of the present application, step S113 collects web page data on the chat window interface of each store and introduces the process of using the collected web page data as chat details information in detail. The process may include the following steps:

[0116] Step S111, obtaining all target links of the current web page.

[0117] Step S112: click all the target links to enter the detail page corresponding to each target link.

[0118] Step S113: extract data from the detail page corresponding to each of the target links, and use the extracted data from each of the detail pages as chat detail data.

[0119] Step S114, check whether there is a page turning button in the current web page. If so, click the page turning button to enter the next web page, and use the next web page as the current web page, and return to execute the step of obtaining all target links of the current web page until no page turning button is found.

[0120] Specifically, through the above steps, all chat detail data generated by the interaction between e-commerce customer service and customers can be collected.

[0121] Furthermore, after all chat detail data is collected, the chat detail data is stored as a file in a certain format. In some embodiments, the chat detail data is acquired into a local table, the local table is converted into a local image, and then the OCR and NLP language text processing function modules in the RPA robot are run to acquire multiple questions and the original information text corresponding to each of the questions. In some other embodiments, the chat detail data may also be stored as a file in other formats, and then multiple questions and the original information text corresponding to each of the questions are acquired in the file.

[0122] Next, the above process is described in detail, which may include:

[0123] Step S1: Acquire chat details data into a local table.

[0124] Specifically, this step may include:

[0125] Call the class method in the underlying pandas library to read Excel from the collected results.

[0126] Use the dictionary to build a dataframe, import the data in the Excel file to initialize the dataframe, and obtain a local table.

[0127] Specifically, a dictionary is a variable container model and can store any type of object. Specifically in this embodiment, the dictionary is used to provide an index relationship between Excel and dataframe, and the corresponding relationship between the data in Excel and dataframe is constructed through different key values ​​(Key-Value) of the dictionary.

[0128] The original index column of the local table is removed.

[0129] The local table is stored.

[0130] Step S2: Convert the local table into a local image.

[0131] Step S3: Run the OCR and NLP language text processing function modules in the RPA robot to obtain multiple questions and the original information text corresponding to each of the questions.

[0132] Specifically, integrating OCR and NLP bottom layers into the development package can realize the integrated functions of text image recognition, interception and annotation with high efficiency.

[0133] The following describes an RPA and AI-based text processing device provided in an embodiment of the present application. The RPA and AI-based text processing device described below and the RPA and AI-based text processing method described above can refer to each other.

[0134] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of a text processing device based on RPA and AI disclosed in an embodiment of the present application.

[0135] like Figure 2 As shown, the device may include:

[0136] The information acquisition unit 11 is used to acquire the chat details information of each store in the seller workbench application, wherein the chat details information is generated during the interaction between the e-commerce customer service and the customer, and the chat details information of each store includes multiple questions and original information text corresponding to each question;

[0137] A high-frequency question acquisition unit 12 is used to perform text recognition and data statistics on each of the questions in the chat details information to obtain a plurality of high-frequency questions;

[0138] The answer acquisition unit 13 is used to extract information and perform text sentiment analysis on the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question;

[0139] A text generation unit 14, used for combining each of the high-frequency questions and the answers to the high-frequency questions into a target text;

[0140] The text writing unit 15 is used to write all the target texts into the background QA knowledge base.

[0141] The text processing device based on RPA and AI provided in the embodiment of the present application can be applied to text processing devices based on RPA and AI, such as terminals: mobile phones, computers, etc. Optionally, Figure 3 The hardware structure diagram of the text processing device based on RPA and AI is shown in FIG. Figure 3 , the hardware structure of the text processing device based on RPA and AI may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;

[0142] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;

[0143] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;

[0144] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;

[0145] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:

[0146] Obtaining chat details information generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer, wherein the chat details information includes multiple questions and original information text corresponding to each of the questions;

[0147] Performing text recognition and data statistics on each of the questions in the chat details information to obtain a plurality of high-frequency questions;

[0148] Performing information extraction and text sentiment analysis on the original information text of each of the high-frequency questions to obtain answers to the high-frequency questions;

[0149] Combining each of the high-frequency questions and the answers to the high-frequency questions into a target text;

[0150] Write all the target texts into the background QA knowledge base.

[0151] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0152] The embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:

[0153] Obtaining chat details information generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer, wherein the chat details information includes multiple questions and original information text corresponding to each of the questions;

[0154] Performing text recognition and data statistics on each of the questions in the chat details information to obtain a plurality of high-frequency questions;

[0155] Performing information extraction and text sentiment analysis on the original information text of each of the high-frequency questions to obtain answers to the high-frequency questions;

[0156] Combining each of the high-frequency questions and the answers to the high-frequency questions into a target text;

[0157] Write all the target texts into the background QA knowledge base.

[0158] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0159] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0160] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0161] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A text processing method based on RPA and AI, characterized in that: include: Obtaining chat details information generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer, wherein the chat details information includes multiple questions and original information text corresponding to each of the questions, and the original information text includes an intermediate process field and an answer field; Performing text recognition and data statistics on each of the questions in the chat details information to obtain a plurality of high-frequency questions; Performing information extraction and text sentiment analysis on the original information text of each of the high-frequency questions to obtain answers to the high-frequency questions; Combining each of the high-frequency questions and the answers to the high-frequency questions into a target text; Write all the target texts into the background QA knowledge base; The extracting information and analyzing text sentiment of the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question includes: Performing sentiment attribute recognition on the original information text of each of the high-frequency questions to obtain the sentiment attribute of the original information text of each of the high-frequency questions; According to the sentiment attribute of each original information text, each original information text is screened to obtain an intermediate information text of each high-frequency question; Performing semantic recognition on the intermediate information text of each of the high-frequency questions to obtain semantic information of the intermediate information text of each of the high-frequency questions; Matching the semantic information of the intermediate information text of each of the high-frequency questions with the semantic information of each standard answer in a preset standard answer library to obtain a matching result; Based on the matching results, determining answers to the high-frequency questions; Determining the answers to the high-frequency questions based on the matching results specifically includes: The intermediate information text with sentiment attributes and semantic information consistent with the standard answer is used as the answer to the high-frequency question. If, after sentiment attribute identification, screening, semantic identification and matching, it is found that the intermediate information text has neither relevant sentiment attributes nor semantic information matches the semantic information of the standard answer, it means that the intermediate information text does not solve the problem raised by the customer and is useless text information. The intermediate information text is removed, and the standard answer corresponding to the high-frequency question without the intermediate information text is used as the answer to the high-frequency question.

2. The method according to claim 1, characterized in that: The text recognition and data statistics are performed on each of the questions in the chat details information to obtain a plurality of high-frequency questions, including: Identify the named entities in each question in the chat details information to obtain all the words in each question; Perform word frequency statistics on all the words in each of the questions to obtain the word frequency of all the words in each of the questions; Sorting the word frequencies of all the words to obtain a sorting result; Determining a plurality of high-frequency words according to the sorting results; Among the questions, questions containing high-frequency words are regarded as high-frequency questions.

3. The method according to claim 1, characterized in that The acquisition of chat details information generated during the interaction between the e-commerce customer service of each virtual store in the seller workbench application and the customer includes: Launch the Seller Workbench application window; Entering the chat window interface of each of the virtual stores; The web page data on the chat window interface of each of the stores is collected, and the collected web page data is used as chat detail information.

4. The method according to claim 3, characterized in that The web page data on the chat window interface of each store is collected, and the collected web page data is used as chat details information, including: Get all target links of the current web page; Click on all the target links to enter the details page corresponding to each target link; Extracting data from a detail page corresponding to each of the target links, and using the extracted data from each of the detail pages as chat detail data; Check whether there is a page turning button in the current web page. If so, click the page turning button to enter the next web page, and use the next web page as the current web page, and return to execute the step of obtaining all target links of the current web page until no page turning button is found.

5. The method according to claim 3, characterized in that: The starting seller workbench application window includes: Use the automated testing tool to start the browser driver to launch the Seller Workbench application; The application window of the seller workbench application is started through a remote driver.

6. A text processing device based on RPA and AI, characterized in that: include: An information acquisition unit is used to acquire chat details information of each store in the seller workbench application, wherein the chat details information is generated during the interaction between the e-commerce customer service and the customer, and the chat details information of each store includes multiple questions and original information text corresponding to each question, and the original information text includes an intermediate process field and an answer field; A high-frequency question acquisition unit, configured to perform text recognition and data statistics on each of the questions in the chat details information to obtain a plurality of high-frequency questions; An answer acquisition unit is used to extract information and perform text sentiment analysis on the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question; A text generation unit, used for combining each of the high-frequency questions and the answers to the high-frequency questions into a target text; A text writing unit, used for writing all the target texts into a background QA knowledge base; The text writing unit extracts information and performs text sentiment analysis on the original information text of each of the high-frequency questions to obtain the answer to the high-frequency question, including: Performing sentiment attribute recognition on the original information text of each of the high-frequency questions to obtain the sentiment attribute of the original information text of each of the high-frequency questions; According to the sentiment attribute of each original information text, each original information text is screened to obtain an intermediate information text of each high-frequency question; Performing semantic recognition on the intermediate information text of each of the high-frequency questions to obtain semantic information of the intermediate information text of each of the high-frequency questions; Matching the semantic information of the intermediate information text of each of the high-frequency questions with the semantic information of each standard answer in a preset standard answer library to obtain a matching result; Based on the matching results, determining answers to the high-frequency questions; Determining the answers to the high-frequency questions based on the matching results specifically includes: The intermediate information text with sentiment attributes and semantic information consistent with the standard answer is used as the answer to the high-frequency question. If, after sentiment attribute identification, screening, semantic identification and matching, it is found that the intermediate information text has neither relevant sentiment attributes nor semantic information matches the semantic information of the standard answer, it means that the intermediate information text does not solve the problem raised by the customer and is useless text information. The intermediate information text is removed, and the standard answer corresponding to the high-frequency question without the intermediate information text is used as the answer to the high-frequency question.

7. A text processing device based on RPA and AI, characterized in that: include: Memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the text processing method based on RPA and AI as described in any one of claims 1 to 5.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the text processing method based on RPA and AI as described in any one of claims 1 to 5 is implemented.