Draft review-ready B2B cold emails from Google Sheets with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 37 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Google Sheets, OpenAI Chat Model and HTTP Request.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Settings (edit me) (Code): runs custom JavaScript code
- Fetch Homepage (HTTP Request): calls an HTTP API
- Read Leads (Google Sheets): read
- Extract Website Text (Code): runs custom JavaScript code
- Note Fetch Failure (Code): runs custom JavaScript code
- Plan Run: Approvals and New Leads (Code): runs custom JavaScript code
- Enough Website Text? (If): checks a condition and branches into true / false
- New Lead? (If): checks a condition and branches into true / false
- Research Agent (AI Agent): runs an AI agent, with model: OpenAI Model (agent); 2 tools (Fetch Another Page, Look Up Offer Library); output parser: Research Output Parser
- Shape Lead Result (Edit Fields (Set)): sets 12 fields: row_number, status, review_reason…
…plus 19 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011)
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 (18)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Filter
n8n-nodes-base.filter - Wait
n8n-nodes-base.wait - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Http Request Tool
n8n-nodes-base.httpRequestTool - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
From the author
Quick overview This workflow manually pulls B2B leads from Google Sheets, uses an OpenAI chat model to draft a short cold email per company using only provided lead data and your offer, validates each draft against basic quality rules, and appends the results…