# Qualify and route inbound leads with OpenAI and Google Sheets: n8n workflow

> Started by someone submitting a form, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/qualify-and-route-inbound-leads-with-openai-and-google-sheet (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# Qualify and route inbound leads with OpenAI and Google Sheets

Started by someone submitting a form, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to OpenAI. 21 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fqualify-and-route-inbound-leads-with-openai-and-google-sheet)

**21 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 9 Service 8

The steps in the order they run, from what starts it.

- 1 **Lead Capture Form** Form trigger *Starts it*
- 2 **OpenAI GPT-5** Lm Chat Open Ai *Model*
- 3 **Lead Score Parser** Output Parser Structured *Model*
- 4 **Clean & Validate Lead** Code *Logic*
- 5 **Is Email Valid?** If *Logic*
- 6 **Check Existing Lead** Google Sheets *Service*
- 7 **Invalid Email - No Action** No Op *Logic*
- 8 **Is New Lead?** If *Logic*
- 9 **Notify Workflow Error** Gmail *Service*
- 10 **Enrich Company Data** Http Request *Service*
- 11 **Duplicate Lead - No Action** No Op *Logic*
- 12 **Merge Enrichment** Code *Logic*
- 13 **AI Lead Qualification** Agent *Model*
- 14 **Log All Leads** Google Sheets *Service*
- 15 **Route by Category** Switch *Logic*
- 16 **Notify Sales on Slack** Slack *Service*
- 17 **Send Hot Lead Alert** Gmail *Service*
- 18 **Send Auto-Reply to Lead** Gmail *Service*
- 19 **Wait 1 Day** Wait *Logic*
- 20 **Tag as Cold (No Outreach)** Set *Logic*
- 21 **Send Nurture Follow-up** Gmail *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 21, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Slack
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fqualify-and-route-inbound-leads-with-openai-and-google-sheet)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Enrich Company Data from LinkedIn with Bright Data** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/enrich-company-data-from-linkedin-with-bright-data)
- [**Enrich Monday.com leads & draft personalized emails** 21 steps · calls a model · Gmail](https://millionrounds.com/workflow/enrich-monday-com-leads-and-draft-personalized-emails)
- [**Find and qualify B2B leads with MrScraper and Gemini** 21 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/find-and-qualify-b2b-leads-with-mrscraper-and-gemini)
- [**Generate personalized cold email openers with Claude** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-personalized-cold-email-openers-with-claude)
- [**Lead generator + email hunter with Gemini and Google Drive** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/lead-generator-email-hunter-with-gemini-and-google-drive)
- [**Capture and nurture fraud-proof leads with Gmail** 21 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/capture-and-nurture-fraud-proof-leads-with-gmail)
