Conditional workflows allow you to create multiple paths based on a condition in your automation.
You can add condition blocks right in the Builder. To do this, click on the plus icon and then on New Condition.
Condition blocks have three arguments:
- Value to check. Ex: task title or assignee name.
- Evaluation Operator. Ex: contains or equals.
- Value to compare against. Ex: John.
Example with conditionals
Let's take a look at a workflow where a conditional block could be useful.
Imagine you use Asana for project management. It’s your single source of truth to track tasks and know who is working on what. You have both employees and contractors who use Asana, but they use different tools for communication. Your internal team uses Slack, and contractors use email.
Now, your goal is to increase how fast new tasks get addressed. So you got a genius idea 💡️ – let’s remind the task assignees when a new task is created.
If you were to create a playbook only with Slack reminders, then your contractors wouldn’t get them.
This is where a conditional block comes in! Let’s add a conditional statement that checks if the assignee's email contains your company domain.
If yes, then send a Slack message. If not, send an email.
Conditional blocks are still new and don’t yet support all data types. For example, Bardeen can’t check dates yet.
We plan to add additional filtering options and support for all data types.
Meanwhile, please don’t hesitate to reach out in our user community to learn more about conditionals and how to get the most out of them.