Add branching logic to Zaps with Paths

The Paths app lets you perform different actions in your Zap based on rules that you define. These rules determine whether the Zap will perform subsequent steps in the path. Paths use conditional logic: “If A happens in your trigger app, then do X. If B happens, then do Y.”

Available on plans:

Free

Pro

Team

Enterprise

Paths terminology

  • Path step: this is a starting point for using Paths in your Zap.
  • Path branch: a single vertical column of action steps in one path that only run when the path rules are met.
  • Path rules: the conditions that determine whether the path branch will run.
  • Path group: a set of path branches at the same horizontal level.
  • Nested path step: a path group nested within a path branch.

1. Add a Paths step to your Zap

  • In the Zap outline, click the Action step or the plus sign + to add a new action. A dialog box will open.
  • Search for and select Paths. Two path branches, “Path A” and “Path B”, will automatically be created in a single path group (a set of paths that are on the same level).

  • (Optional) Rename your path branch
  • Click the three dot icon next to a path branch rule.

  • A dropdown menu will appear. Select Rename.
  • An input box will appear. Enter a name for the path branch.
  • Click the checkmark icon to confirm the new path name.

2. Create path rules

Rules determine whether a path branch should run. To create path rules:

  • In your path branch, select the Path rules. The right sidebar will open to the Rules setup & testing tab.
  • Select the type of rule you want to use for your path branch:
    • Custom rules
    • Always run
    • Fallback
Custom rules Always run Fallback

This path will run if your custom rules are met. With custom rules, you can use “and” or “or” logic when adding multiple rules to your path branch:

  • And logic: your data must match all of the path rules for the Zap to continue.
  • Or logic: your data must match at least one of the path rules for the Zap to continue.

Learn more about the difference between “and” and “or” logic.

Each rule requires three pieces of information:

  • Field: in the first dropdown menu, select a field to be checked.
  • Condition: in the second dropdown menu, select the condition for the field. Learn more about different path rule types.
  • Value: in the third dropdown menu, enter the value the rule must meet.

Tips
  • You can set the rules for two path branches with opposite conditions to ensure your Zap acts correctly in all possible scenarios. For example, in Path A, you can use a rule that says "if the email address exists", and in Path B, the rule can be "if the email address does not exist".
  • You can use custom error handling instead of Paths, to handle any errors that occur in your Zap.
  • The path rules “Always Run” and “Fallback” are mutually exclusive, only one of them can be active in a path group at a given time. However, you can combine either of them with “Custom rules”.

3. Test your path rule(s)

  • Click Continue to test your path rule(s).

Zapier will test your path rules based on the sample data in the fields used in your rules. At the bottom of the Rules setup & testing tab, a message will tell you if your Zap would or would not have continued down the path branch.

4. Add actions to your path

Add actions to your path the same way you would add actions to your Zap. You must add at least one action to each path branch.

5. (Optional) Add more path branches

You can add up to 10 path branches within the same path group. Path branches run sequentially (left to right) as long as their rules are satisfied. 

Example

This Zap’s Paths step contains 3 path branches:

  • Path A
  • Path B
  • Path C

 

To add a path branch:

  • Click the plus icon above the existing path branches.

  • A new path branch will appear as “Path C”.
  • Continue setting up your path rule(s) and action(s).

You can also copy and paste path branches or path groups.

6. (Optional) Add a nested Paths step

A nested Paths step lets you create up to 3 levels of path groups within a Zap. Path branches, including nested Paths steps, run sequentially (left to right) as their rules are satisfied. 

To add a nested path step:

  • Add a new action step where you want the new path to start.

  • Select Paths as the app.
  • A nested Paths step will appear, creating a single path group containing two path branches.

  • Continue setting up your path rules and actions.

7. (Optional) Reposition path branches

You can reposition your path branches within a path group to organize your branching logic visually. Repositioning paths does not influence when the path branch will run.

To move a path branch:

  • Hover to the left of the Path name. The icon will appear.

  • Using the icon, drag the path branch into its new position.
  • A pop-up message will appear to confirm the path branch has moved.

Additional info

How paths run

Paths use sequential execution. Paths branched are evaluated and run one by one in the order they appear within the Zap editor (left to right). This does not change the conditional logic of your path branches.

Infographic displaying how path branches run one at a time with sequential execution

With sequential execution, Zaps may behave differently if:

  • You have multiple path branches that run at the same time.
  • A path branch uses apps like Delay, Code, Looping, Digest, or Sub-Zaps.
  • Loops will still run in parallel rather than sequentially.
  • You rely on when a step runs across different branches (not just if it runs).

If this impacts your workflows, you can:

  • Change the order of path branches. Branches  run top to bottom, then left to right, so the order will impact when steps run.
  • Move time-sensitive steps higher up in your path branch.
  • Split your Zap into multiple Zaps using Sub-Zaps if you need steps to run in parallel.
  • Combine steps into the same path branch.
Example

If path A has a Delay step that delays for 1 day, and path B triggers a Slack message immediately, path B’s steps will be held until path A finishes. This could delay subsequent steps from running unless you reorder your paths.

Path limitations

  • Each path group can have up to 10 path branches.
  • Each Zap can have a maximum of 3 nested Path steps.
  • Zaps are limited to 100 steps, including all steps within paths.
  • You can only set up paths after adding a trigger to your Zap.
  • Deleting a Paths step deletes all path groups within that step, including nested paths.
  • Once you add a Paths step to your Zap, it must be the final step in your Zap.
    • If you add a Paths step before the last step in your Zap, any subsequent steps will automatically be shifted into “Path A” (the first path branch).
  • If a path errors, subsequent paths will still run.
Was this article helpful?
47 out of 77 found this helpful