Decision node
This guide explains how to configure and use the decision node in workflow management and provides an application example.
Overview
The decision node routes the conversation down different paths based on preset conditions. It takes collected parameters or user intent recognition results as input and outputs one of multiple possible paths. For example, if the order status is "Shipped", the workflow guides the user to track their package; if the status is "Awaiting Payment", it prompts the user with a payment link.

Node configuration
Node name: Change the default node name to better reflect its purpose.
Branch conditions: The bot evaluates branch conditions sequentially. Once a condition is met, the workflow follows the corresponding branch to the next node.
By default, the node has two branches: "Untitled" and "default".
default: The workflow follows this catch-all branch if no other conditions are met.
Untitled: Configure the conditions for the "Untitled" branch:
Conditional branch configuration:
Branch name: Enter a name that describes the branch's purpose.
Condition configuration:
Operand: Select the parameter to evaluate. Available types include API plugin I/O parameters, path parameters, and system parameters.
Operator: Select a comparison operator, such as "equal to", "not equal to", "greater than", "less than", "greater than or equal to", or "less than or equal to".
Value: Enter the value to compare against the operand.

You can also click "Add" to add additional conditions to the current branch, which can be combined with "OR" or "AND" logic.

You can also click "Add Subgroup" to create a nested group of conditions within the branch.

Add a conditional branch:
If you need more than two branches, hover over the node and drag from the anchor icon to create a new one.

After adding the branch:

Application example
Scenario: A user wants to manage their gas service. The workflow collects the user's information and verifies if they are a registered user. If so, the workflow dispatches a work order. Otherwise, it triggers a transfer to an agent.
The example workflow is as follows:

Configuration steps
Create a new workflow, which opens the workflow canvas editor.
Add an intent branch to trigger the workflow when a user wants to manage their gas service.
Add a plugin call node to retrieve the user ID and validate the user's information.
For more information about configuring a plugin call node, see plugin call node.
Add a decision node. After the API call, this node checks the response to verify that the
query_ignition_userobject contains theoutput,output_address, andoutput_namefields, and that these fields are not empty. If all conditions are met, the workflow follows the "User Condition Met" branch. Otherwise, it follows the "default" branch, which triggers a transfer to an agent.
The "User Condition Met" branch:

Add a bot response node to end the workflow.
Result



