# Qualify CSV leads, enrich emails, and deliver results: n8n workflow

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

Source: https://millionrounds.com/workflow/qualify-csv-leads-enrich-emails-and-deliver-results (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 CSV leads, enrich emails, and deliver results

Started by someone submitting a form, and works across Gmail, Google Drive, Google Sheets and WhatsApp. It hands the judgement calls to Gemini and OpenAI. 93 steps, 12 branches, 5 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fqualify-csv-leads-enrich-emails-and-deliver-results)

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

**12** Branches: places the flow splits

**5** Loops or waits

**4** Services it connects to

## The flow

Starts it 1 Model 5 Logic 36 Service 18

The steps in the order they run, from what starts it. The first 60 of 93.

- 1 **On form submission** Form trigger *Starts it*
- 2 **B: Gemini** Lm Chat Google Gemini *Model*
- 3 **5 nano** Lm Chat Open Ai *Model*
- 4 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 5 **Code** Code *Logic*
- 6 **Personalize Message** Chain Llm *Model*
- 7 **Output Parser** Output Parser Structured *Model*
- 8 **CSV Loop** Split In Batches *Logic*
- 9 **Set AI Response** Set *Logic*
- 10 **Remove Duplicate Websites** Remove Duplicates *Logic*
- 11 **Extract from File** Extract From File *Service*
- 12 **P: Merge** Merge *Logic*
- 13 **Remove Duplicate Name** Remove Duplicates *Logic*
- 14 **Replace Value** Code *Logic*
- 15 **Personalization Loop** Split In Batches *Logic*
- 16 **Send to Switch** Switch *Logic*
- 17 **Email Switch** Switch *Logic*
- 18 **Convert to File** Convert To File *Service*
- 19 **Convert to File.** Convert To File *Service*
- 20 **Detect Wrong Website URLs** Set *Logic*
- 21 **Rename New Email Keys** Rename Keys *Service*
- 22 **+1 Email Merge** Merge *Logic*
- 23 **Rename PE Keys** Rename Keys *Service*
- 24 **+2 Email Merge** Merge *Logic*
- 25 **Rename PE + New Email Keys** Rename Keys *Service*
- 26 **Upload file** Google Drive *Service*
- 27 **Send CSV** Whats App *Service*
- 28 **Data Processing Switch** Switch *Logic*
- 29 **+1: Replace with "-"** Code *Logic*
- 30 **+2: Replace with "-"** Code *Logic*
- 31 **Send a message** Gmail *Service*
- 32 **x Website Data** Google Sheets *Service*
- 33 **No Website Loop** Split In Batches *Logic*
- 34 **Loop** Split In Batches *Logic*
- 35 **Web Scrap Loop** Split In Batches *Logic*
- 36 **+1 Email** Google Sheets *Service*
- 37 **+2 Email** Google Sheets *Service*
- 38 **Email exist or not** If *Logic*
- 39 **No Website Merge** Merge *Logic*
- 40 **Processed Data Merge** Merge *Logic*
- 41 **E: Merge** Merge *Logic*
- 42 **E: exist or not** If *Logic*
- 43 **PR: Exist or not** If *Logic*
- 44 **HTTP Request** Http Request *Service*
- 45 **Merge** Merge *Logic*
- 46 **Limit** Limit *Logic*
- 47 **Verify.** Http Request *Service*
- 48 **Set invalid Email** Set *Logic*
- 49 **- Website +- Email +- Phone Number** Google Sheets *Service*
- 50 **Remove No Email Records** Filter *Logic*
- 51 **Full Merge** Merge *Logic*
- 52 **E: Verify** Http Request *Service*
- 53 **E: Email not exist** Set *Logic*
- 54 **PE: Not Exist** Set *Logic*
- 55 **PE: Verify** Http Request *Service*
- 56 **Extract Website Details** Code *Logic*
- 57 **Extract Tag & Attributee** Html *Logic*
- 58 **Website Scrapping Error** Set *Logic*
- 59 **Send a Success Message** Gmail *Service*
- 60 **Right or Wrong.** If *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 93, with 12 branches, 5 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Drive, Google Sheets, WhatsApp
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive, Google Sheets and WhatsApp accounts, and a key for Gemini and 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 Gemini and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 93 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 93 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-csv-leads-enrich-emails-and-deliver-results)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

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

- [**Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach** 96 steps · calls a model · Apify, Gmail](https://millionrounds.com/workflow/complete-b2b-sales-pipeline-apollo-lead-gen-mailgun-outreach)
- [**Local business leads and run AI-powered cold email sequences** 62 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/local-business-leads-and-run-ai-powered-cold-email-sequences)
- [**End-to-end B2B real estate lead enrichment & outreach** 58 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/end-to-end-b2b-real-estate-lead-enrichment-and-outreach)
- [**AI sales agent: fully email handling & lead scoring system** 57 steps · calls a model · Gmail, NocoDB](https://millionrounds.com/workflow/ai-sales-agent-fully-email-handling-and-lead-scoring-system)
- [**Smart email outreach sequence – AI-powered & customizable** 56 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/smart-email-outreach-sequence-ai-powered-and-customizable)
- [**Automate business partner outreach with Google Maps and OpenAI** 55 steps · calls a model · Apify, Google Drive](https://millionrounds.com/workflow/automate-business-partner-outreach-with-google-maps-and-open)
