This topic describes how to configure the Conditional Branch component. You can use this component to define multiple conditions and control how a flow executes.
Component information
Component icon | Component name |
| Conditional Branch. |
Preparations
Go to the canvas page of an existing flow or a new flow.
Go to the canvas page of an existing flow.
Log on to the . Choose Chat Flow > Flow Management. Click the name of the flow that you want to edit. The canvas page of the flow appears.

Create a new flow to go to the canvas page. For more information, see Create a flow.
Procedure
Click the Conditional Branch component icon on the canvas. The component configuration pane appears on the right.

Configure the component data as needed. For details, see Configuration items.
Click Save in the upper-right corner. In the message that appears, click Save.

Configuration items
Click Add Add Branch to add a new branch. Configure each branch as follows:
Configuration item | Description | Example |
And/Or | If a branch contains multiple rules or rule groups, use And/Or to set how the rules are evaluated.
| And example: The subsequent operations are executed only if userChooseLanguage is English and incomingMessage contains English. Or example: This example means the next step runs if either condition is true: userChooseLanguage equals English, or incomingMessage contains English.
|
Add Rule, Add Rule Group | In a branch, click |
|
Please select a variable | Select a variable from the dropdown list. Variables come from the default available variables and custom variables in the Available Variables list. For more information, see Use available variables. |
|
Please select an operator | Select an operator from the Please select an operator dropdown list. Options include the following:
|
|
Enter a value | Enter a custom value to match. |
|
Component configuration example

This example shows:
If the user meets the Chinese branch rules, the flow sends a Chinese message and continues.
If the user meets the English branch rules, the flow sends an English message and continues.
If the user does not meet any branch rules, the flow goes to the else branch, jumps to a node, and continues.





