Templates / Scrape LinkedIn B2B leads with Apify and GPT-4 and approve emails in Sheets

Scrape LinkedIn B2B leads with Apify and GPT-4 and approve emails in Sheets

Ready for 3.0

by moosa ✓ · 398 views · created 2026-01-26 · Lead Generation, Multimodal AI

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-10-19.

What this workflow does

This AI workflow has 23 nodes and runs when someone submits an n8n form (“LinkedIn Leads Scraping Setup”) (plus 2 other triggers). Along the way it connects Gmail, HubSpot, Google Sheets and OpenAI Chat Model. It also calls api.apify.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“LinkedIn Leads Scraping Setup”) (plus 2 other triggers).

  1. make separate json of each keyword (Code): runs custom JavaScript code
  2. 🔧 Normalize Lead Data (Code): runs custom JavaScript code
  3. Webhook Data Normalizer (Code): runs custom JavaScript code
  4. Data Batcher (Loop Over Items (Split in Batches)): loops over the items in batches
  5. ✂️ Split Email Content (Code): runs custom JavaScript code
  6. Rejection Data Stringifier (Code): runs custom JavaScript code
  7. post Apify data scrap (HTTP Request): calls api.apify.com (POST)
  8. 📤 Send Approved Email (Gmail): uses Gmail
  9. Rejection Email Rewriter (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  10. Get Apify recent run data (HTTP Request): calls api.apify.com

…plus 8 more steps. See the full node list below.

Services it uses

GmailHubSpotGoogle SheetsOpenAI Chat Model

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.

Nodes used (11)

From the author

What this workflow does Fully production-ready B2B lead outreach pipeline that: 1. Takes industry keywords from a form trigger (or you can manually add rows to Google Sheets) 2. Scrapes targeted LinkedIn leads using Apify (peakydev~leads-scraper-ppe actor) 3.…

Excerpt from moosa'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.