Automated B2B lead generation & cold emails with OpenAI, Apify, Gmail & Telegram
Ready for 3.0What 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”).
- HTTP Request: calls api.apify.com
- Filter: keeps only the items that match a condition
- Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
- If: checks a condition and branches into true / false
- Append row in sheet (Google Sheets): append
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Wait: pauses before continuing
- Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
- Edit Fields (Edit Fields (Set)): sets 2 fields: Send Time, Email Address
- Send a message (Gmail): uses Gmail
…plus 2 more steps. See the full node list below.
Services it uses
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)
- Telegram
n8n-nodes-base.telegram - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Filter
n8n-nodes-base.filter - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Wait
n8n-nodes-base.wait - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - n8n Form Trigger
n8n-nodes-base.formTrigger
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…