Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach & AI reply management
Needs changesWhat this workflow does
This AI workflow has 96 nodes and runs on Telegram events (plus 5 other triggers). Along the way it connects Mailgun, OpenAI, OpenAI Chat Model and Supabase and 5 more.
How it runs
Trigger: On Telegram events (plus 5 other triggers).
- Voice or Text (Switch): routes items into branches
- Get many rows (Supabase): uses Supabase
- Supabase: uses Supabase
- Supabase: uses Supabase
- Supabase: uses Supabase
- extract email (Code): runs custom JavaScript code
- Download File (Telegram): uses Telegram
- Text (Edit Fields (Set)): sets or maps fields
- If: checks a condition and branches into true / false
- Sort: sorts the items
…plus 67 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Telegram + OpenAI templates (807) · Other Gmail + Telegram templates (361)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in create email sequence (v1.9), Scraper agent (v1.9), Professional Email Response Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) create email sequence (v1.9), Scraper agent (v1.9), Professional Email Response Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (28)
- Limit
n8n-nodes-base.limit - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if - Mailgun
n8n-nodes-base.mailgun - OpenAI
@n8n/n8n-nodes-langchain.openAi - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - No Operation, do nothing
n8n-nodes-base.noOp - Supabase
n8n-nodes-base.supabase - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Sort
n8n-nodes-base.sort - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - Telegram
n8n-nodes-base.telegram - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Postgres
n8n-nodes-base.postgres - Compare Datasets
n8n-nodes-base.compareDatasets - Telegram Trigger
n8n-nodes-base.telegramTrigger - Apify
@apify/n8n-nodes-apify.apify - Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - Gmail Tool
n8n-nodes-base.gmailTool - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic
From the author
✉️ AI-Powered 3-Step B2B Pipeline — Lead Gen → Cold Outreach → AI Drafted Email Management Automate your outbound workflow from prospecting to AI-generated reply drafts in Gmail — all fully integrated with your database. Ideal for SDRs, founders, and growth…