Templates / Score B2B leads and draft cold emails with Google Sheets, Apify and OpenAI

Score B2B leads and draft cold emails with Google Sheets, Apify and OpenAI

Ready for 3.0

by Kseniia · 1 views · created 2026-11-09

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Sender & ICP Config (Edit Fields (Set)): sets 11 fields: senderName, offerSummary, callToAction…
  2. Read Leads from Google Sheets (Google Sheets): uses Google Sheets
  3. Batch Pending or Stale Leads (Code): runs custom JavaScript code
  4. Lock Batch as Processing in Sheets (Google Sheets): append or update
  5. Enrich Domain, Tech Stack & MX (HTTP Request): calls api.apify.com (POST)
  6. Normalize Domain & Classify Status (Code): runs custom JavaScript code
  7. Route Verified MX Domains (If): checks a condition and branches into true / false
  8. Fetch B2B Hiring Signals (ATS) (HTTP Request): calls api.apify.com (POST)
  9. Check Active Google Ads Spend (HTTP Request): calls api.apify.com (POST)
  10. 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

Google SheetsOpenAIGmail

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

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…

Excerpt from Kseniia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.