Templates / Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach & AI reply management

Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach & AI reply management

Needs changes

by Paul ✓ · 456 views · created 2025-08-14 · Content Creation, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Voice or Text (Switch): routes items into branches
  2. Get many rows (Supabase): uses Supabase
  3. Supabase: uses Supabase
  4. Supabase: uses Supabase
  5. Supabase: uses Supabase
  6. extract email (Code): runs custom JavaScript code
  7. Download File (Telegram): uses Telegram
  8. Text (Edit Fields (Set)): sets or maps fields
  9. If: checks a condition and branches into true / false
  10. Sort: sorts the items

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

Services it uses

MailgunOpenAIOpenAI Chat ModelSupabaseTelegramPostgresGmailAnthropic Chat ModelApify (community)

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).

Removed in 3.0Replace 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)

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…

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