Automated B2B Lead Generation & Cold Emails with OpenAI, Apify, Gmail & Telegram

Go to Workflow
0 views
Built by Adem Tasin Adem Tasin
Created on June 07, 2026

Description

đź§© 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 for live monitoring.

đź§  How It Works

This workflow automates the entire B2B lead generation and outreach process from data collection to email delivery.
Once you enter your search keyword and location, the system scrapes business details using Apify, filters valid websites, and extracts email addresses with AI. Each lead is then enriched and logged in Google Sheets.

The workflow automatically composes a personalized cold email based on your preferred tone (friendly, simple, or professional) and sends it through Gmail with short delays between each message to avoid spam filters.
You’ll also receive Telegram notifications to monitor progress and any leads that fail to send.

⚙️ Setup Steps

Clone the workflow into your n8n instance.
Add your API credentials:
Apify API Token
OpenAI (or Gemini) API Key
Google Sheets & Gmail account connections
Telegram Bot Token + Chat ID (optional)
Open the Form node or Manual Trigger, and set your search criteria (e.g., “marketing agencies in London”).
Configure your Google Sheet — make sure the columns match the node mapping.
Adjust the AI prompt in the OpenAI node if you want a different tone or style for your emails.
Run the workflow manually to test one or two leads first.
Once confirmed, activate scheduling or keep it manual for on-demand lead generation.

🚀 Try It Out!

Experience how AI and automation can take over your lead generation workflow.
Just enter a business type and location, and watch as the system finds potential clients, extracts contact details, crafts a personalized cold email, and sends it — all without manual effort.
Perfect for freelancers, agencies, or anyone looking to automate their B2B outreach process.

Nodes Used (6)

Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Telegram
n8n-nodes-base.telegram