A Condition block allows to steer the flow based "if, then" logic statements. The Condition block checks variables and guides the user in different places of the conversation based on it.
🎥You prefer to watch a quick hands-on tutorial? Check out our new bot builder video tutorial!
To add a Condition block to your flow:
4. Next, select greater than and enter 5 in the next input field. This is because we will be offering free pizza for orders greater than 5.
5. If the user's response meets this statement, the conversation will go to a special block called 'Claim Free Pizza'. To make this happen, you can set up a Go To. You can either pick an existing bot dialog or make a new one. Since we don't have a block named 'Claim One Free Pizza' yet, we'll make a new one.
5. The Else statement is executed when none of the other paths are applicable. You have the flexibility to decide what action should be taken when none of the conditions are met. In this case, if the customer's orders are not more than five, the Else section will redirect them to the purchase flow.
6. Next, click on Create and add a message to the 'Claim free pizza' block and the 'purchase flow'.
7. Test the result to see how your changes perform.
See also:
[New bot builder] Save a variable based on button click