Conditional node
This document explains how to configure and use the conditional node in process management and includes an application example.
Overview
A conditional node makes a branching decision based on predefined conditions and the current dialog state. It typically takes a collected parameter or a user intent as input and directs the flow to one of several subsequent paths. For example, if an order_status parameter is shipped, the process guides the user to track their package. If the parameter is pending_payment, it prompts the user with a payment link.

Procedure
Node Name: You can customize the node name. The system provides a default.
Branch Condition: The bot evaluates each branch condition sequentially. When a condition is met, the process follows the corresponding branch to the next node.
By default, the node has two branches: Unnamed and Otherwise.
Otherwise: A catch-all branch that runs when no other conditions are met.
Unnamed: A branch where you must define one or more conditions.
Configuring a conditional branch:
Branch name: Enter a branch name to help the bot understand the content of the condition.
Condition configuration:
Parameter: The parameter to evaluate. The parameter can be an API plugin input or output parameter, a context parameter, or a system parameter.
Operator: The comparison operator. The options are equal to, not equal to, greater than, less than, greater than or equal to, and less than or equal to.
Condition value: The value to compare against the parameter.

You can also click Add to include more conditions for the branch. Multiple conditions can be linked using OR or AND logical operators.


Add a conditional edge:
If you need more than two conditional branches, you can create a new edge by hovering over the node, then clicking and dragging from the add icon.

After adding the edge:

Example
Scenario: In a work order processing use case, a user wants to manage their gas service. After the system obtains the user's information, it checks whether the user account exists. If the account exists, the system dispatches a work order. Otherwise, it initiates a transfer to agent.
Here is the example process:

Configuration steps
Create a new process and open the process canvas editor.
Configure the input intent edge to trigger the process when the user expresses an intent related to managing their gas service.
Add a plugin call node to retrieve the user's ID and validate their information.
To learn how to configure a plugin call node, see Plugin Call Node.
Add a conditional node to create a conditional branch based on the response from a query API call. The node checks if the
query_ignition_userobject contains the valid fieldsoutput,output_address, andoutput_name. If all these fields exist and are not empty, the process proceeds to the "User meets the condition" branch. Otherwise, the process proceeds to the "Otherwise" branch to trigger a transfer to an agent.
The "User meets conditions" branch:

Add a bot response node to complete the process.
Result



