CN-122018756-A - Workflow configuration method, electronic equipment and storage medium
Abstract
The application provides a workflow configuration method, electronic equipment and a storage medium, relates to the technical field of workflow configuration, and is used for simply and quickly configuring a workflow comprising an agent service function. The method comprises the steps of displaying a workflow editing page for configuring a workflow composed of a plurality of node objects, responding to newly-added intelligent agent nodes in the workflow based on the workflow editing page, displaying an intelligent agent node configuration interface comprising an intelligent agent configuration control, a user input area and a variable configuration area, wherein the intelligent agent configuration control is used for selecting target intelligent agent services called by the intelligent agent nodes, the user input area is used for configuring prompt information when the target intelligent agent services are called, the variable configuration area is used for selecting input parameters of the target intelligent agent services in output parameters of upstream nodes and/or parameters in a preset variable library, and responding to receiving confirmation operation, and generating the workflow composed of the plurality of node objects.
Inventors
- YU YUAN
Assignees
- 中国联合网络通信集团有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260123
Claims (10)
- 1. A workflow configuration method, comprising: The method comprises the steps of displaying a workflow editing page, wherein the workflow editing page is used for configuring a workflow composed of a plurality of node objects, and the node objects comprise an agent node which is used for calling an agent service; Responding to a new addition of an intelligent agent node in the workflow based on the workflow editing page, and displaying an intelligent agent node configuration interface, wherein the intelligent agent node configuration interface comprises an intelligent agent configuration control, a user input area and a variable configuration area, the intelligent agent configuration control is used for selecting a target intelligent agent service called by the intelligent agent node, the user input area is used for configuring prompt information when the target intelligent agent service is called, the variable configuration area is used for selecting input parameters of the target intelligent agent service in output parameters of an upstream node and/or parameters in a preset variable library, and the upstream node is a node object which is configured by a user and runs before the intelligent agent node; In response to receiving the validation operation, the workflow comprised of a plurality of the node objects is generated.
- 2. The method of claim 1, wherein prior to generating the workflow, the method further comprises: determining whether a call condition is met for each configured node object, wherein the call condition comprises that the input parameters of the node object comprise parameters from other workflows and/or the input parameters of the node object comprise output parameters from downstream nodes of the node object; and under the condition that the calling condition is met, sending out a calling risk prompt, wherein the calling risk prompt is used for indicating to reconfigure the node object.
- 3. The method of claim 1, wherein the variable configuration area comprises an upstream node control and a variable library control; the method further comprises the steps of: Responding to the touch operation of the upstream node control, and displaying a plurality of upstream node identifications; responsive to a first selection operation of one or more upstream node identifiers, determining output parameters of the upstream node indicated by the first selection operation as input parameters of an intelligent service called by the intelligent node; The method comprises the steps of responding to touch operation of a variable library control, displaying a plurality of variable identifications in a preset variable library, enabling one variable identification to correspond to one preset variable in the preset variable library, responding to second selection operation of one or more variable identifications, and determining the preset variable indicated by the second selection operation as an input parameter of an intelligent agent service called by an intelligent agent node.
- 4. The method according to claim 1, wherein the method further comprises: After the configuration of the first node object is completed, the output parameters of the first node object are displayed; and determining a second node object indicated by the adding operation as a downstream node of the first node object in response to the adding operation of the downstream node of the first node object, wherein the adding operation is made by a user based on the output parameters of the first node object.
- 5. The method according to claim 1, wherein the method further comprises: Acquiring preset configuration information of the node object under the condition that the workflow is operated to the node object except the intelligent agent node, wherein the preset configuration information is used for representing the behavior of the node object in the execution process; replacing the variable placeholder with the output parameters of the input nodes of the node objects in the workflow; the input node of the node object is a node which outputs data to the node object in an upstream node of the node object; and obtaining the output parameters of the node objects based on the preset configuration information for replacing the variable placeholders.
- 6. The method according to claim 1, wherein the method further comprises: Acquiring input parameters of the target intelligent agent service under the condition that the workflow is operated to the intelligent agent node; The method comprises the steps of sending a call request to a target service end corresponding to the intelligent agent node, wherein the target service end is used for providing the target intelligent agent service, and the call request comprises input parameters of the target intelligent agent service and the prompt information; Receiving an operation result returned by the target server, wherein the operation result is generated by the target server based on the input parameters of the target intelligent agent service and the prompt information; And taking the operation result as an output parameter of the intelligent agent node.
- 7. The method according to claim 1, wherein the method further comprises: displaying an agent operation interface under the condition that the workflow is operated to the agent node; And displaying the running progress of the target intelligent agent service and/or the intermediate running result of the target intelligent agent service in the intelligent agent running interface.
- 8. The method according to claim 1, wherein the method further comprises: for each node object running in the workflow, obtaining input parameters of the node object from a working variable pool, and storing output parameters of the node object in the working variable pool.
- 9. An electronic device comprising a display, a memory, and a processor; The display for displaying an interface or page in the method of any one of claims 1-8; The memory is coupled to the processor; the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; Wherein the computer instructions, when executed by the processor, cause the electronic device to perform the method of any of claims 1-8.
- 10. A computer storage medium having stored therein computer instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-8.
Description
Workflow configuration method, electronic equipment and storage medium Technical Field The present application relates to the field of workflow configuration technologies, and in particular, to a workflow configuration method, an electronic device, and a storage medium. Background In the current enterprise digital transformation and intelligent upgrading contexts, the low-code/no-code platform greatly simplifies the construction and automation of the business process by providing a visual workflow orchestration canvas. Meanwhile, agents constructed based on artificial intelligence technologies such as large language models are rapidly becoming key components for improving the intelligent level of a business system due to the strong capability of agents in task planning, tool calling and complex problem solving. There is a general need and practice in the industry to introduce agent services into workflow systems. However, existing mainstream integration schemes have significant limitations. Most commonly, a general "HTTP request" or "API call" node is placed in the workflow canvas, and the user manually fills in the endpoint address (URL), request method, request header, and complex-structured requestor (JSON format, etc.) of the target agent service. The configuration process in this way is very cumbersome and error-prone, and users need to go deep into the specific API contracts of the agent service and manually write the request data structures that meet their specifications, which is very unfriendly to non-developers. Therefore, a solution is needed that can simply and quickly configure a workflow containing agent service functions. Disclosure of Invention The application provides a workflow configuration method, electronic equipment and a storage medium, which are used for simply and quickly configuring a workflow comprising an agent service function. In order to achieve the above purpose, the application adopts the following technical scheme: in a first aspect, the present application provides a workflow configuration method, including: The method comprises the steps of displaying a workflow editing page, wherein the workflow editing page is used for configuring a workflow composed of a plurality of node objects, and the node objects comprise an agent node; Responding to newly-added intelligent nodes in a workflow based on a workflow editing page, and displaying an intelligent node configuration interface, wherein the intelligent node configuration interface comprises an intelligent configuration control, a user input area and a variable configuration area, wherein the intelligent configuration control is used for selecting target intelligent services called by the intelligent nodes, the user input area is used for configuring prompt information when the target intelligent services are called, the variable configuration area is used for selecting input parameters of the target intelligent services in output parameters of upstream nodes and/or parameters in a preset variable library, and the upstream nodes are node objects configured by users and operated before the intelligent nodes; In response to receiving the validation operation, a workflow composed of a plurality of node objects is generated. The technical scheme provided by the application has at least the following beneficial effects: By providing a workflow editing page, a user can create a workflow containing different work nodes on the page according to his own needs. When the intelligent agent node is created, the intelligent agent service required by the intelligent agent configuration control integrated in the intelligent agent node configuration interface can be selected, prompt information is input through the user input area, and the input parameters of the selected intelligent agent service can be determined through the variable configuration area. The complex task of calling the intelligent agent service is packaged into a standardized configuration action, and a user can complete calling of the intelligent agent service in a unified visual environment without leaving a workflow editing page or manually writing codes to call an API, so that the operation complexity is greatly reduced. The variable configuration area in the application ensures that the input of the intelligent service does not need additional coding, but can refer to the data produced upstream or the parameters preset by the system in the workflow, and the data in the workflow is visually connected with the intelligent service, thereby ensuring the continuity of visual editing of the workflow and improving the flexibility of workflow configuration. Optionally, before generating the workflow, the method further comprises determining whether a call condition is met for each configured node object, wherein the call condition comprises that parameters from other workflows are included in input parameters of the node object and/or output parameters from downstream nodes of