Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Implementing Paths for Smart Routing | Filters and Conditional Paths
Workflow Automation With Zapier

bookImplementing Paths for Smart Routing

Swipe to show menu

Building on the email recorder Zap from earlier sessions, you will add paths to separate incoming emails by source, Gmail emails go to one spreadsheet, while Yahoo (Y7) emails go to another. This demonstrates the fundamental path pattern: same trigger, different destinations based on data.

Adding path

Step 1 β€” Determine Path Placement
expand arrow

Paths must be inserted before the point where workflows diverge. Since emails need to go to different spreadsheets, place the Path step above the Google Sheets action.

Step 2 β€” Insert the Path Step
expand arrow

Click Add step above on the Google Sheets action. When you add a Path there, Zapier warns that all following steps will move into the first path. That's exactly what you want, the existing Google Sheets action becomes Path A.

Step 3 β€” Name the Paths
expand arrow

Rename paths immediately and make them descriptive. Clear names let you understand the Zap at a glance.

Configuring the Paths

For each path, set conditions using the formatted (uppercase) sender email, for example the Gmail path checks whether the sender contains GMAIL.COM, while the Y7 path checks for Y7MAIL.COM or YAHOO.COM. Each path has its own Google Sheets action, actions are not shared between paths and must be configured separately.

How the Routing Works

If conditions are set correctly, only the matching path runs. Gmail emails are written to the Gmail sheet, Y7 emails to the Y7 sheet, and emails from other domains do not trigger any action unless you add a fallback path.

Formatter Connection

The Formatter ensures consistent matching by converting emails to uppercase. Path conditions must always match the transformed data, not the original input.

Testing

After publishing the Zap, test with emails from different domains and verify that each entry appears only in the correct spreadsheet. Use Zap history to confirm which paths ran.

Note
Note

Paths make it easy to add routing to existing Zaps without rebuilding them. Each path is independent, conditions must match transformed data, and overlapping conditions can cause multiple paths to run. This pattern scales well as you add more routing rules or destinations.

question mark

What determines which path runs in a Zap with Paths?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

SectionΒ 3. ChapterΒ 3
some-alt