Skip to main content

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

Workflow preview

Workflow preview
100%
Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach & AI reply management preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

️ 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 integra...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.limit, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.switch, n8n-nodes-base.splitinbatches, n8n-nodes-base.wait, n8n-nodes-base.scheduletrigger, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Paul.

Original n8n.io source

1.1 Workflow description

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

✉️ 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 agencies who want speed, personalization, and control without losing human review.

📌 Example: From a verified lead list to a qualified opportunity — fully tracked, classified, and pre-drafted with this automation.


🚀 What This Workflow Does

Step 1 — Lead Generation

  • Import leads from Apollo.
  • Enrich and verify emails.
  • Store results in Supabase/Postgres,

Step 2 — Cold Outreach

  • Send 3 step personalized sequences via Mailgun/SendGrid.
  • Track delivery, opens, replies, and bounces directly in your DB.

Step 3 — Email Management (AI Drafts)

  • Process only incoming Gmail messages from contacts in your DB.
  • Generate personalized reply drafts, label threads, update lead status, and alert your team via Slack/Telegram.

🔗 Integrated Services

  • Database: Supabase/Postgres
  • Outbound Email: Mailgun / SendGrid
  • Inbound Email & Drafts: Gmail (OAuth2)
  • AI Models: OpenAI / Anthropic (JSON mode for classification + drafting)
  • Alerts: Slack / Telegram (optional)

💼 What You Get

  • Detailed setup guide
  • Fully connected 3-step pipeline in n8n
  • Ready-to-use database schema
  • Pre-built AI prompts for intent classification and professional replies

📥 Perfect For

  • SDR teams doing targeted outbound
  • Agencies managing multiple client campaigns
  • Founders building scalable outbound systems
  • Sales ops needing a no-risk, review-first reply process

💡 Why You’ll Love It

This isn’t just another outreach template — it’s a full sales engine.
From verified leads to AI-drafted replies, every action is logged, tracked, and controlled for maximum conversions without sacrificing oversight.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Limit

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 2 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 3 - Time Zone

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Sender Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 6 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 8 - Loop Over Items1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 9 - Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 10 - Schedule Trigger1

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 11 - If3

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Mailgun

Type / Role
n8n-nodes-base.mailgun - mailgun
Config choices
Version 1

Block 13 - Mailgun1

Type / Role
n8n-nodes-base.mailgun - mailgun
Config choices
Version 1

Block 14 - General anlysis

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 15 - Limit1

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 16 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 17 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 20 - Supabase2

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 21 - If2

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 22 - No Operation, do nothing2

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 23 - Supabase3

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 24 - Supabase4

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Showing the first 24 of 116 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach & AI reply management
Complexity advanced
Nodes 116
Categories Content Creation, Multimodal AI
Author Paul
Published 14 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7410/7410.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach & AI reply management do?

️ 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 integra...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.