This topic describes how to configure the conditional branch component. This component uses multiple conditions to change the execution path of a flow.
Component information
Component icon | Component name |
| Conditional branch. |
Prerequisites
To configure this component, access the journey canvas by using an existing journey or creating a new one.
Go to the canvas of an existing journey
On the journey list page of Agentic Journey, click Edit to the right of the journey to enter the canvas edit page.
Create a new journey to open its canvas. For more information, see Use Agentic Journey.
Procedure
On the canvas, click the conditional branch component icon to open the component configuration panel on the right.
In the conditional branch configuration panel, the available variables section lists five variables:
incomingMessage,wabaId,wabaPhoneNumber,customerPhoneNumber, andcustomerName. In the branch configuration section, set the And condition logic for Branch_A and add more branch paths by clicking Add new branch. After you complete the configuration, click Save at the top of the page.Configure the component parameters as required. For detailed information about the parameters, see Parameter descriptions.
After you finish the configuration, click Save. In the dialog box that appears, click Save.
Configuration item descriptions
To add a new branch, click Add Add Branch. Configure the branch rules as follows:
Configuration item | Description |
And/Or | If a branch contains multiple rules or rule groups, use And/Or to define how the rules are evaluated.
|
Add rule, Add rule group | In a branch, click |
Please select a variable | Select the variable to evaluate from the variable dropdown list. Variables come from the default available variables and any custom variables you have defined. For more information, see How to use available variables. |
Please select an operator | Select the desired rule from the Please select an operator dropdown list. Available operators include the following:
|
Enter a value | Enter your custom matching value. |
Component configuration example

This example shows:
If the user input matches the condition for the Chinese branch, a message in Chinese is sent and the flow continues.
If the user input matches the condition for the English branch, a message in English is sent and the flow continues.
If the user input does not match any of the branch conditions, the else branch is executed, and the flow continues from the connected node.