Help

Add branching logic to Zaps with paths

tutorial
Last updated:

Paths let you build advanced workflows to run different actions based on different conditions. Paths use conditional, if/then logic: if A happens in your trigger app, then do X. If B happens, then do Y, and so on.

With each path, you set up rules and decide which actions should occur when those rules are met. You can add up to three paths, and three nested paths (paths within a path), in your Zap. You can only set up paths after adding a trigger to your Zap, and paths must be the final step of your Zap.

Heads Up

Paths are only available on Professional plans and above. If you’re on a Free or Starter plan, you can get a free 7-day trial of paths by adding a paths step to a Zap in the editor.


1. Add a path to your Zap

  • In the Zap editor, ensure you’ve set up your trigger.
  • Click + to add a step.
  • Select Paths. Two paths, A and B, will automatically be created in a single path group (a group of paths on the same level).

Path A and B will be added after adding a paths step

  • Select Path A. This is your first path.
  • In the Name field, give your first path a name that allows you to identify it.
  • Click Continue.

Renaming a path


2. Set your path rule(s)

In the Rules section, set the rule(s) for your path using the three dropdown menus. Each path rule requires three pieces of information:

  1. Field: in the first dropdown menu, select a trigger field to base the rule on.
  2. Rule: in the second dropdown menu, select the rule for the trigger field. Learn more about different rule types.
  3. Value: in the third dropdown menu, enter the specific value the rule must meet.

Path rule

There are two types of logic for multiple path rules:

  • AND logic: to identify trigger data that meets all the path rules, click the + AND button.
  • OR logic: to identify trigger data that meets at least one path rule, click the + OR button.

Learn more about the difference between AND and OR. When you’re done setting up your rules, click Test & Continue.

Note

If a set of trigger data meets more than one path’s rule(s), it will go down each of those of paths.


3. Test your path rule(s)

In the Filter Setup & Testing section, Zapier will test your path rules based on your sample data. A message will inform you if your Zap would or would not have continued down this path based on the sample data.

  • To view the specific sample data that was tested, click the down caret to expand it.

Path rule test

  • Click Continue.

4. Add actions to your path

Next, add actions to your path the same way you would add actions to a regular Zap. You must add at least one action to a path before you can build another path.

When you’re done setting up your action(s), click Set Up Next Path.


5. Add more paths to your Zap

You can add up to three paths in your Zap, and up to three nested paths (paths within a path). To set up your paths, repeat the steps above.

Paths must be the last step in a Zap. If you want the same actions to occur for each path at the end of your Zap, add the actions to each path.

Tip

To implement if/else logic, you can set the rules for two paths with opposite conditions. For example, in Path A: if the email address exists, and in Path B: if the email address does not exist.

When you’re done setting up all your paths, click Finish this Zap.

Note

Tasks are counted in paths in a similar way to filters. Learn more about how tasks are counted in paths.


Was this doc helpful?

Frequently Asked Questions

How many Paths can be placed in a Path Group?

Need More Help?

Zapier Support

Contact our world class support team and we’ll be happy to help you get up and running!
Contact Us

Hire an Expert

We have a directory of professionals across the globe who are ready to help.
Find a Zapier Expert