Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide a flow configuration method, an apparatus, an electronic device, and a storage medium, which can receive a target node selected by a user in a visual manner and a connection relationship between the target nodes to configure a flow, and do not require a developer to write a background code, thereby reducing the cost of flow configuration.
According to one aspect of the present application, an electronic device is provided that may include one or more storage media and one or more processors in communication with the storage media. One or more storage media store machine-readable instructions executable by a processor. When the electronic device is operated, the processor communicates with the storage medium through the bus, and the processor executes the machine readable instructions to perform one or more of the following operations:
receiving at least one target node corresponding to a to-be-configured process, wherein the target node stores a corresponding operation mode and a data source, and is selected by a user in a visual mode on a configuration page;
if a plurality of target nodes exist, receiving the connection relation between the target nodes;
and generating a corresponding configuration file according to the operation mode and the connection relation between the data source and the target node respectively corresponding to each target node so as to complete the configuration of the flow.
The embodiment of the invention selects the target nodes in a visual mode and the connection relation among the target nodes, and then configures the process through the operation mode and the data source stored in the target nodes and the connection relation among the target nodes, so that developers do not need to write background codes, and the cost of process configuration is reduced.
In some embodiments, the process is a customer service process, and the method further comprises:
and binding the customer service processing flow with the event type solved by the customer service processing flow.
The embodiment of the invention realizes the standardization of the customer service flow by binding the customer service processing flow with the corresponding event type.
In some embodiments, the method further comprises:
and acquiring test data in a preset time period, and testing the process by using the test data to acquire execution result data.
The embodiment of the invention can ensure the correctness and the integrity of the customer service flow by testing the flow by using the test data.
In some embodiments, the execution result data includes node data corresponding to each target node, and the method further includes:
and calculating the interception rate and the establishment rate of the corresponding target node according to the node data corresponding to each target node.
The embodiment of the invention realizes the statistics of the data of each target node according to the node data of each target node.
In some embodiments, the configuration file includes a version number of the flow, and after completing the configuration of the flow, the method further includes:
receiving an issuing instruction for issuing the flow;
and acquiring a configuration file corresponding to the process, judging whether a release online condition is met or not according to the version number in the configuration file, if so, updating data by using the configuration file, and changing the state of the process into the released state.
After receiving the issuing instruction of the user, the embodiment of the invention does not need the developer to be on line, and only needs one-key operation of the user.
In another aspect, an embodiment of the present invention provides a flow configuration apparatus, including:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving at least one target node corresponding to a process to be configured, the target node stores a corresponding operation mode and a data source, and the target node is selected by a user in a visual mode through a configuration page;
the second receiving module is used for receiving the connection relation between the target nodes if a plurality of target nodes exist;
and the configuration module is used for generating corresponding configuration files according to the operation modes respectively corresponding to the target nodes, the data source and the connection relation between the target nodes so as to complete the configuration of the flow.
In some embodiments, the process is a customer service process, and the apparatus further comprises:
and the binding module is used for binding the customer service processing flow with the event type solved by the customer service processing flow.
In some embodiments, the apparatus further comprises:
and the prediction module is used for acquiring test data in a preset time period, testing the process by using the test data and acquiring execution result data.
In some embodiments, the apparatus further comprises:
and the calculation module is used for calculating the interception rate and the establishment rate of the corresponding target node according to the node data corresponding to each target node.
In some embodiments, the configuration file includes a version number of the flow, and the apparatus further includes:
the third receiving module is used for receiving an issuing instruction of the issuing process;
and the release module is used for acquiring the configuration file corresponding to the process, judging whether the release online condition is met or not according to the version number in the configuration file, and if so, updating data by using the configuration file and changing the state of the process into the released state.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to enable those skilled in the art to use the present disclosure, the following embodiments are given in conjunction with a specific application scenario "configuration of customer service process flow of a network appointment". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of the configuration of a customer service process flow for a network appointment, it should be understood that this is merely one exemplary embodiment. The present application may also include any service system of the service type, for example, a system for sending and/or receiving courier, a service system for business transactions of both parties. Applications of the apparatus or method of the present application may include web pages, plug-ins for browsers, client terminals, customization systems, internal analysis systems, or artificial intelligence robots, etc., or any combination thereof.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
It is worth noting that before the application is filed, the customer service processing flow needs a developer to write codes for configuration, the method brings a large workload to the developer, and the cost of the flow configuration is high. However, the customer service processing flow configuration method provided by the application can enable a user to configure on the configuration interface in a visual mode, and the configuration device generates the configuration flow according to the configuration information submitted by the user, so as to complete the configuration of the customer service processing flow.
FIG. 1 is a diagram of exemplary hardware and software components of an electronic device provided by an embodiment of the invention.
The electronic device 100 may be a general-purpose computer or a special-purpose computer, both of which may be used to implement the customer service process flow configuration method of the present application. Although only a single computer is shown, for convenience, the functions described herein may be implemented in a distributed fashion across multiple similar platforms to balance processing loads.
For example, the electronic device 100 may include a network port 110 connected to a network, one or more processors 120 for executing program instructions, a communication bus 130, and a storage medium 140 of different form, such as a disk, ROM, or RAM, or any combination thereof. Illustratively, the computer platform may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof. The method of the present application may be implemented in accordance with these program instructions. The electronic device 100 also includes an Input/Output (I/O) interface 150 between the computer and other Input/Output devices (e.g., keyboard, display screen).
For ease of illustration, only one processor is depicted in electronic device 100. However, it should be noted that the electronic device 100 in the present application may also comprise a plurality of processors, and thus the steps performed by one processor described in the present application may also be performed by a plurality of processors in combination or individually. For example, if the processor of the electronic device 100 executes steps a and B, it should be understood that steps a and B may also be executed by two different processors together or separately in one processor. For example, a first processor performs step a and a second processor performs step B, or the first processor and the second processor perform steps a and B together.
Fig. 2 is a schematic flow chart of a flow configuration method according to an embodiment of the present invention, as shown in fig. 2, the method includes:
step 201: receiving at least one target node corresponding to a to-be-configured process, wherein the target node stores a corresponding operation mode and a data source, and the target node is selected by a user in a visual mode through a configuration page.
In a specific implementation process, when a customer service processing flow needs to be newly configured or a configured customer service processing flow needs to be modified and maintained, first, a user needs to design a flow according to actual business needs, that is, execution logic of the flow. After the design is completed, a user may select a target node in a configuration page in a dragging manner or an editing manner, where the type of the target node is various, for example: start nodes, end nodes, decision nodes, operational nodes, interactive nodes, links, and the like. The starting node is used for the beginning of the whole flow to be configured, and represents that the execution sequence of the service logic starts from the node. The end node is used for the end of the whole flow to be configured and represents the end of the execution of the service logic. The judgment node supports the input of an expression for judging whether the set condition is satisfied. The operational node and the interactive node support references to operational functions. The connection is to connect two target nodes with a sequential execution sequence according to the logical relationship between the target nodes. Fig. 3 is a schematic diagram of a configuration interface provided in an embodiment of the present invention, where in fig. 3, a functional area and a configuration area are included, the functional area includes multiple types of nodes and a mode selection function, and the mode selection function includes: a drag mode and an edit mode. When a user selects a dragging mode, a target node selected in a configuration interface is dragged to a configuration area, and then a corresponding operation mode and a data source are set for the target node. The operation mode may include functions of compensation, message distribution, work order operation, and the like, and ensures that the customer service can directly operate in the configuration area, and the operation mode may be set according to specific service requirements, which is not specifically limited in the embodiment of the present invention. The data source refers to service data that needs to be used in a customer service processing flow, and refers to data items generated in a service operation process when configuring a flow, for example: order data, driver information, etc. And after the user finishes setting the target node and can click and save the target node, the configuration device receives the target node and the corresponding operation mode and the data source stored in the target node.
Step 202: and if a plurality of target nodes exist, receiving the connection relation among the target nodes.
In a specific implementation process, for a case that a flow to be configured includes multiple target nodes, two target nodes having a logical relationship need to be connected by a connecting line, and it should be noted that the connecting line may be referred to as an "edge", and the edge after the node is judged to have a conditional execution, that is, the node expression is true/false can pass through the edge, so as to determine an execution flow in the flow to be configured.
Step 203: and generating a corresponding configuration file according to the operation mode and the connection relation between the data source and the target node respectively corresponding to each target node so as to complete the configuration of the flow.
In a specific implementation process, after receiving an operation mode and a data source respectively corresponding to each target node configured by a user through a configuration interface and a connection relationship between each target node, a configuration device generates a configuration file corresponding to a process to be configured, so as to complete configuration of the process to be configured. When the user needs to use the configured customer service processing flow, the flow can be executed through the configuration file. It should be noted that the customer service processing flow in the embodiment of the present invention may also be another flow, and this is not specifically limited in the embodiment of the present invention.
Therefore, when configuring a flow, all nodes can be classified into several categories, wherein it is more important to judge the nodes and operate the nodes. The introduced data source is used as an important input for judging the node, and the operation node to which the flow goes is finally determined.
The embodiment of the invention selects the target nodes in a visual mode and the connection relation among the target nodes, and then configures the process through the operation mode and the data source stored in the target nodes and the connection relation among the target nodes, so that developers do not need to write background codes, and the cost of the process configuration is reduced.
On the basis of the embodiment, after the configuration is completed and the customer service processing flow is obtained, the customer service processing flow is bound with the solved event type. It should be noted that the event type may be a driver detour, a driver vehicle mismatch, or the like. Each customer service processing flow corresponds to a unique identifier, so that a unique identifier can be allocated to each event type, and the identifier of the customer processing flow is bound with the identifier of the corresponding event type, so that the customer service processing flow is more standard.
On the basis of the above embodiment, the method further includes:
and acquiring test data in a preset time period, and testing the customer service processing flow by using the test data to acquire execution result data.
In a specific implementation process, after the customer service processing flow is obtained, the customer service processing flow can be simulated through a prediction tool, so that the test of the customer service processing flow is realized. During testing, firstly, test data in a preset time period is obtained, the test data can be work order data of user complaints in a certain period of history, and the work order data is processed to obtain an accurate result, therefore, the test data is input into a customer service processing flow, the customer service processing flow gives an execution result, and then the execution result data and the accurate result of the work order data can be compared to verify the accuracy of the customer service processing flow.
Fig. 4 is a schematic diagram of a prediction interface provided in an embodiment of the present invention, as shown in fig. 4, the prediction interface includes: the flow starting time, the flow ending time, the work order title, the flow ID and the estimated data volume, wherein the estimated data volume is the execution result data.
And acquiring test data in a preset time period, and testing the customer service processing flow by using the test data to acquire execution result data.
On the basis of the above embodiment, the execution result data includes node data corresponding to each target node, and the method further includes:
and calculating the interception rate and the establishment rate of the corresponding target node according to the node data corresponding to each target node.
In a specific implementation process, after the customer service processing flow is configured, based on the test data, the data to each node is executed in the customer service processing flow, and macro indexes such as the interception rate and the establishment rate of each node can be calculated. The interception rate is an attribute of whether the final operation node of each process is established or not, and the attribute is irrelevant to a front node and is only used for service scene identification; the establishment rate is the establishment number of execution flows/the total amount of execution flows. The establishment rate is that a self-service flow is formed by connecting two flows in series and comprises a pre-judgment flow and a main flow, and the interception rate refers to the establishment rate of the pre-judgment flow.
The embodiment of the invention can ensure the correctness and the integrity of the flow by predicting the obtained execution result data, can provide the estimation of the cost and the influence generated after the customer service processing flow takes effect for a service party, and can carry out statistics on the execution result of the flow.
On the basis of any of the above embodiments, the configuration file includes a version number of the customer service processing flow, and after the configuration of the customer service processing flow is completed, the method further includes:
receiving an issuing instruction for issuing the customer service processing flow;
and acquiring a configuration file corresponding to the customer service processing flow, judging whether a release online condition is met or not according to the version number in the configuration file, if so, updating data by using the configuration file, and changing the state of the customer service processing flow into the released state.
In a specific implementation process, after the customer service processing flow is configured and the conditions of use are met, a user can send a release instruction for releasing the customer service processing flow to the configuration device through an interface, it should be noted that the release instruction may include an identifier corresponding to the customer service processing flow, the configuration device obtains a corresponding configuration file through the identifier, and determines that the version number of the configuration file is the latest version, if the version number of the configuration file is the latest version, the condition of releasing online is met, data in the configuration file is updated, and the customer service processing flow of the version is set to be in a released state.
It should be noted that, the user described in the embodiment of the present invention may be a service supervisor, a customer service staff, or other persons having an authority to configure a customer service processing flow, and this is not specifically limited in the embodiment of the present invention.
In addition, after the customer service processing flow is executed, when the customer service staff uses the flow, the flow can output and display the processing result for the customer service, fig. 5 is a schematic view of an interface of a customer service workbench provided by an embodiment of the present invention, and as shown in fig. 5, a reason for responsibility, a complaint result, a specific operation, a processing result, and a responsible party can be displayed in the interface, wherein the reason for responsibility is a result given by the customer service processing flow, and the customer service staff can fill in the amount of money to be compensated for the passenger in the specific operation, and can select the responsible party.
Fig. 6 is a schematic diagram of a customer service processing flow system architecture provided in an embodiment of the present invention, as shown in fig. 6, the architecture includes: an operation layer, a configuration and evaluation layer and a data and function access layer.
Wherein, the operation layer includes customer service workstation, independently flow and APP closed loop, and customer service workstation is the instrument that provides the operation for customer service personnel, and self-service flow and APP closed loop are two different complaint channels, have different entries on the client.
The configuration and evaluation layer includes flow logic, predictive tools, release mechanisms, and effect monitoring. The flow logic refers to functions supported by flow configuration nodes and operations, including expression editing, data source introduction, mounting operation, node relation, custom configuration and the like. And the estimation tool is used for predicting the customer service processing flow. The release mechanism has the functions of covering the online, rollback and small-flow mechanisms of the process version, and can quickly carry out the iterative online and rollback offline operations of the process. And effect monitoring, namely, executing the execution condition of the data funnel monitoring process and the distribution of the flow at the nodes through the process.
The data and function access layer comprises a data source, customer service operation, customer service and system interaction and differentiated configuration, wherein the data source refers to service data required to be used in an execution process, and data items generated in a service operation process, such as order data, driver information and the like, are quoted during the configuration process. The customer service operation refers to the relevant submitting type operation executed by the customer service in the process of processing the customer complaint, such as compensation of a voucher, closing of an abnormal expense order and the like. The customer service interacts with the system and refers to various queries before submitting the execution of the class operation. The differentiation configuration is that different exemption times, compensation upper limits and the like are provided for different user attributes such as VIP and black gold card users.
The embodiment of the invention selects the target nodes in a visual mode and the connection relation among the target nodes, then configures the customer service processing flow through the operation mode and the data source stored in the target nodes and the connection relation among the target nodes, does not need developers to write background codes, transfers the configuration and maintenance work of the flow to the service party, and enables the customer service party to configure and release the flow in the configuration page, thereby ensuring that the customer service party can process the problems of users according to the uniform flow and providing convenience for the service party to check the specific processing flow.
Fig. 7 is a schematic structural diagram of a flow configuration device according to an embodiment of the present invention, where functions implemented by the customer service processing flow configuration device correspond to steps executed by the foregoing method. The apparatus may be understood as the above-mentioned server, or the processor of the server, or may be understood as a component which is independent of the above-mentioned server or processor and implements the functions of the present application under the control of the server, as shown in fig. 7, the configuration apparatus includes afirst receiving module 701, asecond receiving module 702, and aconfiguration module 703, wherein,
thefirst receiving module 701 is configured to receive at least one target node corresponding to a process to be configured, where the target node stores a corresponding operation mode and a data source, and the target node is selected by a user in a visual mode on a configuration page; thesecond receiving module 702 is configured to receive a connection relationship between target nodes if there are multiple target nodes; theconfiguration module 703 is configured to generate a corresponding configuration file according to the operation mode and the connection relationship between the data source and the target node, which correspond to each target node, so as to complete the configuration of the flow.
In a specific implementation process, when a customer service processing flow needs to be newly configured or a configured customer service processing flow needs to be modified and maintained, first, a user needs to design a flow according to actual business needs, that is, execution logic of the flow. After the design is finished, a user can select a target node in a configuration page in a dragging mode or an editing mode, and then a corresponding operation mode and a data source are set for the target node. The operation mode can include functions of compensation, message issuing, work order operation and the like, and the customer service can be ensured to be directly operated in the configuration area. After the user completes the setting of the target node and can click and save, thefirst receiving module 701 receives the target node, and the corresponding operation mode and data source stored in the target node.
For a case that the flow to be configured includes a plurality of target nodes, thesecond receiving module 702 needs to connect two target nodes having a logical relationship with each other through a connection line, so as to determine an execution flow in the flow to be configured.
After receiving the operation mode and the data source respectively corresponding to each target node configured by the user through the configuration interface and the connection relationship between each target node, theconfiguration module 703 generates a configuration file corresponding to the process to be configured, so as to complete the configuration of the process to be configured. When the user needs to use the configured customer service processing flow, the flow can be executed through the configuration file.
The embodiment of the invention selects the target nodes in a visual mode and the connection relation among the target nodes, and then configures the process through the operation mode and the data source stored in the target nodes and the connection relation among the target nodes, so that developers do not need to write background codes, and the cost of the process configuration is reduced.
On the basis of the above embodiment, each customer service processing flow in the flow further includes:
and the binding module is used for binding the customer service processing flow with the event type solved by the customer service processing flow.
In a specific implementation process, after configuration is completed and a customer service processing flow is obtained, the binding module binds the customer service processing flow with the event type solved by the customer service processing flow. It should be noted that the event type may be a driver detour, a driver vehicle mismatch, or the like. Each customer service processing flow corresponds to a unique identifier, so that a unique identifier can be allocated to each event type, and the identifier of the customer processing flow is bound with the identifier of the corresponding event type, so that the customer service processing flow is more standard.
On the basis of the above embodiment, the apparatus further includes:
and the prediction module is used for acquiring test data in a preset time period, testing the process by using the test data and acquiring execution result data.
In a specific implementation process, after the customer service processing flow is obtained, the prediction module can simulate the customer service processing flow through a prediction tool, so that the customer service processing flow is tested. During testing, the prediction module firstly obtains test data in a preset time period, the test data can be work order data of user complaints in a certain period of history, the work order data is processed to obtain an accurate result, therefore, the test data is input into a customer service processing flow, the customer service processing flow gives an execution result, and then the execution result data can be compared with the accurate result of the work order data, so that the accuracy of the customer service processing flow is verified.
On the basis of the above embodiment, the apparatus further includes:
and the calculation module is used for calculating the interception rate and the establishment rate of the corresponding target node according to the node data corresponding to each target node.
In a specific implementation process, after the customer service processing flow is configured, the calculation module executes data to each node in the customer service processing flow based on the test data, so as to calculate macro indexes such as interception rate and establishment rate of each node.
The embodiment of the invention realizes the statistics of the data of each target node according to the node data of each target node.
On the basis of the above embodiment, the configuration file includes a version number of the flow, and the apparatus further includes:
the third receiving module is used for receiving an issuing instruction for issuing the process;
and the release module is used for acquiring the configuration file corresponding to the process, judging whether the release online condition is met or not according to the version number in the configuration file, and if so, updating data by using the configuration file and changing the state of the process into the released state.
In a specific implementation process, after the customer service processing flow is configured and the use condition is met, a user can send a release instruction for releasing the customer service processing flow to the configuration device through the interface, the third receiving module can receive the release instruction sent by the user, it should be noted that the release instruction can include an identifier corresponding to the customer service processing flow, the configuration device obtains a corresponding configuration file through the identifier, and judges that the version number of the configuration file is the latest version, if the version number of the configuration file meets the release on-line condition, the data in the configuration file is updated, and the customer service processing flow of the version is set to be in a released state.
The modules may be connected or in communication with each other via a wired or wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may comprise a connection over a LAN, WAN, bluetooth, ZigBee, NFC, or the like, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.