Create review-ready outreach email drafts from Google Sheets leads with OpenAI
Ready for 3.0What this workflow does
This workflow has 33 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets. It also calls api.apify.com and api.openai.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Prepare Settings (Edit Fields (Set)): sets 9 fields: mode, sellerName, sellerCompany…
- Check Demo Mode (If): checks a condition and branches into true / false
- Load Demo Leads (Code): runs custom JavaScript code
- Read Leads from Sheets (Google Sheets): read (sheet)
- Build Lead Queue (Code): runs custom JavaScript code
- Read Drafts from Sheets (Google Sheets): read (sheet)
- Process Each Lead (Loop Over Items (Split in Batches)): loops over the items in batches
- Summarize Execution (Code): runs custom JavaScript code
- Check Lead Readiness (If): checks a condition and branches into true / false
- Check Social Mode (If): checks a condition and branches into true / false
…plus 22 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Apify + Google Sheets templates (402) · Other Apify + OpenAI templates (230)
HTTP calls to: api.apify.com, api.openai.com
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 (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow loads leads from Google Sheets (or demo data), validates contact permission and unique IDs, gathers supporting evidence from provided notes or optional LinkedIn/X lookups, and uses OpenAI to generate personalized email drafts that…