In this article, you will learn how to add a condition check to your flow. This can be done using the most suitable decision node from among “check condition,” “check multiple conditions,” and “message interaction.” Continue reading to understand how these nodes work and which one is best suited to the check you need to perform.
- Check condition : checks whether a specific expression is true.
E.g.: Does the contact have the specified parameters? - Check multiple condition: the node has multiple outputs, and the contact exits the node based on specific rules to be set.
E.g.: if the contact's point balance is greater than N, update the “VIP” field.
If the points balance is less than N but greater than X, an email will be sent promoting VIP user services, so the contact will be “encouraged” to make another purchase. If the points balance is less than X, then start the loyalty program workflow. - Message activity: allows the contact to take a different path based on the action taken on the message. It is advisable to use this node in combination with the “wait” action to prevent the contact from proceeding to the next step before the recipient's mail server has communicated the outcome of the message delivery.
E.g.: if the contact has opened the email, send a read notification message.
Check condition
The “Check condition” block checks whether a specific filter or expression is true. To use the node:
- Drag it into the flow
- Define a question
- Choose between “expression” or “filter” mode
- Write the expression or choose the filter that must be satisfied
- Click the “save node” button
The Check condition node always has only two outputs, Yes and No.
Example: Use “check condition” to divide communications to be sent based on age. In a “happy birthday” flow for an eyewear e-commerce site, contacts under the age of 40 will receive a promotion on contact lenses, while those over the age of 40 will receive a message about progressive lenses.
Check multiple condition
The "Check multiple condition" block has multiple exits; the contact exits the node based on specific rules you set up. You can use filters or expressions, or combine filters and expressions within the same node, to create more flexible exit conditions:
To set up multiple conditions:
- Drag the decision block into the flow
- Define a question
- Add and save the desired exits
- Click the “Save” button when you have completed the node configuration
Example: if you want to send communications in multiple languages, you can use the "Check multiple condition" node to segment contacts by country and send messages divided by language.
Message activity
The “Message activity” block causes the contact to exit the node via a different path based on the action performed on a specific message. After dragging the block into the flow:
- Determine when the contact exits, when they clicked or converted
- Choose whether they must have performed the action on any link or on a specific one
- Select the action that the contact must have performed (opened or clicked, bounced, or reported as spam)
- Specify the message
- Click the “save node” button
You can use this node together with the “wait” action to prevent the contact from proceeding to the next step before the recipient's mail server has communicated the outcome of the message delivery.