Qualify CSV leads, enrich emails, and deliver results with Google Sheets, Drive, WhatsApp, and GPT-5-NANO
Ready for 3.0What this workflow does
This AI workflow has 93 nodes and runs when someone submits an n8n form (“Bad CSV - Good CSV”). Along the way it connects Google Drive, Gmail, WhatsApp Business Cloud and OpenAI and 3 more.
How it runs
Trigger: When someone submits an n8n form (“Bad CSV - Good CSV”).
- Code: runs custom JavaScript code
- CSV Loop (Loop Over Items (Split in Batches)): loops over the items in batches
- Remove Duplicate Websites (Remove Duplicates): removes duplicate items
- Extract from File: extracts data from a file
- Remove Duplicate Name (Remove Duplicates): removes duplicate items
- Replace Value (Code): runs custom JavaScript code
- Send to Switch (Switch): routes items into 3 branches
- Convert to File: converts data to a file
- Convert to File: converts data to a file (xlsx)
- Detect Wrong Website URLs (Edit Fields (Set)): sets 1 field: is_wrong_website
…plus 78 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (24)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code - Convert to File
n8n-nodes-base.convertToFile - Google Drive
n8n-nodes-base.googleDrive - Remove Duplicates
n8n-nodes-base.removeDuplicates - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - HTML
n8n-nodes-base.html - Merge
n8n-nodes-base.merge - Gmail
n8n-nodes-base.gmail - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Filter
n8n-nodes-base.filter - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Rename Keys
n8n-nodes-base.renameKeys - Google Sheets
n8n-nodes-base.googleSheets - Limit
n8n-nodes-base.limit
From the author
This automated n8n workflow transforms raw CSV data into qualified, enriched lead databases with verified emails and AI-generated personalization. It processes uploaded CSV files through multiple validation, enrichment, and sorting stages before delivering…