Skip to content

Use branches in workflows

Last updated: August 25, 2023

Available with any of the following subscriptions, except where noted:

Marketing Hub Professional, Enterprise
Sales Hub Professional, Enterprise
Service Hub Professional, Enterprise
Operations Hub Professional, Enterprise

Use branches in workflows to send enrolled objects down multiple paths based on specific conditions.

Types of branch logic

In workflows, branches can be created based on the following logic:

  • If/then (based on matching filter criteria): manually configure multiple branches based on properties, activities, and more depending on the workflow type. You can configure this type of branch using AND and OR criteria to further filter enrolled records. Example uses include:
    • Branching enrolled contacts that have filled out a form.
    • Branching enrolled companies that are based in Boston AND have greater than three open deals.
  • Value equals (based on single property value or a single action outcome): automatically configure multiple branches based on properties and the outcomes of previous actions. This type of branch cannot be configured with AND and OR criteria. Each branch action can create up to 250 unique branches for a single property. Example uses include:
    • Building a workflow that creates tasks, then delays contacts until the task is completed. The branch can then segment contacts by whether or not the task was completed.
    • Automatically creating a branch for each owner in a lead rotation workflow.

Before you get started 

Before setting up your workflow branches, please take note of the following recommendations: 

  • If your branch criteria is based on analytics such as page views, it's recommended that you add an 80 minute delay before the branch. This provides sufficient time for the analytics to update. Learn more about the frequency of HubSpot's analytics updates
  • If your branch criteria is based on a contact or associated contact engaging with content in a previous action in the workflow (e.g., contacts opening a marketing email sent in a previous action), add a delay before your branch to ensure that they have time to engage with your content.
  • If you're using a Value equals branch with the criteria based on a multi-checkbox type property, and your record has more than one value, the record will proceed down the None met branch as it is not an exact match. Instead, you can use an if/then branch instead and select the is any of criteria. 

Add a branch to your workflow

To add a branch action to a workflow:

  • In your HubSpot account, navigate to Automation > Workflows.
  • To edit an existing workflow, hover over the workflow, then click Edit. Or, learn how to create a new workflow.
  • Click the + plus icon to add a new action. workflow-action
  • In the left panel, select Branch.
  • Select the type of logic for your branch.


  • Configure the branch based on the selected type:
    • If/then (Based on matching filter criteria)
    • Value equals (Based on single property value or Based on a single action outcome)

Configure an if/then branch

When creating an if/then branch, you'll set up filters so that records that will proceed through a branch depending on if they meet the criteria you've set. You can add up to 20 branches to an if/then branch action.

  • In the left panel, in the Branch name field, enter a name for the branch.
  • Select the filter type (e.g., select Call to filter based on associated call properties).
  • Select the property to filter based on, then set the criteria that will enroll records in the if/then branch. If/then branch criteria options function the same way as enrollment trigger criteria options.
  • After setting the criteria, click Apply filter.
  • To add multiple branches, click Add another branch. Select the criteria for the new branch, then click Apply filter


  • To reorder branches, hover over the branch, then click and drag the blue drag handle to the desired location, or click the More dropdown menu and select Move up or Move down. Enrolled records will be evaluated against each branch in the order that the branches are set (i.e. if a contact meets the first branch criteria, they'll proceed down that YES branch without being evaluated against other branches).


  • To clone a branch, hover over the branch, then click the duplicate clone icon.
  • To delete a branch, hover over the branch, then click the delete delete icon.
  • When you're done, click Save. The branches will appear in your workflow preview.

In the example below, contacts are being evaluated against three branches based on their Lifecycle stage property:


Configure a value equals branch

When creating a value equals branch, you'll select criteria so that a record will proceed through the branch only if they match a certain value for a property or if they complete a specific action.

  • In the left panel, to set your branch criteria, click the Property or value to branch on dropdown menu, then select a property. By default, the properties displayed are for enrolled records of the object on which the workflow is based (e.g., deal properties for a deal-based workflow). Learn how to add data sources, such as properties for associated records.
  • For checkbox and select-type properties, to create a separate branch for each value in the property or outcome, select the Create a separate branch for each value in this property checkbox.
  • Click Next.
value-equals-branch (1)
  • Set up the branches based on the value for the property or action:
    • To add a branch, click + Add a branch, then enter the branch value into the value field.
    • To remove a branch, click the delete delete icon next to the value. 
  • Once you're done, click Save. The branch will appear in your workflow preview.

In the example below, deals are evaluated based on which HubSpot user owns the deal:


Add actions after the branch

After setting up your branches, you can add actions below each branch. 

  • Click the + plus icon to add an action under a YES branch or under the NO branch. In the example below, if a contact has filled out the a specific campaign form, they will go down the YES path. If they have not filled out the form, they will go down the NO path.form-submission-branch
  • Click the + plus icon to add more actions if needed. Enrolled records will complete the workflow after the last action in the branch.

Test the branch

You can test all workflow actions to see how a record would go through your branches.

Clean up your branches

Suggestions will be made for branches that are added to your workflow. When a branch is added an alert may display in the top left to let you know that there are alternate branching options available. When using the clean up functionality, it will only change branch actions. Recommendations help to optimize the structure of the branches by formatting them in the most concise way, but the behavior of the workflow will not be changed.

To review the proposed improvements:

  • In the top left, click Clean up.
  • Review the proposed changes to your branches.
  • To accept the suggested change, click Accept changes.
Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.