search
HomeTechnology peripheralsAIDewu customer service robot multi-round SOP process engine technology practice

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
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
Can't use ChatGPT! Explaining the causes and solutions that can be tested immediately [Latest 2025]Can't use ChatGPT! Explaining the causes and solutions that can be tested immediately [Latest 2025]May 14, 2025 am 05:04 AM

ChatGPT is not accessible? This article provides a variety of practical solutions! Many users may encounter problems such as inaccessibility or slow response when using ChatGPT on a daily basis. This article will guide you to solve these problems step by step based on different situations. Causes of ChatGPT's inaccessibility and preliminary troubleshooting First, we need to determine whether the problem lies in the OpenAI server side, or the user's own network or device problems. Please follow the steps below to troubleshoot: Step 1: Check the official status of OpenAI Visit the OpenAI Status page (status.openai.com) to see if the ChatGPT service is running normally. If a red or yellow alarm is displayed, it means Open

Calculating The Risk Of ASI Starts With Human MindsCalculating The Risk Of ASI Starts With Human MindsMay 14, 2025 am 05:02 AM

On 10 May 2025, MIT physicist Max Tegmark told The Guardian that AI labs should emulate Oppenheimer’s Trinity-test calculus before releasing Artificial Super-Intelligence. “My assessment is that the 'Compton constant', the probability that a race to

An easy-to-understand explanation of how to write and compose lyrics and recommended tools in ChatGPTAn easy-to-understand explanation of how to write and compose lyrics and recommended tools in ChatGPTMay 14, 2025 am 05:01 AM

AI music creation technology is changing with each passing day. This article will use AI models such as ChatGPT as an example to explain in detail how to use AI to assist music creation, and explain it with actual cases. We will introduce how to create music through SunoAI, AI jukebox on Hugging Face, and Python's Music21 library. Through these technologies, everyone can easily create original music. However, it should be noted that the copyright issue of AI-generated content cannot be ignored, and you must be cautious when using it. Let’s explore the infinite possibilities of AI in the music field together! OpenAI's latest AI agent "OpenAI Deep Research" introduces: [ChatGPT]Ope

What is ChatGPT-4? A thorough explanation of what you can do, the pricing, and the differences from GPT-3.5!What is ChatGPT-4? A thorough explanation of what you can do, the pricing, and the differences from GPT-3.5!May 14, 2025 am 05:00 AM

The emergence of ChatGPT-4 has greatly expanded the possibility of AI applications. Compared with GPT-3.5, ChatGPT-4 has significantly improved. It has powerful context comprehension capabilities and can also recognize and generate images. It is a universal AI assistant. It has shown great potential in many fields such as improving business efficiency and assisting creation. However, at the same time, we must also pay attention to the precautions in its use. This article will explain the characteristics of ChatGPT-4 in detail and introduce effective usage methods for different scenarios. The article contains skills to make full use of the latest AI technologies, please refer to it. OpenAI's latest AI agent, please click the link below for details of "OpenAI Deep Research"

Explaining how to use the ChatGPT app! Japanese support and voice conversation functionExplaining how to use the ChatGPT app! Japanese support and voice conversation functionMay 14, 2025 am 04:59 AM

ChatGPT App: Unleash your creativity with the AI ​​assistant! Beginner's Guide The ChatGPT app is an innovative AI assistant that handles a wide range of tasks, including writing, translation, and question answering. It is a tool with endless possibilities that is useful for creative activities and information gathering. In this article, we will explain in an easy-to-understand way for beginners, from how to install the ChatGPT smartphone app, to the features unique to apps such as voice input functions and plugins, as well as the points to keep in mind when using the app. We'll also be taking a closer look at plugin restrictions and device-to-device configuration synchronization

How do I use the Chinese version of ChatGPT? Explanation of registration procedures and feesHow do I use the Chinese version of ChatGPT? Explanation of registration procedures and feesMay 14, 2025 am 04:56 AM

ChatGPT Chinese version: Unlock new experience of Chinese AI dialogue ChatGPT is popular all over the world, did you know it also offers a Chinese version? This powerful AI tool not only supports daily conversations, but also handles professional content and is compatible with Simplified and Traditional Chinese. Whether it is a user in China or a friend who is learning Chinese, you can benefit from it. This article will introduce in detail how to use ChatGPT Chinese version, including account settings, Chinese prompt word input, filter use, and selection of different packages, and analyze potential risks and response strategies. In addition, we will also compare ChatGPT Chinese version with other Chinese AI tools to help you better understand its advantages and application scenarios. OpenAI's latest AI intelligence

5 AI Agent Myths You Need To Stop Believing Now5 AI Agent Myths You Need To Stop Believing NowMay 14, 2025 am 04:54 AM

These can be thought of as the next leap forward in the field of generative AI, which gave us ChatGPT and other large-language-model chatbots. Rather than simply answering questions or generating information, they can take action on our behalf, inter

An easy-to-understand explanation of the illegality of creating and managing multiple accounts using ChatGPTAn easy-to-understand explanation of the illegality of creating and managing multiple accounts using ChatGPTMay 14, 2025 am 04:50 AM

Efficient multiple account management techniques using ChatGPT | A thorough explanation of how to use business and private life! ChatGPT is used in a variety of situations, but some people may be worried about managing multiple accounts. This article will explain in detail how to create multiple accounts for ChatGPT, what to do when using it, and how to operate it safely and efficiently. We also cover important points such as the difference in business and private use, and complying with OpenAI's terms of use, and provide a guide to help you safely utilize multiple accounts. OpenAI

See all articles

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

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor