Use the “Conditional” step to create branches in your messaging flow. There are two paths in a branch - a “Path 1” path and an “Otherwise” path. The “Path 1” path is for contacts who match the conditions you define, and the “Otherwise” path is for contacts who don’t.
Configure the “Conditional” step
- Click WhatsApp > Messaging Flows on the left menu.
- Edit or create a new Messaging Flow.
- If editing a flow, click a flow > Update > Steps. Click a node (+) in the builder where you want to place the action. A modal window will appear. Click the "Conditional" option, then click the “Add” button
- If creating a new flow, a modal window will appear in the Flow builder. Click the "Conditional" option, then click the “Add” button
- In the “Add step” modal that appears:
- Click the pencil icon and give your step a name. We recommend using unique names that are short and descriptive
- Click the second pencil icon to assign a name to your path. For example, you can call this path “Yes”
- Configure the conditions the contact must meet to go down the “Yes” path. To add more than one condition, click the “+ Add condition” button. If you add more than one condition to a path, then the contact needs to meet all conditions at the same time to proceed
- Add path (optional) - Click this option and select conditions to create an alternate path for contacts to follow. Add as many additional paths as you like
- If the contact doesn’t meet any of the path conditions you create, they will follow the steps in the “Else” path instead
About the condition builder
You can use contact and global variables to create a condition:
- Contact variables: information in a contact’s profile, such as their email, name, website, or custom attributes
- Global variables: variables set by the system, like the current date, time, day of the week, and whether you are in business hours or not
All conditions are evaluated with an “AND” operator, meaning that all conditions must be met for “Path 1” to run; otherwise, the “Otherwise” path will be executed.