Categories
Print

Action Block: Branch

What does Branch action block do?

Branch action block allows you to move to different path of the conversation flow on the basis of conditions defined.

It gives you the ability to create multiple branches based on certain conditions, which have their own conversation flows.



Use case scenarios:

Following are few 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 the flow based on a keyword or phrase that the visitors has provided



What are operators?

Operators are constructs which 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.



Types of Operators:

There are various types of operators that WotNot supports. They are;

OperatorDescriptionExample
Equals ToCommonly used when you want to match the value of variable with defined value“City” Equals To “New York”
Not Equals ToCommonly used when you don’t want the value of the variable to be matched with defined value“City” Not Equals To “New York”
ContainsThe operator is used when you want the variable to contain defined value“URL” Contains “Web”
Does Not ContainThe operator is used when you don’t want the variable to contain the defined value“URL” Does Not Contain “Web”
Is EmptyThe operator identifies whether the variable is empty or not“Phone” Is Empty
Is Not EmptyThe operator ensures that the variable is not empty“Name” Is Not Empty


How do I set it up?


  • 1.Add action block on canvas by clicking on ‘+’ sign
  • 2.Choose Branch
  • 3.Configure it on the right panel



1. Add a Branch:


You can add the branch by clicking on ‘+ Branch’


The maximum number of branch that you can add is 10

2. Define the condition:


Click on branch to open the configuration window. You can configure following once the configuration panel opens up;


a. Variable:

Click on the ‘Variable’ to open the drop down list of the defined variables and select the variables based as per your preference


b. Operator:

Click on ‘Operator’ to open the drop down list of available operators and select based on your preference


c. Value:

Define the value with which the variable value will be compared with. Here you can enter multiple values by hitting enter and they will be displayed as chip




3. Choose ‘Any / All’ condition:


You can select either of condition from Any or All

Any: System will route the visitors through this branch if any of the condition is met or holds true

All: System wil route the visitor through this branch if all the conditions are met or holds true