Workflow Action: If/Else

Created by Stefan Perchinkov, Modified on Wed, 26 Feb at 3:11 AM by Stefan Perchinkov

Using the If/Else Workflow condition allows you to create different paths within a Workflow. This allows you to customize Workflows with an innovative interface, scenario recipes, and enhanced branching functionality that ensures that your workflows are more adaptable to customer behavior and business needs. There are numerous options for customizing the If/Else condition by adding one or multiple “and” and “or” filters to customize the setup as you need.

Key Features and Benefits

  1. Scenario Recipes
    Scenario Recipes are pre-built templates designed to simplify setting up If/Else conditions within your automation workflows. Whether you're looking to branch based on customer interactions, behaviors, or other criteria, these recipes provide a quick and easy starting point.
  • Selection Made Simple: Choose from 10 pre-built recipes designed for a range of If/Else scenarios.
  • Prerequisite Alerts: Recipes inform you of any setup requirements beforehand, ensuring a seamless process.
  1. Enhanced Branch Functionality
    The branch functionality improves clarity and user experience when setting up conditional workflows.
  • Clear Summaries: Branch summaries offer a quick view of each condition being met, simplifying navigation and editing.
  • Detailed Condition View: For branches with multiple conditions, view them all in a pop-up by clicking on the "+x more conditions" button.
  • Focused Editing: Isolate a branch to make adjustments while the others collapse, providing a focused view for easy customization.
  • Drag-and-Drop Reordering: Rearrange branches effortlessly through a simple drag-and-drop interface.
  1. "Time of the Day" Condition
    An option is available for time-based conditions:
  • Granular Control: Set specific times down to 15-minute intervals for more precise automation triggers.
  1. Appointment options within the If-Else action

Customize workflow behavior based on appointment events such as rescheduling, start date, or end date. This streamlines the automation process by enabling users to create specific branches depending on whether an appointment was rescheduled, as well as dynamically modify actions based on appointment dates.

  • Select "Appointment" in the If-Else branch dropdown and choose between Appointment Rescheduled, Start Date, or End Date.

Note: Either or both of the triggers - Appointment Status or Customer booked appointment need to be selected for this option to be available.

  • Real-Life Use Cases:
  • Organize workflow branches based on conditions, such as whether an appointment was rescheduled.
  • Reorder workflow actions using the appointment’s Start Date and End Date.

Create a Workflow with the If/Else Action

Create a new Workflow or edit an existing one.

  • Set up your Workflow triggers.

Step 2: Add the If/Else Condition Event

  • Click on the + icon to add an action to the Workflow.
  • Choose the “If/Else” condition.
  • Add one or more segments and operators, and choose from the dropdowns to customize the action. (In the Image above, I set the condition so anyone with “Los Angeles” as their City, and anyone without the name Bob, would go down 1 path of the workflow. Anyone else would go down the 2nd path.)
    • NOTE: You can toggle between “And” and “Or” to decide if you want 1 or more operators to function together or independently. AND implies that both conditions must be met. OR implies any one of the conditions must be met. The first Or that the system runs into will be considered.

Please Note:

  • When necessary, you would use conditions to filter as specifically as possible. You would separate these into multiple segments to dial in on specific scenarios. 
  • Take advantage of the pre-built Scenario Recipes to speed up the setup of your If/Else conditions. These recipes help you quickly build logic without starting from scratch and ensure you consider all necessary prerequisites.

Note: You can add multiple options or paths to your If/Else condition to completely customize the Workflow experience.

Please note: The maximum number of branches for a single condition is ten. While you can branch on many scenarios, it is recommended to utilize multiple workflows for separation. This makes troubleshooting and tracking what is happening in a workflow easier.

  • To use branches, click on add branch and fill out conditions and segments as needed.
  • This will add a branch option.

Please Note: Using a naming convention for troubleshooting, updating, and organization is recommended.

Note: None is a branch that exists if none of the conditions, segments, and branches are met. Depending on your setup, this branch can be used for additional functionality.

  • To delete or duplicate a branch, click on the three dots and choose to delete or duplicate.

Step 3: Add Additional Workflow Events/Actions

  • Once you’ve added the If/Else condition, you will see a split in the Workflow path with “Yes,” “No,” and “None”. Based on the filters from your If/Else condition, contacts will go down one of the different paths, and you can customize additional events. 
  • Switch it from Draft > Publish mode for it to function.
  • Save and confirm any changes to your Workflow.

Pro Tips

  1. Use Clear Naming Conventions: For easier troubleshooting and updates, use clear and descriptive names for your branches and conditions. This helps in quickly identifying and managing different paths within your workflow.
  2. Test Your Workflow Thoroughly: Before publishing, test your workflow with various scenarios to ensure that all conditions and branches work as expected. This helps prevent errors and ensures smooth operation.
  3. Organize Multiple Workflows: For complex setups, consider breaking down your workflows into multiple smaller workflows rather than using a single large one. This can simplify management and make tracking issues easier.
  4. Utilize the “None” Branch: Make use of the “None” branch to capture and handle any unexpected or unfiltered scenarios. This ensures that all contacts are accounted for and processed appropriately.

FAQ

1. How many branches can I create in an If/Else condition?
You can create up to ten branches in a single If/Else condition. For more complex scenarios, it is recommended to use multiple workflows for better organization.

2. What does the “And” operator do in an If/Else condition?
The “And” operator requires that all specified conditions must be met for the path to be followed. If any condition is not met, the contact will not proceed down that path.

3. How does the “Or” operator work?
The “Or” operator allows the contact to proceed down the path if any one of the specified conditions is met. The first “Or” condition that is true will determine the path taken.

4. What should I do if none of the conditions are met?
Use the “None” branch option to handle scenarios where no conditions match. This branch can be used to ensure that contacts are still processed even if they do not fit the specified criteria.

5: How precise is the "Time of the Day" condition?

The "Time of the Day" condition allows you to select specific times down to 15-minute intervals, offering granular control over when a condition should be met.

6: Are there any prerequisites before using Scenario Recipes?

Some Scenario Recipes may have prerequisites. When you select a recipe, it will inform you of any requirements needed to ensure it functions correctly within your workflow.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article