Table of Contents
1. Business background
2. Introduction to Duolun
3. Preliminary research
4. Technical architecture
4.1 Front-end configuration Layer
4.2 Back-end service layer
4.3 Application layer
5. Technical Challenges
5.1 Data Modeling
5.2 RXJS
5.3 Process Orchestration
6. Business results
7. Summary
Home Technology peripherals AI Dewu customer service robot multi-round SOP process engine technology practice

Dewu customer service robot multi-round SOP process engine technology practice

Apr 13, 2023 pm 09:34 PM
robot technology sop

1. Business background

In the early days of self-development of Dewu customer service robot, the traditional one-question-one-answer FAQ solution was relatively coarse-grained. In actual business scenarios, it became increasingly difficult to meet the needs of users. Regarding consultation needs, there is no differentiated process solution to accurately guide users to solve problems. A large number of users still rely on manual customer service to solve problems. Early multi-round SOP engines mainly relied on third-party platforms. The response speed of the third-party was relatively slow, the services provided were not customizable, and the efficiency of process configuration was relatively low. With the rapid development of business, it is very necessary to improve the robot's ability to solve complex scenarios, reduce the cost of manual customer service, and provide a flexible visual multi-round SOP process configuration backend. This has started the self-developed multi-round SOP process engine. of mileage.

2. Introduction to Duolun

After understanding the business background, many people may not know much about Duolun in customer service scenarios. Here we will introduce how the robot works based on actual human-machine dialogue. Based on multiple rounds of solving user problems.

Dewu customer service robot multi-round SOP process engine technology practice

As can be seen from the above, the user consultation process is completed step by step according to the question and answer process. During this period, there is no manual customer service intervention. In multiple rounds of conversations, customer service Bots solve user problems. Then there may be a question here, how does the robot know what to ask and what to answer? In fact, it is neither semantic recognition nor algorithm recognition. There is a corresponding visual construction page in the configuration background to configure multiple rounds of processes.

3. Preliminary research

After clarifying the requirements, what kind of technical capabilities should be used to build the robot's multi-round SOP process? Whether to implement it from 0 to 1 or based on an open source framework? The main choice issue faced. It is of course the best to implement it from 0 to 1, and it is also an opportunity for many technical students to challenge themselves. However, the main problem faced at that time was that the process construction involved Canvas canvas and graphics editing. If you do not have a background of professional knowledge, it will be relatively difficult. It was relatively large, and coupled with the rapid development of the business at that time, there was an urgent need for the ability to customize multiple rounds of self-developed products, so I chose an open source framework to implement it. In the investigation of open source frameworks, we also referred to the implementation of many process configurations, as follows:

  • X-Flowchart-Vue: A flowchart editing framework based on vue that can realize flowcharts Built, but it cannot meet the custom node styles in business scenarios;
  • vue-flowchart-editor: A vue-based flowchart editing framework that provides several node styles and simple data configuration capabilities. For Custom nodes require secondary development based on source code;
  • Activity: A relatively complete workflow solution, which is a complete set of process engines integrating front-end, back-end and data models. If used, not only the front-end We need to do secondary development here, and the back-end also has to deploy corresponding services or secondary design and development. The cost is relatively high, and the front-end technology stack used by Activity is relatively old, and it is relatively old in our existing system. It is difficult to integrate, so it is not suitable in the current business scenario;
  • Flowable: a business process engine, the main development language is Java, if used, the backend needs to deploy a complete set of process engine services, the front-end side It mainly cooperates with modifications, the cost is relatively high, and it is not suitable in the current business scenario;
  • X6: It is a graph editing engine under AntV, which provides a series of out-of-the-box interactive components and is easy to use The node customization capability makes it easy to quickly build flowchart and other graph applications.

Each framework has its own advantages and disadvantages. Finally, we chose the antv-x6 graph editing engine for secondary development. The main reasons are as follows:

  • Ant's Open source data product, the community is relatively active;
  • has nothing to do with the technology stack, and has good scalability;
  • supports custom nodes and has high customizability;
  • tools The components are relatively complete and can be used out of the box

4. Technical architecture

After the technology selection is clarified, the next step is the specific technology implementation. The multi-round SOP process engine not only requires the design and implementation of the front-end, but also cannot do without the design and implementation of the back-end. The overall architecture design is shown in the figure below:

Dewu customer service robot multi-round SOP process engine technology practice

4.1 Front-end configuration Layer

The front-end configuration layer mainly includes four functional modules: multi-round SOP visual process construction, online and offline management, version management and interface management.

  • Multiple rounds of SOP visual construction: including drag-and-drop operations and data configuration of each business node, and generating a complete process configuration through the association of different business nodes;
  • Online and offline management: for building a good The multi-round SOP process requires online and offline operations. When problems occur in the online multi-round process, you need to go offline in time;
  • Version management: When the configured multi-round SOP process is just released , the reply skills or functions of the process nodes are relatively basic, and the process capabilities need to be continuously improved through the process data of online users. Each change requires an upgraded version to ensure a stable online version while being able to handle multiple rounds of SOP processes. Continuous optimization;
  • Interface management: Each business node involved in the process relies on services in different business domains. For example, orders need to rely on transaction interfaces, logistics needs to rely on supply chain interfaces, etc., which are involved in business process configuration To achieve this type of function, you need to implement it through interface configuration.

4.2 Back-end service layer

The core part of the back-end service layer is the process execution engine module. In actual application scenarios, the most appropriate solution will be matched based on the questions entered by the user. Process to solve user problems. In the process of executing the matched process, the execution engine will first create the context of the process. Here, the context information will be loaded from the redis cache. Based on the process execution status recorded in the context, it will be determined from which node to start execution. After execution, the context will be Information updates. When the process execution ends, the context is destroyed.

4.3 Application layer

The application layer is mainly the specific usage scenarios of the multi-round SOP process. Currently, it mainly includes two usage scenarios of Dewu customer service robot and agent-assisted SOP.

5. Technical Challenges

5.1 Data Modeling

Solve the problem of the relationship between nodes through data modeling.

In the process of visualizing the multi-round SOP process, the creation and connection of canvas nodes is the most complicated. Some multi-round scenes have more than 100 nodes, and the relationship between nodes is very important on the canvas. . There are currently 4 types of business-customized nodes, as follows:

Dewu customer service robot multi-round SOP process engine technology practice

Dewu customer service robot multi-round SOP process engine technology practice

Dewu customer service robot multi-round SOP process engine technology practice

Dewu customer service robot multi-round SOP process engine technology practice

##Each node has its own business attributes. Here, the business attributes and association attributes of each node are abstracted mainly through the idea of ​​data modeling. The idea is as follows:

Dewu customer service robot multi-round SOP process engine technology practice

The original data types provided by Attributes can well meet the needs of customized business data. After analyzing the four types of business nodes, each business node can abstract a common data model. The meanings of its main fields are as follows:

    nodeName: the name of the node
  • nodeType: the type of the node , there are four node types: slot filling node, jump node, reply node and judgment node
  • fromNodeId: ID of the source node
  • nextNodeId: ID of the pointing node
  • fromEdgeIdList: List of source edge IDs
  • nextEdgeIdList: Pointing to the list of edge IDs
  • bizData: Business attribute information of different business nodes
Here bizData is used as the business node A general data model used to store attribute data of different business nodes. For example, slot filling nodes have business attributes such as slot and abnorma, and reply nodes have business attributes such as contentSort and content. By abstracting the data model of business nodes, the relationships between different nodes can be expressed, as shown in the following figure:

Dewu customer service robot multi-round SOP process engine technology practice

  • The judgment node can be associated with the slot filling node and the jump node through the nextEdgeIdList attribute;
  • The judgment node can be associated with the manual reply node through the fromNodeId attribute;
  • It can be converted to the manual reply node The bottom-up reply node is associated through nextNodeId;
  • The bottom-up reply node can be converted to a manual reply node through fromEdgeIdList.

After different node relationships are expressed through semantic attributes, the connection between nodes and edges is realized based on the addNode/addEdge method provided by X6, so that no matter how many nodes there are in the canvas, the connections between nodes are The relationships are very clear.

5.2 RXJS

Solve the problem of data flow direction of different functional modules through RXJS event subscription and one-way data flow

In the multi-round SOP visualization backend, there are three different functions Area: toolbar, canvas area and data configuration area. The operation of each area will involve the change of node data. If there is no clear data flow, it will lead to chaotic data changes and the risk of potential data confusion when saving. Here we adopt the design pattern of RXJS event subscription and one-way data flow. The specific implementation is shown in the figure below:

Dewu customer service robot multi-round SOP process engine technology practice

  • The node operation in the operation bar will trigger the event. For example, delete a node operation;
  • Select the node to be deleted in the canvas area to trigger the node data deletion event;
  • The data form configuration area receives the data of the node data deletion event, deletes the corresponding node data and Synchronize to the data memory cache;
  • When the process is finally submitted, the data in the memory is transferred to the server database.

The entire process flows from node data to form data and then to cache data. The entire flow direction is one-way. No matter which module is triggered, the final flow direction is the data memory cache.

For data flow, there are currently many open source frameworks available, such as redux, vuex, dva, etc. Why is RXJS used here? Mainly because RXJS is relatively lightweight and has nothing to do with the technology stack, so it has better subsequent scalability.

5.3 Process Orchestration

Solve the problem of complex multi-round process construction through process orchestration technology

As of the first half of the year, there have been nearly 200 online multi-round processes, which are somewhat complicated The process contains more than 100 nodes. If a complex process with more than 100 nodes is configured node by node, the configuration efficiency will be extremely low. So how do we quickly build a complex process? Process orchestration technology is used here.

Process orchestration refers to arranging business processes by dragging and dropping visual business components, and then the process engine executes the process. Its standardized protocol is the BPMN protocol, which contains the meanings and usage specifications of various icons and components in process orchestration. In actual application scenarios, we did not fully use the BPMN protocol, but followed the BPMN protocol and made customized components. For complex processes, we arrange them through different sub-processes. The idea is as follows:

Dewu customer service robot multi-round SOP process engine technology practice

Here is an example of the multi-round process of canceling orders. The process is broken down as follows:

Dewu customer service robot multi-round SOP process engine technology practice

As can be clearly seen from the above figure, the multi-round order cancellation process includes three sub-processes: determining user identity sub-process, determining user appeal sub-process, and canceling order sub-process. Each sub-process is an independent and complete process. In this way, through the arrangement of three sub-processes, a complex multi-round process for order cancellation can be built.

The above three points are the main technical challenges encountered in the process of self-research. In fact, there are still many difficulties in the process, such as how to render hundreds of nodes in seconds and complex How to arrange logic (copy, cut), how to expand and collapse complex judgment nodes with one click, etc., will not be elaborated here one by one.

6. Business results

The self-research of multiple rounds of customer service SOP process engines has completely replaced the third-party services, which not only saves at least hundreds of thousands of outsourced service costs every year, but also improves business performance. It has achieved good results, achieved flexible customization, and quickly supported business development. Since its launch, it has mainly covered two business scenarios: Dewu customer service robots and agent-assisted robots. Among them, Dewu robots have hundreds of multi-round SOP processes, and agent-assisted robots have dozens of multi-round SOP processes, which has improved to a great extent. Improve customer service resolution rate and reduce transfer labor costs. After going online, taking the data from one month of this year as an example, the solution rate of the customer service robot has improved significantly. The SOP solution rate has increased by more than 15% compared to the FAQ solution rate. The SOP reception number is 2 times the FAQ reception number. This saves labor costs to a great extent.

7. Summary

The customer service robot multi-round SOP process engine takes about a month from project establishment to release. The process from scratch is the result of the joint efforts of all investors. At present, in addition to serving the above two scenarios, the multi-round process engine is also exploring usage scenarios in work order business and quality inspection business. It is also continuing to enrich agent assistance scenarios to provide standardized service processes for front-line customer service and improve front-line customer service. Resolution rate. In terms of functionality, we will continue to improve the capabilities of the process engine, support the use of more business scenarios, and continuously improve the capabilities of the process engine to become a benchmark in the industry.

The above is the detailed content of Dewu customer service robot multi-round SOP process engine technology practice. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1670
14
PHP Tutorial
1274
29
C# Tutorial
1256
24
The Stable Diffusion 3 paper is finally released, and the architectural details are revealed. Will it help to reproduce Sora? The Stable Diffusion 3 paper is finally released, and the architectural details are revealed. Will it help to reproduce Sora? Mar 06, 2024 pm 05:34 PM

StableDiffusion3’s paper is finally here! This model was released two weeks ago and uses the same DiT (DiffusionTransformer) architecture as Sora. It caused quite a stir once it was released. Compared with the previous version, the quality of the images generated by StableDiffusion3 has been significantly improved. It now supports multi-theme prompts, and the text writing effect has also been improved, and garbled characters no longer appear. StabilityAI pointed out that StableDiffusion3 is a series of models with parameter sizes ranging from 800M to 8B. This parameter range means that the model can be run directly on many portable devices, significantly reducing the use of AI

After 2 months, the humanoid robot Walker S can fold clothes After 2 months, the humanoid robot Walker S can fold clothes Apr 03, 2024 am 08:01 AM

Editor of Machine Power Report: Wu Xin The domestic version of the humanoid robot + large model team completed the operation task of complex flexible materials such as folding clothes for the first time. With the unveiling of Figure01, which integrates OpenAI's multi-modal large model, the related progress of domestic peers has been attracting attention. Just yesterday, UBTECH, China's "number one humanoid robot stock", released the first demo of the humanoid robot WalkerS that is deeply integrated with Baidu Wenxin's large model, showing some interesting new features. Now, WalkerS, blessed by Baidu Wenxin’s large model capabilities, looks like this. Like Figure01, WalkerS does not move around, but stands behind a desk to complete a series of tasks. It can follow human commands and fold clothes

How can AI make robots more autonomous and adaptable? How can AI make robots more autonomous and adaptable? Jun 03, 2024 pm 07:18 PM

In the field of industrial automation technology, there are two recent hot spots that are difficult to ignore: artificial intelligence (AI) and Nvidia. Don’t change the meaning of the original content, fine-tune the content, rewrite the content, don’t continue: “Not only that, the two are closely related, because Nvidia is expanding beyond just its original graphics processing units (GPUs). The technology extends to the field of digital twins and is closely connected to emerging AI technologies. "Recently, NVIDIA has reached cooperation with many industrial companies, including leading industrial automation companies such as Aveva, Rockwell Automation, Siemens and Schneider Electric, as well as Teradyne Robotics and its MiR and Universal Robots companies. Recently,Nvidiahascoll

DualBEV: significantly surpassing BEVFormer and BEVDet4D, open the book! DualBEV: significantly surpassing BEVFormer and BEVDet4D, open the book! Mar 21, 2024 pm 05:21 PM

This paper explores the problem of accurately detecting objects from different viewing angles (such as perspective and bird's-eye view) in autonomous driving, especially how to effectively transform features from perspective (PV) to bird's-eye view (BEV) space. Transformation is implemented via the Visual Transformation (VT) module. Existing methods are broadly divided into two strategies: 2D to 3D and 3D to 2D conversion. 2D-to-3D methods improve dense 2D features by predicting depth probabilities, but the inherent uncertainty of depth predictions, especially in distant regions, may introduce inaccuracies. While 3D to 2D methods usually use 3D queries to sample 2D features and learn the attention weights of the correspondence between 3D and 2D features through a Transformer, which increases the computational and deployment time.

The second generation Ameca is here! He can communicate with the audience fluently, his facial expressions are more realistic, and he can speak dozens of languages. The second generation Ameca is here! He can communicate with the audience fluently, his facial expressions are more realistic, and he can speak dozens of languages. Mar 04, 2024 am 09:10 AM

The humanoid robot Ameca has been upgraded to the second generation! Recently, at the World Mobile Communications Conference MWC2024, the world's most advanced robot Ameca appeared again. Around the venue, Ameca attracted a large number of spectators. With the blessing of GPT-4, Ameca can respond to various problems in real time. "Let's have a dance." When asked if she had emotions, Ameca responded with a series of facial expressions that looked very lifelike. Just a few days ago, EngineeredArts, the British robotics company behind Ameca, just demonstrated the team’s latest development results. In the video, the robot Ameca has visual capabilities and can see and describe the entire room and specific objects. The most amazing thing is that she can also

This article is enough for you to read about autonomous driving and trajectory prediction! This article is enough for you to read about autonomous driving and trajectory prediction! Feb 28, 2024 pm 07:20 PM

Trajectory prediction plays an important role in autonomous driving. Autonomous driving trajectory prediction refers to predicting the future driving trajectory of the vehicle by analyzing various data during the vehicle's driving process. As the core module of autonomous driving, the quality of trajectory prediction is crucial to downstream planning control. The trajectory prediction task has a rich technology stack and requires familiarity with autonomous driving dynamic/static perception, high-precision maps, lane lines, neural network architecture (CNN&GNN&Transformer) skills, etc. It is very difficult to get started! Many fans hope to get started with trajectory prediction as soon as possible and avoid pitfalls. Today I will take stock of some common problems and introductory learning methods for trajectory prediction! Introductory related knowledge 1. Are the preview papers in order? A: Look at the survey first, p

The first robot to autonomously complete human tasks appears, with five fingers that are flexible and fast, and large models support virtual space training The first robot to autonomously complete human tasks appears, with five fingers that are flexible and fast, and large models support virtual space training Mar 11, 2024 pm 12:10 PM

This week, FigureAI, a robotics company invested by OpenAI, Microsoft, Bezos, and Nvidia, announced that it has received nearly $700 million in financing and plans to develop a humanoid robot that can walk independently within the next year. And Tesla’s Optimus Prime has repeatedly received good news. No one doubts that this year will be the year when humanoid robots explode. SanctuaryAI, a Canadian-based robotics company, recently released a new humanoid robot, Phoenix. Officials claim that it can complete many tasks autonomously at the same speed as humans. Pheonix, the world's first robot that can autonomously complete tasks at human speeds, can gently grab, move and elegantly place each object to its left and right sides. It can autonomously identify objects

The humanoid robot can do magic, let the Spring Festival Gala program team find out more The humanoid robot can do magic, let the Spring Festival Gala program team find out more Feb 04, 2024 am 09:03 AM

In the blink of an eye, robots have learned to do magic? It was seen that it first picked up the water spoon on the table and proved to the audience that there was nothing in it... Then it put the egg-like object in its hand, then put the water spoon back on the table and started to "cast a spell"... …Just when it picked up the water spoon again, a miracle happened. The egg that was originally put in disappeared, and the thing that jumped out turned into a basketball... Let’s look at the continuous actions again: △ This animation shows a set of actions at 2x speed, and it flows smoothly. Only by watching the video repeatedly at 0.5x speed can it be understood. Finally, I discovered the clues: if my hand speed were faster, I might be able to hide it from the enemy. Some netizens lamented that the robot’s magic skills were even higher than their own: Mag was the one who performed this magic for us.

See all articles