Score B2B leads and draft cold emails with Google Sheets, Apify and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI and Gmail. It also calls api.apify.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Sender & ICP Config (Edit Fields (Set)): sets 11 fields: senderName, offerSummary, callToAction…
- Read Leads from Google Sheets (Google Sheets): uses Google Sheets
- Batch Pending or Stale Leads (Code): runs custom JavaScript code
- Lock Batch as Processing in Sheets (Google Sheets): append or update
- Enrich Domain, Tech Stack & MX (HTTP Request): calls api.apify.com (POST)
- Normalize Domain & Classify Status (Code): runs custom JavaScript code
- Route Verified MX Domains (If): checks a condition and branches into true / false
- Fetch B2B Hiring Signals (ATS) (HTTP Request): calls api.apify.com (POST)
- Check Active Google Ads Spend (HTTP Request): calls api.apify.com (POST)
- Save Non-Email / Retry Status to Sheets (Google Sheets): append or update
…plus 9 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)
HTTP calls to: api.apify.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 (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every 30 minutes (or manually) to pull B2B leads from Google Sheets, enrich them via Apify (domain/tech/MX, hiring signals, and Google Ads activity), score fit and intent, and use OpenAI to draft outreach emails that are…