Branch
Branch action block allows you to move to different path of the conversation flow on the basis of conditions defined
Last updated
Branch action block allows you to move to different path of the conversation flow on the basis of conditions defined
Last updated
With the help of a Branch action block, you can create multiple branches based on certain conditions, which have their separate conversational flows.
Following are a few of the scenarios in which the branch action block can be used:
Let's say you want to separate the flows for visitors speaking from developed countries vs developing countries
When you want to branch out the flow based on a keyword or phrase that the visitor has provided
Operators are constructs that behave like functions and are used for comparison and logical conditions. Using operators in the branch action block allows you to compare the defined values with variables and accordingly navigate your visitors through the flow.
There are various types of operators that Swiftsell supports, they are;
Operator | Description | Example |
---|---|---|
You can follow the following steps to set up the branch action block;
Add action block on canvas by clicking on '+'
Choose 'Branch'
Configure it on the right panel
Add a Branch: You can add multiple branches by clicking on '+ Branch'. The maximum number of branches that you can add is 10
Define the condition: Click on the branch to open the configuration window. You can configure the following once the panel opens up;
Variable: Click on 'Variable' to open the drop-down list of the defined variables and select the variable as per your preference
Operator: Click on 'Operator' to open the drop-down list of supported operators and select it as per your preference
Value: Define the value with which the variable value will be compared. Here you can enter multiple values by hitting enter and they will be displayed as chip
Choose 'Any/All' condition: You can select either of the conditions from Any or All Any: The system will route the visitors through this branch if any of the condition is met or holds true All: The system will route the visitors through this branch if all the conditions are met or hold true
Equals To
Commonly used when you want to match the value of the variable with the defined value
"City" 'Equals To' "New York"
Not Equals To
Commonly used when you don't want the value of the variable to be matched with the defined value
"City" 'Not Equals To' "New York"
Contains
Commonly used when you want the variable to contain the defined value
"URL" 'Contains' "Web"
Does Not Contain
Commonly used when you do not want the variable to contain the defined value
"URL" 'Does Not Contain' "Web"
Is Empty
You can use this operator to identify whether the variable is empty or not
"Phone" is 'Empty'
Is Not Empty
You can use this operator to ensure that variable is not empty
"Name" is 'Not Empty'