Templates / Automated B2B lead generation & cold emails with OpenAI, Apify, Gmail & Telegram

Automated B2B lead generation & cold emails with OpenAI, Apify, Gmail & Telegram

Ready for 3.0

by Adem Tasin ✓ · 1,444 views · created 2025-10-17 · Lead Generation, AI Chatbot

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 15 nodes and runs when someone submits an n8n form (“Lead Collect Tool”). Along the way it connects Telegram, Google Sheets, Gmail and OpenAI Chat Model. It also calls api.apify.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Lead Collect Tool”).

  1. HTTP Request: calls api.apify.com
  2. Filter: keeps only the items that match a condition
  3. Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
  4. If: checks a condition and branches into true / false
  5. Append row in sheet (Google Sheets): append
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Wait: pauses before continuing
  8. Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
  9. Edit Fields (Edit Fields (Set)): sets 2 fields: Send Time, Email Address
  10. Send a message (Gmail): uses Gmail

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

Services it uses

TelegramGoogle SheetsGmailOpenAI 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 (12)

From the author

🧩 Description A customized n8n workflow inspired by the Lead Generation Agent template. It automates B2B lead scraping via Apify, extracts contact emails with AI, sends cold emails via Gmail, and logs every interaction in Google Sheets with Telegram alerts…

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