Data acquisition method, device, electronic device and storage medium
By dividing multiple push tasks in the customer service quality inspection system, and obtaining and saving customer service quality inspection data, the problem of excessive quality inspection time and inflexible data rollback caused by massive data import is solved, and efficient and flexible data management is achieved.
Patent Information
- Application Number
- CN202111153926.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2041-09-29
AI Technical Summary
In the customer service quality inspection system, when there is a large amount of data to be imported, the quality inspection process carries too much data, which leads to too long time. If some data is incorrect, the data during the entire quality inspection process needs to be deleted, which is not very flexible.
By setting up timed data tasks, the data tasks are divided into push tasks that contain multiple push moments, and then the customer service quality inspection data is obtained based on the push moment and saved to the target data set to associate it with the push task to improve data flexibility.
Through push tasks, the customer service quality inspection data is saved to the data set according to the push time, which improves data flexibility, reduces the cost of rolling back the full data caused by wrong data, and improves the efficiency of the quality inspection process.
Smart Images

Figure CN113836424B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technologies, and more particularly, to a data acquisition method, apparatus, electronic device, and storage medium. Background Art
[0002] In a customer service quality inspection system, it is first necessary to import customer service quality inspection data into the system. When there is a large amount of data to be imported, the quality inspection process will carry too much data. At this time, if some of the customer service quality inspection data in the quality inspection is incorrect, it is necessary to delete or roll back all the customer service quality inspection data involved in the entire quality inspection process, and the flexibility is not high. Summary of the Invention
[0003] In view of the above problems, this application proposes a data acquisition method, apparatus, electronic device, and storage medium, which can solve the above problems.
[0004] In a first aspect, an embodiment of this application provides a data acquisition method, which is applied to a first terminal of a customer service quality inspection system. The customer service quality inspection system further includes a second terminal connected to the first terminal. The method includes: obtaining a push task, where the push task includes multiple push times; obtaining customer service quality inspection data according to each of the push times; and sending the customer service quality inspection data to the second terminal, so that the second terminal saves the customer service quality inspection data to a target data set after receiving the customer service quality inspection data, where the target data set is associated with the push task.
[0005] Optionally, the sending the customer service quality inspection data to the second terminal includes: converting the customer service quality inspection data into customer service quality inspection data in a preset data format; and sending the converted customer service quality inspection data to the second terminal.
[0006] Optionally, the sending the data to be sent to the second terminal includes: encapsulating the customer service quality inspection data into an HTTP message based on the HTTP protocol, and sending the HTTP message to a specified interface of the second terminal.
[0007] Optionally, the preset data format is the JSON format.
[0008] In a second aspect, an embodiment of this application provides a data acquisition method, which is applied to a second terminal of a customer service quality inspection system. The customer service quality inspection system further includes a first terminal connected to the second terminal. The method includes: receiving customer service quality inspection data sent by the first terminal, where the customer service quality inspection data is obtained by the first terminal according to each push time of a push task; and saving the customer service quality inspection data to a target data set, where the target data set is associated with the push task.
[0009] Optionally, before saving the customer service quality inspection data to the target data set, the method further includes: if there is no target data set associated with the push task in the second terminal, creating a target data set and associating the target data set with the push task.
[0010] Optionally, creating the target data set and associating the target data set with the push task includes: creating the target data set in the data set entry of the database of the second terminal and associating the target data set with the push task.
[0011] Optionally, saving the customer service quality inspection data to the target data set includes: synchronizing the target data set to the database cache of the second terminal and saving the customer service quality inspection data to the target data set in the database cache.
[0012] Optionally, after saving the customer service quality inspection data to the target data set in the database cache, the method further includes: if the cache time for the database cache to save the customer service quality inspection data reaches the push interval time of the push task, saving the customer service quality inspection data to the quality inspection session table in the database of the second terminal and associating the quality inspection session table with the target data set, where the push interval time is the time interval between two adjacent push times.
[0013] Optionally, the method further includes: adjusting the status of the target data set in the data set entry of the database of the second terminal to completed.
[0014] Optionally, before saving the customer service quality inspection data to the target data set, the method further includes: if there is cached data in the target data set, saving the cached data to the quality inspection session table in the database of the second terminal and associating the quality inspection session table with the target data set.
[0015] In a third aspect, an embodiment of the present application provides a customer service quality inspection system, which includes a first terminal and a second terminal connected to each other. The system includes: the first terminal is used to obtain a push task, and the push task includes multiple push times; the first terminal is further used to obtain customer service quality inspection data according to each push time; the first terminal is further used to send the customer service quality inspection data to the second terminal; the second terminal is used to receive the customer service quality inspection data; the second terminal is further used to save the customer service quality inspection data to a target data set, where the target data set is associated with the push task.
[0016] Fourthly, an embodiment of the present application provides a data acquisition device for a first terminal of a customer service quality inspection system. The customer service quality inspection system further includes a second terminal connected to the first terminal. The device includes: a first acquisition unit, a second acquisition unit, and a sending unit. Among them, the first acquisition unit is configured to acquire a push task, and the push task includes multiple push times; the second acquisition unit is configured to acquire customer service quality inspection data according to each push time; the sending unit is configured to send the customer service quality inspection data to the second terminal, so that the second terminal saves the customer service quality inspection data to a target data set after receiving the customer service quality inspection data, where the target data set is associated with the push task.
[0017] Fifthly, an embodiment of the present application provides a data acquisition device applied to a second terminal of a customer service quality inspection system. The customer service quality inspection system further includes a first terminal connected to the second terminal. The device includes: a receiving unit and a storage unit. Among them, the receiving unit is configured to receive customer service quality inspection data sent by the first terminal, and the customer service quality inspection data is acquired by the first terminal according to each push time of a push task; the storage unit is configured to save the customer service quality inspection data to a target data set, where the target data set is associated with the push task.
[0018] Sixthly, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more application programs, where the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute the method of the first aspect or the second aspect above.
[0019] Seventhly, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the method of the first aspect or the second aspect above.
[0020] The data acquisition method, device, electronic device, and storage medium provided by the present application are applied to a customer service quality inspection system, and the customer service quality inspection system includes a first terminal and a second terminal connected to each other. After the first terminal acquires a push task including multiple push times, it acquires customer service quality inspection data according to each push time, and then sends the customer service quality inspection data to the second terminal. The second terminal receives the customer service quality inspection data and saves the customer service quality inspection data to a target data set, where the target data set is associated with the push task. The present application saves the customer service quality inspection data to the data set according to the push time based on the push task, improving the flexibility of the customer service quality inspection data.
[0021] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. Brief Description of the Drawings
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0023] Figure 1 Fig. shows a schematic diagram of an application environment of a data acquisition method provided by an embodiment of the present application;
[0024] Figure 2 Fig. shows a schematic flowchart of a data acquisition method provided by an embodiment of the present application;
[0025] Figure 3 Fig. shows a schematic diagram of a background management interface provided by another embodiment of the present application;
[0026] Figure 4 Fig. shows a schematic diagram of a network architecture provided by another embodiment of the present application;
[0027] Figure 5 Fig. shows a schematic flowchart of a data acquisition method provided by another embodiment of the present application;
[0028] Figure 6 Fig. shows a schematic flowchart of a data acquisition method provided by another embodiment of the present application;
[0029] Figure 7 Fig. shows a schematic flowchart of a data acquisition method provided by yet another embodiment of the present application;
[0030] Figure 8 Fig. shows a schematic flowchart of a data acquisition method of a customer service quality inspection system provided by an embodiment of the present application;
[0031] Figure 9 Fig. shows a flowchart block diagram of a data acquisition method of a customer service quality inspection system provided by an embodiment of the present application;
[0032] Figure 10 Fig. shows a block diagram of modules of a data acquisition device provided by an embodiment of the present application;
[0033] Figure 11 Fig. shows a block diagram of modules of a data acquisition device provided by another embodiment of the present application;
[0034] Figure 12 Fig. shows a block diagram of the structure of an electronic device provided by an embodiment of the present application;
[0035] Figure 13The structural block diagram of a computer-readable storage medium provided by an embodiment of the present application is shown. Detailed implementation manners
[0036] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
[0037] To solve various problems of customers, customer service often provides services such as consultation and answering questions for customers. The service quality of customer service has a great impact on the image of shopping malls or stores, the conversion rate, the repeat purchase rate, etc. By providing high-quality services, customer service can shape the image of shopping malls or stores, improve the conversion rate and the repeat purchase rate, etc. To ensure service quality, it is necessary to conduct quality inspections on messages such as voice, text, and video of customer service during work as customer service quality inspection data. In the customer service quality inspection system, first, the customer service quality inspection data needs to be imported into the system. Usually, the customer service quality inspection data is directly pushed to the customer service quality inspection system that executes the quality inspection task.
[0038] After careful research, the inventors found that when there is a large amount of customer service quality inspection data to be imported, the quality inspection process will carry too much data, which will lead to too long quality inspection time. In addition, if some of the customer service quality inspection data involved in the quality inspection is incorrect, it may be necessary to delete or roll back all the customer service quality inspection data involved in the quality inspection process. In this way, the cost brought by the lack of flexibility of the customer service quality inspection data is very high.
[0039] To solve the above problems, the inventors of the present application have devoted themselves to research and development. When setting a timed data task, by setting the data task to be divided into a push task including multiple push times, and then obtaining the customer service quality inspection data based on the push time, and when receiving the customer service quality inspection data, the customer service quality inspection data will also be saved into the target data set, and the target data set is also associated with the push task to increase the flexibility of the customer service quality inspection data.
[0040] To better understand a data acquisition method, device, electronic device, and storage medium provided by an embodiment of the present application, the application environment applicable to the embodiment of the present application will be described below.
[0041] Please refer to Figure 1 , Figure 1 shows a schematic diagram of an application environment of a data acquisition method provided by an embodiment of the present application. The data acquisition method, device, electronic device, and storage medium provided by the embodiment of the present application can be applied to, for example Figure 1The customer service quality inspection system 100 shown. The customer service quality inspection system 100 includes a first terminal 110 and a second terminal 120, and the first terminal 110 is communicatively connected to the second terminal 120. Among them, the first terminal 110 and the second terminal 120 can be various electronic devices, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, wearable electronic devices, or servers, etc. Specifically, the electronic device can also have a data input function. The data input can be inputting voice based on the voice module configured in the electronic device, inputting characters through the character input module, inputting images through the image input module, inputting videos through the video input module, etc. It can also be based on the gesture recognition module configured in the electronic device, enabling the user to implement interaction methods such as gesture input. Multiple application programs can be installed in the electronic device, and the user can use multiple application programs to achieve different functions and uses.
[0042] Optionally, if the first terminal 110 or the second terminal 120 is a server, the server can be implemented by an independent server or a server cluster composed of multiple servers. In addition, the server can be a cloud server or a traditional computer room server, and no specific limitation is made here.
[0043] In some embodiments, the first terminal 110 can push customer service quality inspection data to the second terminal 120, so that the second terminal can store or further process it, etc. after receiving the customer service quality inspection data.
[0044] The above application environment is only an example for easy understanding. It can be understood that the embodiments of the present application are not limited to the above application environment.
[0045] The data acquisition methods, devices, electronic devices, and storage media provided by the embodiments of the present application will be described in detail below through specific embodiments.
[0046] Please refer to Figure 2 , which shows a schematic flowchart of a data acquisition method provided by an embodiment of the present application, applied to the first terminal of the customer service quality inspection system. The customer service quality inspection system further includes a second terminal connected to the first terminal. The following will be elaborated in detail for Figure 2 the process shown. The data acquisition method may specifically include the following steps:
[0047] Step S210: Obtain a push task, where the push task includes multiple push times.
[0048] In the embodiments of the present application, before pushing the customer service quality inspection data to the second terminal, the first terminal first obtains a push task, where the push task includes multiple push times.
[0049] In some implementation manners, the push task can be pre-configured. Such asFigure 3 As shown, the user can Figure 3 configure a push task in the push task configuration interface shown. Among them, the push task configuration interface can be displayed on the background management interface 300 of the customer service quality inspection system. The user can access this background management interface by accessing the first terminal, the second terminal, etc., so as to configure the push task. In the push task configuration interface, the user can configure the push task according to the actual needs of quality inspection. Exemplarily, the user can set multiple push times for the push task, set the task name. Further, the user can also set the type of customer service quality inspection data, the start time or end time of the push task, etc. After the user confirms that the configuration is completed, a task identifier will be generated for the push task, such as generating a task ID, etc., which can be used to identify different push tasks.
[0050] In addition, in some embodiments, the task status of the push task can also be set. For example, the push task can be set to an open state or a closed state, etc. When in the open state, the push task can be executed on time according to multiple push times; when in the closed state, the push task is suspended. In this way, according to the actual needs, the push task can be turned on when it is necessary to perform quality inspection on the messages of the customer service during work, and the push task can be turned off when quality inspection is not required.
[0051] It can be understood that the multiple push times can be multiple specific times. Exemplarily, if the push task includes a start time and is set to execute once every predetermined time interval, then the multiple push times can be the times represented when the push task is executed every time at an interval of the predetermined time based on the start time. For example, if the start time is 12:00 and the predetermined time is 1 hour, then the multiple push times can be 12:00, 13:00, 14:00... etc. Optionally, multiple push times can also be directly specified for the push task, such as setting the push task to execute at 12:00, 14:00, and 16:00.
[0052] Step S220: Obtain customer service quality inspection data according to each of the push times.
[0053] In some embodiments, the customer service quality inspection data can be obtained according to each of the above push times. Among them, when the customer service is having a conversation with the customer, messages such as voice, text, and video generated during the conversation process can be saved to the local terminal, server, or cloud used by the customer service. When executing the push task of the customer service quality inspection data, a request can be actively sent to the above local terminal, server, or cloud according to each push time to obtain the customer service quality inspection data in the local terminal, server, or cloud; such as Figure 4As shown, the push task can also be synchronized to the cloud. When the time reaches each push moment, the customer service quality inspection data is sent to the first terminal according to the push moment.
[0054] Optionally, the customer service quality inspection data can also be stored in the memory of the first terminal. When stored in the memory of the first terminal, the customer service quality inspection data can be obtained from the memory of the first terminal according to each push moment.
[0055] Step S230: Send the customer service quality inspection data to the second terminal so that the second terminal saves the customer service quality inspection data to the target data set after receiving the customer service quality inspection data, where the target data set is associated with the push task.
[0056] In the embodiments of the present application, after obtaining the customer service quality inspection data, the first terminal will send the customer service quality inspection data to the second terminal. Optionally, after obtaining the customer service quality inspection data, the first terminal immediately sends the customer service quality inspection data to the second terminal. Since the customer service quality inspection data is obtained according to the push moment, the first terminal also sends the customer service quality inspection data to the second terminal according to the push moment.
[0057] After receiving the customer service quality inspection data sent by the first terminal, the second terminal will save the customer service quality inspection data to the target data set and associate the target data set with the above push task.
[0058] In some embodiments, when the first terminal sends the customer service quality inspection data, it will carry a task identifier for identifying the push task, such as carrying a task ID, etc. In addition, a data set identifier can also be generated for the data set in the second terminal, such as generating a data set ID, etc., which can be used to identify different data sets. Thus, after the second terminal receives the customer service quality inspection data and saves the customer service quality inspection data to the target data set, the data set ID of the target data set can be associated with the task ID of the push task, which is convenient for subsequent processing. Based on the task ID, the corresponding data set can be found, so as to find the target data set in which the customer service quality inspection data corresponding to the push task is saved in the second terminal.
[0059] When obtaining customer service quality inspection data according to each push time in the push task, the customer service quality inspection data with a large data volume can be divided into multiple pieces of customer service quality inspection data with a smaller data volume according to the push time. Finally, after obtaining the data set segmented by the push frequency in the second terminal, the data set to which the customer service quality inspection data belongs can be processed flexibly. For example, when some of the customer service quality inspection data in the quality inspection has errors, find the part of the customer service quality inspection data with errors, and then trace back to the push task through the data set identifier of the target data set corresponding to this part of the customer service quality inspection data. Only need to delete this part of the customer service quality inspection data, and then re-push the customer service quality inspection data according to the push task found by tracing back, which improves the flexibility of the customer service quality inspection data.
[0060] In summary, the data acquisition method provided in this embodiment is applied to the first terminal of the customer service quality inspection system, and the customer service quality inspection system further includes a second terminal connected to the first terminal. After the first terminal obtains a push task including multiple push times, it obtains customer service quality inspection data according to each push time, and then sends the customer service quality inspection data to the second terminal, so that after the second terminal receives the customer service quality inspection data, it saves the customer service quality inspection data to the target data set, where the target data set is associated with the push task. This application saves the customer service quality inspection data to the data set according to the push time based on the push task, improving the flexibility of the customer service quality inspection data.
[0061] Optionally, based on the above embodiment, this embodiment provides a data acquisition method. By converting the obtained customer service quality inspection data into customer service quality inspection data in a preset data format and then sending it to the second terminal, it can facilitate data interaction between the first terminal and the second terminal, and at the same time can carry the identification information of the push task. Please refer to Figure 5 , which shows a schematic flowchart of a data acquisition method provided in another embodiment of the present application, applied to the first terminal of the customer service quality inspection system, and the customer service quality inspection system further includes a second terminal connected to the first terminal. The data acquisition method may specifically include the following steps:
[0062] Step S510: Obtain a push task, where the push task includes multiple push times.
[0063] Step S520: Obtain customer service quality inspection data according to each of the push times.
[0064] Specifically, for the specific descriptions of steps S510 - S520, please refer to steps S210 - S220 in the foregoing embodiment, which will not be elaborated here.
[0065] Step S530: Convert the customer service quality inspection data into customer service quality inspection data in a preset data format.
[0066] As an implementation, before sending the customer service quality inspection data to the second terminal, the customer service quality inspection data to be sent may first be converted into a preset data format. After being converted into the preset data format, it is convenient for data interaction between the first terminal and the second terminal, easy for human reading and writing, and also easy for machine parsing and generation.
[0067] In some typical embodiments, the preset data format may be the xml format or the JSON format. The preset data format may also be determined based on the interaction protocol between the first terminal and the second terminal. As an implementation, the customer service quality inspection data may be sent to the second terminal based on the HTTP protocol. In this case, the preset data format may be the JSON format.
[0068] Step S540: Send the converted customer service quality inspection data to the second terminal so that the second terminal saves the customer service quality inspection data to the target data set after receiving the customer service quality inspection data, where the target data set is associated with the push task.
[0069] In some embodiments, when sending the customer service quality inspection data to the second terminal, the customer service quality inspection data may be encapsulated into an HTTP message based on the HTTP protocol, and the HTTP message may be sent to the specified interface of the second terminal.
[0070] In the embodiments of the present application, after converting the customer service quality inspection data into the customer service quality inspection data in the preset data format, then, the converted customer service quality inspection data may be sent to the second terminal. Further, when using the HTTP protocol, the customer service quality inspection data may first be converted into the customer service quality inspection data in the JSON format, and then the JSON format customer service quality inspection data may be sent to the specified interface of the second terminal using the HTTP protocol. Optionally, the specified interface may be port 80.
[0071] In some implementations, after the second terminal receives the customer service quality inspection data in the preset data format taking the JSON format as an example, the truly required customer service quality inspection data may first be parsed from the customer service quality inspection data in the preset data format, and then the customer service quality inspection data may be saved to the target data set.
[0072] It can be understood that the second terminal will associate the target data set with the push task. Therefore, when the first terminal performs format conversion, the task identifier of the push task may be converted into the preset data format together with the customer service quality inspection data. For example, in addition to carrying the customer service quality inspection data itself in the JSON format customer service quality inspection data, the task ID may also be carried. Thus, after the second terminal obtains the converted customer service quality inspection data, the customer service quality inspection data and the task identifier can be obtained at the same time, and then when the customer service quality inspection data is saved to the target data set, the data set identifier of the target data set may be associated with the task identifier.
[0073] In summary, in this embodiment, after obtaining the customer service quality inspection data according to each push time in the push task, the customer service quality inspection data can be converted into the customer service quality inspection data in a preset data format and then sent to the second terminal. Thus, while improving the flexibility of the customer service quality inspection data, it is also convenient for data interaction between the first terminal and the second terminal, and at the same time, the identification information of the push task can be carried.
[0074] Optionally, please refer to Figure 6 , Figure 6 which shows a schematic flowchart of a data acquisition method provided by another embodiment of the present application, applied to the second terminal of the customer service quality inspection system. The customer service quality inspection system further includes a first terminal connected to the second terminal. The data acquisition method may specifically include the following steps:
[0075] Step S610: Receive the customer service quality inspection data sent by the first terminal, where the customer service quality inspection data is obtained by the first terminal based on each push time of the push task.
[0076] In the embodiment of the present application, first, the second terminal will receive the customer service quality inspection data sent by the first terminal. Among them, the customer service quality inspection data can be obtained by the first terminal based on each push time of the push task.
[0077] In some embodiments, the push task can be pre-configured by the user. For example, the push task can be configured in a push task configuration interface as shown in Figure 3 . It can be understood that the push task includes multiple push times. Thus, the first terminal can obtain the customer service quality inspection data according to each push time, and then send the obtained customer service quality inspection data to the second terminal.
[0078] In some typical embodiments, the first terminal can also convert the customer service quality inspection data into a preset data format before sending the customer service quality inspection data. The second terminal can parse out the truly required customer service quality inspection data from the preset data format after receiving the preset data format. It should be understood that the preset data format can be a format agreed upon by the first terminal and the second terminal. For example, it can be determined according to the interaction protocol used by the first terminal and the second terminal, etc.
[0079] Step S620: Save the customer service quality inspection data to the target data set, where the target data set is associated with the push task.
[0080] In an embodiment of the present application, subsequently, the second terminal can save the customer service quality inspection data to the target dataset. Moreover, in order to trace the source of the customer service quality inspection data during subsequent quality inspection processes, the target dataset can be associated with the push task. Since the customer service quality inspection data is obtained according to the push time, on the first terminal, the customer service quality inspection data with a large data volume can be divided into multiple pieces of customer service quality inspection data with a smaller data volume according to the push time. And the target dataset for saving the customer service quality inspection data in the second terminal is also associated with the push task. Finally, after obtaining the dataset sliced by the push time in the second terminal, the dataset to which the customer service quality inspection data belongs can be processed flexibly.
[0081] In summary, the data acquisition method provided in this embodiment is applied to the second terminal of the customer service quality inspection system, and the customer service quality inspection system further includes a first terminal connected to the second terminal. The second terminal receives the customer service quality inspection data sent by the first terminal, and the customer service quality inspection data is obtained by the first terminal based on each push time of the push task. Then, the second terminal saves the customer service quality inspection data to the target dataset, where the target dataset is associated with the push task. This application saves the customer service quality inspection data to the dataset according to the push time based on the push task, improving the flexibility of the customer service quality inspection data.
[0082] Optionally, based on the above embodiment, this embodiment provides a data acquisition method. After the second terminal of this application receives the customer service quality inspection data obtained based on the push time of the push task, when the target dataset does not exist, a dataset associated with the push task is newly created, and then the customer service quality inspection data is saved to this dataset, improving the flexibility of the customer service quality inspection data. Please refer to Figure 7 , which shows a schematic flowchart of the data acquisition method provided in another embodiment of this application, applied to the second terminal of the customer service quality inspection system, and the customer service quality inspection system further includes a first terminal connected to the first terminal. The data acquisition method may specifically include the following steps:
[0083] Step S710: Receive the customer service quality inspection data sent by the first terminal, and the customer service quality inspection data is obtained by the first terminal based on each push time of the push task.
[0084] For the specific description of step S710, please refer to step S610 in the foregoing embodiment, and details are not described herein again.
[0085] Step S720: If there is no target dataset associated with the push task in the second terminal, create a target dataset, and associate the target dataset with the push task.
[0086] In the foregoing embodiments, after the second terminal receives the customer service quality inspection data sent by the first terminal, the customer service quality inspection data may be saved to the target data set. In some embodiments of the present application, it is first determined whether there is a target data set associated with the push task in the second terminal. If it exists, since the target data set is already associated with the push task, the customer service quality inspection data is directly saved to the target data set; if it does not exist, a target data set may be newly created in the second terminal, and then the target data set is associated with the push task.
[0087] In some embodiments, the data set in the second terminal may be cached in the memory of the second terminal. Correspondingly, it may be checked whether there is a target data set associated with the push task in the memory of the second terminal. If it does not exist, a target data set associated with the push task may also be newly created in the memory of the second terminal.
[0088] In other embodiments, a target data set may be newly created in the data set entry of the database of the second terminal, and the target data set is associated with the push task. Optionally, the data set identifier of the newly created target data set in the database may be associated with the task identifier of the push task.
[0089] Step S730: Save the customer service quality inspection data to the target data set.
[0090] Next, in the embodiments of the present application, the second terminal will save the customer service quality inspection data to the target data set newly created in the above steps. It can be understood that when the target data set is newly created, the target data set is already associated with the push task.
[0091] Optionally, after a target data set is newly created in the data set entry of the database of the second terminal, the target data set in the data set entry may be synchronized to the database cache of the second terminal, and then the customer service quality inspection data is saved to the target data set in the database cache. It should be understood that since the target data set in the data set entry is associated with the push task, after the data set is synchronized to the database cache, the target data set in the data set cache is also associated with the push task.
[0092] Optionally, after saving the customer service quality inspection data to the target data set in the database cache, the cache time for the database cache to save the customer service quality inspection data will also be detected. In some embodiments, there is also a quality inspection session table in the database of the second terminal, which is used to save the conversation records between the customer service and the customer, that is, the customer service quality inspection data in the customer service quality inspection system. If the cache time reaches the push interval time of the push task, the second terminal can save the customer service quality inspection data to the quality inspection session table in the database of the second terminal, and associate the quality inspection session table with the target data set, so that the customer service quality inspection data saved in the database is also associated with the target data set, and thus the purpose of being associated with the push task can be achieved. Among them, the push interval time is the time interval between two adjacent push times.
[0093] Exemplarily, a cache time and a cache invalidation listener that are the same as the push interval time can be set. When the cache time is cleared (that is, the cache time has reached the push interval time), the cache invalidation listener is triggered. When the cache invalidation listener is triggered, the data set identifier of the target data set in the cache will be read, and then the status of the data set indicated by the corresponding data set identifier in the database will be modified to "completed". At the same time, the customer service quality inspection data saved in the target data set in the cache can be saved to the quality inspection session table in the database, and the data set identifier can be associated. It can be understood that the data set identifier in the embodiments of the present application can be the data set ID in the foregoing embodiments, and the task identifier can be the task ID in the foregoing embodiments.
[0094] In addition, if it is determined that there is already a target data set associated with the push task in the second terminal, in some embodiments, there may be cached data in the target data set. It can be understood that since the target data set is associated with the push task to which the customer service quality inspection data received this time belongs, the cached data may be the customer service quality inspection data obtained by the second terminal from different push times of the same push task received by the first terminal. Therefore, if it is detected that there is cached data in the target data set, the cached data can also be saved to the quality inspection session table in the database of the second terminal, and the quality inspection session table can be associated with the target data set. Then, the customer service quality inspection data received by the second terminal this time is saved to the target data set.
[0095] In summary, the data acquisition method provided in this embodiment is applied to the second terminal of the customer service quality inspection system, and the customer service quality inspection system further includes a first terminal connected to the second terminal. The second terminal receives the customer service quality inspection data sent by the first terminal, and the customer service quality inspection data is obtained by the first terminal based on each push moment of the push task. If there is no target data set associated with the push task in the second terminal, a target data set will be newly created, and then the target data set will be associated with the push task. Then, the customer service quality inspection data will be saved to the target data set. After the second terminal of the present application receives the customer service quality inspection data obtained based on the push moment of the push task, when the target data set does not exist, a data set associated with the push task will also be newly created, and then the customer service quality inspection data will be saved to the data set, improving the flexibility of the customer service quality inspection data. In addition, a database and a database cache are introduced in this embodiment, and the customer service quality inspection data can be saved to the data set in the cache in stages first, and then the customer service quality inspection data in the cache can be saved to the database, facilitating the flexible and rapid acquisition of the required quality inspection data source during the subsequent quality inspection process.
[0096] Please refer to Figure 8 , which shows a schematic flowchart of the data acquisition method of the customer service quality inspection system provided in an embodiment of the present application, applied to the customer service quality inspection system, and the customer service quality inspection system includes a first terminal and a second terminal connected to each other. The method includes: S810 to S850.
[0097] Step S810: The first terminal acquires a push task, and the push task includes multiple push moments.
[0098] In the embodiment of the present application, the first terminal first acquires a push task, and the push task includes multiple push moments.
[0099] In some embodiments, as Figure 9 shown, the push task can be pre-configured. For example, the task name, task type, and the type of customer service quality inspection data (text or voice) can be configured for the push task in the push task configuration interface. After the push task is configured, a task ID can be generated, and this task ID can be carried when pushing the customer service quality inspection data. In addition, the push task can be set to be enabled or disabled. When the push task is in the disabled state, the quality inspection data cannot be pushed.
[0100] Step S820: The first terminal acquires the customer service quality inspection data according to each of the push moments.
[0101] In the embodiment of the present application, the customer service quality inspection data can be acquired according to each of the above push moments.
[0102] Step S830: The first terminal sends the customer service quality inspection data to the second terminal.
[0103] In an embodiment of the present application, after obtaining the customer service quality inspection data, the first terminal will send the customer service quality inspection data to the second terminal. Please refer to Figure 9 again. In some embodiments, the first terminal can also push the customer service quality inspection data in a preset data format to a specified interface based on the preset data format and using the HTTP protocol.
[0104] For the specific descriptions of steps S810 - S830, please refer to steps S210 - S230 in the foregoing embodiments, which will not be elaborated herein.
[0105] Step S840: The second terminal receives the customer service quality inspection data.
[0106] Next, the second terminal can receive the customer service quality inspection data sent by the first terminal. Among them, if the first terminal converts the customer service quality inspection data into a preset data format during sending, the customer service quality inspection data received by the second terminal is also in the preset data format. Therefore, the second terminal can parse the customer service quality inspection data in the preset data format to obtain the required customer service quality inspection data itself. Optionally, the customer service quality inspection data in the preset data format can also include the task ID of the push task.
[0107] Step S850: The second terminal saves the customer service quality inspection data to the target data set, where the target data set is associated with the push task.
[0108] In an embodiment of the present application, after receiving the customer service quality inspection data, the second terminal can save the customer service quality inspection data to the target data set. And, in order to trace the source of the customer service quality inspection data during the subsequent quality inspection process, the target data set can be associated with the push task. Since the customer service quality inspection data is obtained according to the push time, the first terminal can divide the customer service quality inspection data with a large data volume into multiple customer service quality inspection data with a small data volume according to the push time. And the target data set for saving the customer service quality inspection data in the second terminal is also associated with the push task. Finally, a data set divided based on the push task is obtained in the second terminal, so that the data set to which the customer service quality inspection data belongs can be flexibly processed during the quality inspection process.
[0109] For the specific descriptions of steps S840 - S850, please refer to steps S610 - S620 in the foregoing embodiments, which will not be elaborated herein.
[0110] In summary, the customer service quality inspection system provided by the embodiments of the present application includes a first terminal and a second terminal connected to each other. After the first terminal obtains a push task including multiple push times, it obtains customer service quality inspection data according to each push time, and then sends the customer service quality inspection data to the second terminal. The second terminal receives the customer service quality inspection data and saves the customer service quality inspection data to a target data set, where the target data set is associated with the push task. The present application saves customer service quality inspection data to a data set according to the push time based on the push task, improving the flexibility of the customer service quality inspection data.
[0111] Please refer to Figure 10 , which shows a block diagram of a data acquisition device provided by an embodiment of the present application. Specifically, the device is applied to the first terminal of the customer service quality inspection system, and the customer service quality inspection system further includes a second terminal connected to the first terminal. The device includes: a first acquisition unit 1010, a second acquisition unit 1020, and a sending unit 1030.
[0112] The first acquisition unit 1010 is configured to acquire a push task, where the push task includes multiple push times; the second acquisition unit 1020 is configured to acquire customer service quality inspection data according to each of the push times; the sending unit 1030 is configured to send the customer service quality inspection data to the second terminal, so that the second terminal saves the customer service quality inspection data to a target data set after receiving the customer service quality inspection data, where the target data set is associated with the push task.
[0113] Optionally, the sending unit 1030 may include: a conversion unit configured to convert the customer service quality inspection data into customer service quality inspection data in a preset data format; a first sending unit configured to send the converted customer service quality inspection data to the second terminal.
[0114] In some embodiments, the above preset data format is JSON format.
[0115] Optionally, the first sending unit may include: a second sending unit configured to encapsulate the customer service quality inspection data into an HTTP message based on the HTTP protocol and send the HTTP message to a specified interface of the second terminal.
[0116] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described device and module can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
[0117] Please refer to Figure 11, which shows a block diagram of a data acquisition device provided in another embodiment of the present application. Specifically, the device is applied to a second terminal of a customer service quality inspection system, and the customer service quality inspection system further includes a first terminal connected to the second terminal. The device includes: a receiving unit 1110 and a storage unit 1120.
[0118] The receiving unit 1110 is configured to receive customer service quality inspection data sent by the first terminal, where the customer service quality inspection data is obtained by the first terminal based on each push moment of a push task; the storage unit 1120 is configured to save the customer service quality inspection data to a target data set, where the target data set is associated with the push task.
[0119] Optionally, the data acquisition device may further include: a first processing unit, configured to create a target data set if there is no target data set associated with the push task in the second terminal, and associate the target data set with the push task.
[0120] In some embodiments, the above first processing unit includes: a second processing unit, configured to create the target data set in a data set entry of a database of the second terminal and associate the target data set with the push task.
[0121] Further, the above storage unit 1120 may include: a synchronization unit, configured to synchronize the target data set to a database cache of the second terminal and save the customer service quality inspection data to the target data set in the database cache.
[0122] Furthermore, the data acquisition device may further include: a third processing unit, configured to save the customer service quality inspection data to a quality inspection session table in the database of the second terminal and associate the quality inspection session table with the target data set if a cache time for saving the customer service quality inspection data in the database cache reaches a push interval time of the push task, where the push interval time is a time interval between two adjacent push moments.
[0123] Furthermore, the data acquisition device may further include: an adjustment unit, configured to adjust a state of the target data set in a data set entry of the database of the second terminal to completed.
[0124] In some embodiments, the data acquisition device may further include: a fourth processing unit, configured to save the cached data to a quality inspection session table in the database of the second terminal and associate the quality inspection session table with the target data set if there is cached data in the target data set.
[0125] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the modules / units / sub-units / components in the above-described device can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0126] In several embodiments provided in the present application, the coupling, direct coupling, or communication connection between the modules shown or discussed with each other can be through some interfaces. The indirect coupling or communication connection of the devices or modules can be in electrical, mechanical, or other forms.
[0127] In addition, in each embodiment of the present application, the various functional modules can be integrated in one processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.
[0128] Please refer to Figure 12 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. Specifically, the electronic device includes one or more of the following components: a processor 1210, a memory 1220, and one or more application programs. One or more application programs can be stored in the memory 1220 and configured to be executed by one or more: processors 1210. The one or more application programs are configured to execute the methods described in any of the foregoing method embodiments applied to the first terminal or the second terminal.
[0129] The electronic device can be any of various types of computer system devices that are mobile, portable, and perform wireless communication. Specifically, the electronic device can be a mobile phone or a smart phone (e.g., an iPhone TM-based phone, an Android TM-based phone), a portable gaming device (e.g., a Nintendo DS TM, a PlayStation Portable TM, a Gameboy Advance TM, an iPhone TM), a laptop computer, a PDA, a portable Internet device, a music player, a server, and a data storage device, other handheld devices, and such as smart watches, smart bracelets, earphones, pendants, etc. The electronic device can also be other wearable devices (e.g., such as electronic glasses, electronic clothes, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices, or head-mounted devices (HMD)).
[0130] The electronic device can also be any one of a plurality of electronic devices, and the plurality of electronic devices include, but are not limited to, cellular phones, smart phones, smart watches, smart bracelets, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation instruments, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbook computers, personal digital assistants (PDAs), portable multimedia players (PMPs), Moving Picture Experts Group (MPEG-1 or MPEG-2) Audio Layer 3 (MP3) players, portable medical devices, and digital cameras and combinations thereof.
[0131] In some cases, the electronic device can perform multiple functions (e.g., play music, display video, store pictures, and receive and send phone calls). If needed, the electronic device can be a device such as a cellular phone, media player, other handheld device, wristwatch device, pendant device, earpiece device, or other compact portable device.
[0132] The processor 1210 can include one or more processing cores. The processor 1210 connects various parts within the entire electronic device using various interfaces and lines. By running or executing instructions, application programs, code sets, or instruction sets stored in the memory 1220, and by calling data stored in the memory 1220, the processor 1210 performs various functions of the electronic device and processes data. Optionally, the processor 1210 can be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1210 can integrate a combination of one or more of a Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communication. It can be understood that the above modem may not be integrated into the processor 1210 and can be implemented separately through a communication chip.
[0133] The memory 1220 may include a Random Access Memory (RAM), and may also include a Read-Only Memory. The memory 1220 can be used to store instructions, application programs, code, code sets, or instruction sets. The memory 1220 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), and is used to execute the methods described in any of the method embodiments applied to the first terminal and the second terminal. The data storage area can also store data created during the use of the electronic device (such as a phone book, audio and video data, chat record data, etc.).
[0134] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the processor 1210 and the memory 1220 of the above-described electronic device can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein again.
[0135] Please refer to Figure 13 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable storage medium 1300, and the program code can be called by a processor to execute the methods described in any of the above method embodiments.
[0136] The computer-readable storage medium 1300 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 1300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1300 has a storage space for the program code 1310 for executing any method step in the above methods. These program codes can be read out from or written into one or more computer program products. The program code 1310 can be compressed in an appropriate form. Among them, the computer-readable storage medium 1300 can be, for example, a Read-Only Memory (ROM), a Random Access Memory (RAM), an SSD, an Electrically Erasable Programmable Read Only Memory (EEPROM), or a Flash Memory (Flash).
[0137] It should be noted that in this text, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element.
[0138] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, SSD, Flash) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of the present application.
[0139] In summary, the data acquisition method, device, electronic device and storage medium provided by the present application are applied to a customer service quality inspection system, and the customer service quality inspection system includes a first terminal and a second terminal connected to each other. After the first terminal obtains a push task including multiple push times, customer service quality inspection data is obtained according to each push time, and then the customer service quality inspection data is sent to the second terminal. The second terminal receives the customer service quality inspection data and saves the customer service quality inspection data to a target data set, where the target data set is associated with the push task. The present application saves customer service quality inspection data to the data set according to the push time based on the push task, improving the flexibility of the customer service quality inspection data.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. And these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims
1. A data acquisition method, characterized in that, applied to a first terminal of a customer service quality inspection system, the customer service quality inspection system further includes a second terminal connected to the first terminal, and the method includes: Obtain a push task, where the push task includes multiple push times; Obtain customer service quality inspection data according to each of the push times, where obtaining the customer service quality inspection data according to each of the push times includes: If the data volume of the customer service quality inspection data is greater than the data volume threshold, split the customer service quality inspection data according to the push time to obtain a customer service quality inspection data set; Send the customer service quality inspection data in the customer service quality inspection data set to the second terminal, so that the second terminal saves the customer service quality inspection data to a target data set after receiving the customer service quality inspection data, where the target data set is associated with the push task.
2. The method according to claim 1, characterized in that, The sending the customer service quality inspection data in the customer service quality inspection data set to the second terminal includes: Converting the customer service quality inspection data in the customer service quality inspection data set into customer service quality inspection data in a preset data format; Sending the converted customer service quality inspection data to the second terminal.
3. The method according to claim 2, characterized in that, The sending the converted customer service quality inspection data to the second terminal includes: Encapsulating the customer service quality inspection data into an HTTP message based on the HTTP protocol and sending the HTTP message to a specified interface of the second terminal.
4. The method according to claim 2, characterized in that, The preset data format is JSON format.
5. A data acquisition method, characterized in that, applied to a second terminal of a customer service quality inspection system, the customer service quality inspection system further includes a first terminal connected to the second terminal, and the method includes: Receive customer service quality inspection data sent by the first terminal, where the customer service quality inspection data is obtained from a customer service quality inspection data set obtained by the first terminal splitting the customer service quality inspection data according to each push time of a push task; Save the customer service quality inspection data to a target data set, where the target data set is associated with the push task.
6. The method according to claim 5, characterized in that, Before saving the customer service quality inspection data to the target data set, the method further includes: If there is no target data set associated with the push task in the second terminal, create a target data set and associate the target data set with the push task.
7. The method according to claim 6, characterized in that, The creating a target data set and associating the target data set with the push task includes: Create the target data set in a data set entry of a database of the second terminal and associate the target data set with the push task.
8. The method according to claim 7, characterized in that, The saving the customer service quality inspection data to the target data set includes: Synchronize the target data set to the database cache of the second terminal, and save the customer service quality inspection data to the target data set in the database cache.
9. The method according to claim 8, wherein, after saving the customer service quality inspection data to the target data set in the database cache, it further includes: If the cache time for the database cache to save the customer service quality inspection data reaches the push interval time of the push task, save the customer service quality inspection data to the quality inspection session table in the database of the second terminal, and associate the quality inspection session table with the target data set, where the push interval time is the time interval between two adjacent push times.
10. The method according to claim 9, wherein, the method further includes: adjusting the status of the target data set in the data set entry of the database of the second terminal to completed.
11. The method according to claim 5, wherein, before saving the customer service quality inspection data to the target data set, the method further includes: If there is cached data in the target data set, save the cached data to the quality inspection session table in the database of the second terminal, and associate the quality inspection session table with the target data set.
12. A customer service quality inspection system, wherein, the system includes a first terminal and a second terminal connected to each other, and the system includes: The first terminal is used to obtain a push task, and the push task includes multiple push times; The first terminal is further used to obtain customer service quality inspection data according to each push time, wherein the first terminal is further used to: if the data volume of the customer service quality inspection data is greater than the data volume threshold, split the customer service quality inspection data according to the push time to obtain a customer service quality inspection data set; The first terminal is further used to send the customer service quality inspection data in the customer service quality inspection data set to the second terminal; The second terminal is used to receive the customer service quality inspection data; The second terminal is further used to save the customer service quality inspection data to a target data set, where the target data set is associated with the push task.
13. A data acquisition device, wherein, applied to the first terminal of the customer service quality inspection system, and the customer service quality inspection system further includes a second terminal connected to the first terminal, and the device includes: A first acquisition unit for acquiring a push task, where the push task includes multiple push times; A second acquisition unit for acquiring customer service quality inspection data according to each push time, wherein the second acquisition unit includes: if the data volume of the customer service quality inspection data is greater than the data volume threshold, split the customer service quality inspection data according to the push time to obtain a customer service quality inspection data set; A sending unit for sending the customer service quality inspection data in the customer service quality inspection data set to the second terminal, so that the second terminal saves the customer service quality inspection data to a target data set after receiving the customer service quality inspection data, where the target data set is associated with the push task.
14. A data acquisition device, wherein, A second terminal applied to a customer service quality inspection system, the customer service quality inspection system further including a first terminal connected to the second terminal, the apparatus comprising: A receiving unit, configured to receive customer service quality inspection data sent by the first terminal, the customer service quality inspection data obtained from a customer service quality inspection data set obtained by the first terminal by slicing the customer service quality inspection data at each push moment of a push task; A storage unit, configured to save the customer service quality inspection data to a target data set, wherein the target data set is associated with the push task.
15. An electronic device, characterized in that, it includes: One or more processors; A memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-4.
16. An electronic device, characterized in that, it includes: One or more processors; A memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 5-11.
17. A computer-readable storage medium, characterized in that, program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method according to any one of claims 1-4.
18. A computer-readable storage medium, characterized in that, program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method according to any one of claims 5-11.
Citation Information
Patent Citations
Information pushing method, device and system
CN107528766A
Data processing method and apparatus
CN108184170A