Start and End Nodes
The start node is used to start and trigger a workflow, and the end node is used to return the final result of a workflow.
Start Node
The Start node of a workflow is used to set the input parameters required for starting the workflow. The Start node has only input parameters and does not have other parameters such as output parameters. By default, the Start node has an input parameter query, which indicates the original content entered by a user in the current dialog. You can also add other parameters as required for the input of downstream nodes.
Configure the node parameters as follows:
- Param type: The Start node supports input parameters of multiple types, including String, Number, Boolean, Object, File, and Array. Parameters of the Object type support a maximum of three nested layers.
- Description: description of a parameter, which helps a model understand the meaning of the input parameter. When a workflow is bound to an agent, the model automatically analyzes the user's query and fills the information in the query in the corresponding parameters.
- Required: specifies whether the parameter is mandatory. If no mandatory parameter is specified, the workflow cannot be executed. If a workflow is bound to an agent and there are no mandatory parameters in the query, the workflow will not be triggered.
- Default value: You can set the default value of an input parameter. The default value will be displayed in the text box on the Test run page. You need to enter JSON data for the default value of an Object-type parameter. The background will verify the consistency between the JSON data and the parameter definition before assigning a value. An example is shown as follows.
End Node
The end node is the final node of a workflow and is used to return the execution result of the workflow. Two types of parameters can be configured for the end node: input parameters and output parameters. They correspond to two return modes: text return and variable return.
Configure the node parameters as follows:
Input params: Input parameters support the reference and input types. An input parameter can be returned only after it is inserted as {{variable_name}} in the text box of the specified response.
Reply: You can edit the reply content in the text box. You can insert input parameters in the text box in the format of {{variable_name}} or directly return the input parameters. The final execution result of the workflow is returned based on the specified reply. Output parameters cannot be inserted in the specified reply.
Output params: Output parameters are returned as variables and support the reference and input types. After a workflow is executed, all output parameters are returned in JSON format. Output parameters apply to sub-workflows. If a workflow is bound to an agent and the workflow is triggered in a dialog, the model automatically summarizes the content in JSON format and replies to users in natural language. Output parameters cannot be referenced in a specified reply.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot