How does AI lead routing work in Zapier?

When inbound leads pile up in a shared inbox, the problem is rarely the leads themselves. It's the gap between a lead arriving and the right person actually seeing it. This page explains how to combine Zapier's AI by Zapier step with Lead Router to automatically classify each lead by fit and urgency, then send it to the correct rep without any manual triage.
Contributed by
SaaS Hackers
No items found.
No items found.
Blog

Quick Answer: You can build an AI-powered lead routing Zap by combining Zapier's "AI by Zapier" step with its Lead Router tool. The AI step classifies each inbound lead by fit and urgency using a prompt you write, then passes a score or tag to Lead Router, which distributes the lead to the right sales rep automatically, without any manual triage.

Your sales team is not losing deals because of bad leads. They are losing deals because the right leads are sitting in a shared inbox while someone figures out whose job it is to respond.

AI lead routing fixes that. This tutorial walks through exactly how to build a Zap that uses AI to classify inbound leads by fit and urgency, then routes each one to the correct rep, instantly. No code required, no third-party AI API keys, and no more leads falling through the cracks.

By the end, you will have a working Zap you can deploy today.

What Is AI Lead Routing in Zapier?

AI lead routing is the process of using an AI model to evaluate inbound leads and assign them to the right sales rep based on predefined criteria, without human intervention. In Zapier, this works by combining two native tools: the AI by Zapier step (which scores and classifies leads using a prompt) and Zapier Lead Router (which distributes leads to reps based on rules).

The result is a fully automated triage system that runs 24/7 across whatever lead sources you use, whether that is a Typeform, a HubSpot form, a Calendly booking, or a direct webhook.

Why Fit and Urgency Are the Right Signals to Route On

Most basic lead routing uses round-robin distribution or simple territory rules. That works fine when lead volume is low and quality is consistent. When neither is true, you need smarter routing.

Fit tells you whether the lead matches your ideal customer profile. This covers company size, industry, role, budget signals, and any qualification criteria your team uses. A lead with strong fit should go to a senior AE. A weak-fit lead might go to an SDR for a quick disqualify.

Urgency tells you how fast the lead needs a response. A prospect who books a demo, mentions a live RFP, or says they are evaluating vendors this month is not the same as someone downloading a whitepaper. Urgency signals determine response time and, in some cases, which rep picks up the phone first.

Routing on both signals together means your best reps spend time on the leads most likely to close, not just the most recent ones.

What You Need Before You Start

  • A Zapier account (the AI by Zapier step requires a paid plan)
  • Access to Zapier Lead Router (currently in open beta, available from the Zapier dashboard)
  • At least one lead source connected to Zapier (Typeform, HubSpot, Webflow, Gravity Forms, or similar)
  • Your sales rep list with email addresses
  • A written ICP definition you can paste into a prompt (company size, industry, job titles, budget range)

How to Build the AI Lead Routing Zap: Step by Step

Step 1: Set Your Trigger

Open Zapier and create a new Zap. Choose your lead source as the trigger app.

Common triggers that work well here:

  • New form submission (Typeform, Gravity Forms, Webflow)
  • New contact created (HubSpot, Salesforce)
  • New row in Google Sheets (if you aggregate leads from multiple sources)
  • Webhook (for custom-built forms or product-led signups)

Test the trigger and confirm Zapier is pulling in the fields you need: name, email, company name, job title, company size, and any freetext fields like "Tell us about your use case."

The more signal you feed the AI step, the better the classification will be.

Step 2: Add the "AI by Zapier" Step

Click the plus icon to add a new step. Search for AI by Zapier and select the Analyse Text or Generate Text action (either works; "Generate Text" gives you more control over the output format).

This is where you write the prompt that classifies the lead.

Your prompt should do three things:

  1. Define what a high-fit lead looks like (your ICP)
  2. Define what urgency signals to look for in the form data
  3. Instruct the AI to return a structured output you can use in the next step

Here is a prompt template you can adapt:


You are a B2B sales qualification assistant. Based on the lead information below, do two things:

1. Score FIT as High, Medium, or Low based on this ICP: [Company size: 50-500 employees. Industry: SaaS or tech. Job title: VP Sales, Head of Revenue, Sales Director, or equivalent. Budget signals: mentions budget, team size over 5 reps, or current tool spend.]

2. Score URGENCY as High, Medium, or Low based on these signals: [High = mentions a deadline, active RFP, or demo request. Medium = comparing tools or in evaluation mode. Low = general interest, early research, or no timeline mentioned.]

Return your answer in this exact format: FIT: [High/Medium/Low] URGENCY: [High/Medium/Low] REASON: [One sentence explaining the scores]

Lead data: Name: [map name field] Company: [map company field] Job title: [map title field] Company size: [map size field] Message: [map freetext field]


Map each bracketed field to the corresponding Zapier field from your trigger. Keep the output format rigid so the next step can parse it cleanly.

Test this step. You should see a response like:

FIT: High
URGENCY: Medium
REASON: VP of Sales at a 120-person SaaS company, comparing tools but no stated deadline.

Step 3: Parse the AI Output

The AI returns a single text block. You need to extract the FIT and URGENCY values as separate fields so your routing logic can act on them.

Add a Formatter by Zapier step. Choose Text as the transform type, then select Extract Pattern or use Split Text to pull out the values.

The simplest approach: use two Formatter steps, each extracting one line.

  • Formatter step A: extract the text after "FIT: " and before the line break. Label this field lead_fit.
  • Formatter step B: extract the text after "URGENCY: " and before the line break. Label this field lead_urgency.

Alternatively, if you want to keep things tight, you can instruct the AI to return JSON instead of plain text:

{"fit": "High", "urgency": "Medium", "reason": "..."}

Then use the Formatter JSON action to parse it. This is the cleaner approach for production Zaps.

Step 4: Add a Filter or Router Step (Optional but Recommended)

Before you route to a rep, decide whether you want to filter out low-fit leads entirely.

If your sales team should only receive High or Medium fit leads, add a Filter by Zapier step:

  • Only continue if lead_fit does not equal "Low"

Low-fit leads can be sent to a nurture sequence, a Slack channel, or a Google Sheet for review instead of hitting a rep's inbox.

This step is optional. If your team wants to see all leads regardless of fit score, skip it.

Step 5: Set Up Zapier Lead Router

Add a Zapier Lead Router step. This is Zapier's native tool for distributing leads to specific reps.

In Lead Router, you will:

  1. Add your sales reps by name and email
  2. Define routing rules based on the fields coming from your Zap
  3. Set a fallback for when no rule matches

For AI-powered routing, set your rules like this:

Rule 1: High Fit + High Urgency

  • Condition: lead_fit equals "High" AND lead_urgency equals "High"
  • Route to: Your most senior AE or the rep with the fastest response time
  • Action: Send immediate email notification, create CRM task with "respond within 15 minutes" flag

Rule 2: High Fit + Medium Urgency

  • Condition: lead_fit equals "High" AND lead_urgency equals "Medium"
  • Route to: Mid-level AE or account team
  • Action: Standard CRM creation, follow-up task for same business day

Rule 3: Medium Fit + High Urgency

  • Condition: lead_fit equals "Medium" AND lead_urgency equals "High"
  • Route to: SDR for quick qualification call
  • Action: Email notification with urgency flag

Rule 4: Medium Fit + Medium or Low Urgency

  • Condition: lead_fit equals "Medium"
  • Route to: SDR pool (round-robin)
  • Action: Standard sequence enrollment

Fallback: Any lead that does not match a rule goes to a Slack channel or a designated team inbox for manual review.

Lead Router supports round-robin distribution within each rule, so if you have three AEs handling High Fit leads, it will distribute evenly between them automatically. If you need outside help refining this logic, SaaS Hackers also has a directory where you can find an expert for B2B SaaS growth and automation support.

Step 6: Add Post-Routing Actions

After Lead Router assigns the rep, add the actions that complete the workflow:

Create or update a CRM record. Map the lead data plus the AI-generated fit score, urgency score, and reason to custom fields in HubSpot, Salesforce, or Pipedrive. This gives reps context before they make contact.

Send a rep notification. Use Gmail, Outlook, or Slack to alert the assigned rep with a message that includes the lead's details and the AI's reasoning. A message like "New High Fit / High Urgency lead: [Name] at [Company]. AI note: VP of Sales, 120-person SaaS company, active RFP" is far more useful than a raw CRM notification.

Enroll in a sequence (optional). If you use a sales engagement tool like Outreach, Salesloft, or Apollo, trigger sequence enrollment based on the fit and urgency combination. High urgency leads might skip the first two touch emails and go straight to a call task.

Step 7: Test the Full Zap End to End

Before you publish, run a live test with at least three lead scenarios:

  • A clearly high-fit, high-urgency lead (use realistic form data)
  • A medium-fit, low-urgency lead
  • A low-fit lead (to confirm it filters correctly)

Check that:

  • The AI output is structured and parseable
  • The correct rep receives the correct lead
  • CRM records include the fit and urgency fields
  • Notifications contain the AI reasoning, not just the raw form data

Once all three scenarios pass, publish the Zap.

How to Improve the Prompt Over Time

The prompt you write on day one will not be perfect. Build in a feedback loop.

Review AI classifications weekly for the first month. Ask your reps whether the leads they received matched the fit and urgency scores. If a "High Fit" lead turned out to be completely unqualified, look at what form data the AI used and adjust the ICP definition in the prompt.

Add more signal when it is available. If your form does not collect company size, consider adding that field. The more structured data the AI receives, the more accurate the classification.

Test prompt variations. Duplicate your Zap, change one element of the prompt, and run both versions in parallel for two weeks. Compare classification accuracy. Keep whichever performs better.

Common Mistakes to Avoid

Vague ICP definitions in the prompt. "Mid-market companies" is not enough. Give the AI specific numbers: employee count ranges, revenue brackets, job title lists. The more precise the ICP, the more accurate the fit score.

Not testing edge cases. A prospect who fills out the form with minimal information will confuse a poorly written prompt. Include instructions for how to handle incomplete data: "If company size is not mentioned, default to Medium fit."

Skipping the Formatter step. If you try to use the raw AI text block in Lead Router conditions, the routing will break. Always parse the output into clean, individual fields first.

No fallback rule in Lead Router. Every routing setup needs a fallback. Without one, leads that do not match any rule simply stop moving through the Zap.

What This Zap Replaces

Before building this, most sales teams handle lead triage in one of three ways: a shared inbox where the fastest person claims the lead, a manual CRM review process that runs once a day, or a basic round-robin that ignores lead quality entirely.

This Zap replaces all three with a system that evaluates every lead in under 30 seconds, routes it to the right person based on actual fit and urgency signals, and gives that person context before they make contact.

SaaS Hackers regularly covers practical B2B SaaS workflows and tools on its blog, which makes this kind of automation a natural extension of modern lead management. That is not a coincidence. It is the workflow where the gap between "a human doing it manually" and "AI doing it automatically" has the clearest commercial impact.

FAQs

What is an AI lead routing Zap? An AI lead routing Zap is a Zapier automation that uses the AI by Zapier step to classify inbound leads by criteria like fit and urgency, then passes those classifications to Zapier Lead Router to assign each lead to the correct sales rep automatically. It removes manual triage from the lead management process entirely.

Do I need to know how to code to build this Zap? No. The entire workflow uses native Zapier tools: AI by Zapier, Formatter by Zapier, and Zapier Lead Router. You write a plain-English prompt to instruct the AI and set routing rules through Zapier's visual interface. No API keys or coding are required.

How accurate is the AI classification? Accuracy depends directly on the quality of your prompt and the data your lead form collects. With a well-defined ICP and specific urgency signals, classification accuracy is high for leads that fill out forms completely. For leads with sparse data, the AI will default to Medium scores unless you instruct it otherwise. Reviewing classifications weekly and refining the prompt improves accuracy over time.

Can I use this Zap with any CRM? Yes. The post-routing CRM step works with any CRM that has a Zapier integration, including HubSpot, Salesforce, Pipedrive, Close, and Zoho. You map the fit score, urgency score, and AI reasoning to custom fields in your CRM so reps have context before they reach out.

What happens to low-fit leads? That is your call. The recommended approach is to filter low-fit leads out of the Lead Router step and send them to a nurture sequence, a Google Sheet for periodic review, or a Slack channel. This keeps your reps focused on leads that match your ICP while ensuring low-fit leads are not deleted or ignored entirely.

Is Zapier Lead Router free? Zapier Lead Router is currently in open beta. Access it from your Zapier dashboard. Check Zapier's current pricing page for the most up-to-date information on which plans include Lead Router access.

No items found.
AI

Find a B2B SaaS Expert

We've collected a directory of B2B SaaS experts and agencies that we've reviewed and categorised based on service and specialism for your review.

SaaS Hackers character line up

More from the blog