Available on plans:
Paths let you build advanced workflows to perform 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 10 paths in your Zap, and up to 3 nested paths.
- Zaps are limited to 100 steps, including all steps within paths.
- You can only set up paths after adding a trigger to your Zap, and paths must be the final step of your Zap.
1. Add a path to your Zap
- In the Zap editor, ensure you’ve set up your trigger and any necessary action steps. Paths must be the final step in a Zap.
- Click to add a step.
- Search for and select Paths. Two paths, A and B, will automatically be created in a single path group (a group of paths on the same level).
- Click next to Path A.
- A field for entering the path's name will appear. Enter a descriptive name for your first path to easily identify it later.
- Click to confirm the new path name.
2. Set your path rule(s)
- Click Path rules.
In the Rules section, set the rule(s) for your path using the three dropdown menus. Each path rule requires three pieces of information:
- Field: in the first dropdown menu, select a field to base the rule on.
- Rule: in the second dropdown menu, select the rule for the field. Learn more about different rule types.
- Value: in the third dropdown menu, enter the specific value the rule must meet.
There are two types of logic for multiple path rules:
- AND logic: to identify data that meets all the path rules, click the button.
- OR logic: to identify data that meets at least one path rule, click the button.
Learn more about the difference between AND and OR.
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 your rules, click Continue.
3. Test your path rule(s)
In the Rules 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.
If the data the Zap checks matches multiple paths, all matching paths will be used.
When you're done reviewing your test, click Continue.
4. Add actions to your path
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 creating another path.
When you’re done setting up your action(s), click X in the top right-hand corner to close the right sidebar controls. This will allow you to proceed with setting up Path B by repeating the steps outlined above.
5. (Optional) Add more paths to your Zap
You can add up to 10 paths in your Zap, and up to 3 nested paths (paths within a path). If you want the same actions to occur for each path at the end of your Zap, add the actions to each path.
To add a path:
- Click to the right of Path B.
- To set up your paths, repeat the steps above.
To add a nested path:
- Within a path, after your last action, click
- Search for and select Paths. Two nested paths, A and B, will automatically be created in a single path group.
- Repeat the steps above for setting up your path(s).
When you’re done setting up all your paths, turn on your Zap.