Find and approve Apollo B2B cold email leads with OpenAI and Gmail
Ready for 3.0What this workflow does
This AI workflow has 75 nodes and runs when an HTTP GET request hits its webhook URL (plus 3 other triggers). Along the way it connects Google Sheets, OpenAI Chat Model, HTTP Request and Gmail.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 3 other triggers).
- Set Lead Settings (Code): runs custom JavaScript code
- Route by Job Type (Switch): routes items into branches
- If: checks a condition and branches into true / false
- Recompute Link Signature (Crypto): hashes or encrypts values
- Read Pipeline from Sheets (Google Sheets): uses Google Sheets
- Fetch Homepage (HTTP Request): calls an HTTP API
- Create Approval Token (Crypto): hashes or encrypts values
- If: checks a condition and branches into true / false
- Read Suppression from Sheets (Google Sheets): uses Google Sheets
- Extract Website Text (Code): runs custom JavaScript code
…plus 54 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)
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)
- Webhook
n8n-nodes-base.webhook - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Crypto
n8n-nodes-base.crypto - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Wait
n8n-nodes-base.wait - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Switch
n8n-nodes-base.switch - No Operation, do nothing
n8n-nodes-base.noOp - 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 - Gmail
n8n-nodes-base.gmail
From the author
Quick overview Pulls B2B leads from Apollo or Google Sheets, verifies and qualifies them with Hunter and rule checks, researches each company website, drafts a cold email with OpenAI, emails the draft to a reviewer for one-click approval before optionally…