Skip to main content

Automate personalized cold email sequences with GPT-4, Mailgun and Supabase

Workflow preview

Workflow preview
100%
Automate personalized cold email sequences with GPT-4, Mailgun and Supabase preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. AI Powered Cold Email Sequence Workflow for n8n Unlock advanced cold email automation and boost ...

Best for

  • Lead Nurturing 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
Automate personalized cold email sequences with GPT-4, Mailgun and Supabase
Workflow name
Automate personalized cold email sequences with GPT-4, Mailgun and Supabase

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

AI-Powered Cold Email Sequence Workflow for n8n

Unlock advanced cold email automation and boost your outbound results with this robust n8n workflow, engineered for scale, personalization, and flexibility. Harness AI-driven email content, dynamic lead handling, and intelligent scheduling—without writing code.

What’s Inside

Intelligent Multi-Step Email Outreach

Automate 3-step cold email sequences for every prospect—all fully personalized and contextually adapted through AI research and copy generation. Each contact receives tailored, timely emails designed to maximize engagement and reply rates.

Automated Personalization at Scale

For every new lead, the workflow:

  • Researches company and role context using AI
  • Identifies key pain points and crafts custom hooks
  • Builds multi-language, well-formatted HTML emails with a consistent, brand-aligned tone

This produces authentic, individualized communication—far more effective than generic mail merges.

Advanced Scheduling & Delivery Logic

  • Smart scheduling: Sends distributed across optimal days/hours (configurable for your market)
  • Throttled delivery: Drip batching and dynamic waits to preserve deliverability
  • Automated follow-ups: Gentle, contextual nudges at precise intervals if there’s no reply

Lead Management & Expansion

  • Seamless database integration: Email history, logic, and lead data fully synchronized with your backend (Supabase support included)
  • Integrated lead generation: Suite includes a companion workflow for sourcing, deduplicating, and enriching leads using Apollo, GPT-4, and AI—feeds directly into your campaign pipeline

Built for Reliability and Scale

  • Resilient against errors and duplicate sends
  • Multi-sender rotation for reputation management
  • Easily customizable scheduling, content, languages, and batch size
  • Tracks all critical data fields, like send history and reply status

Use Cases

  • B2B Sales Development
  • Automated Candidate Outreach (Recruitment)
  • Newsletter or Event Drip Campaigns
  • Startup Go-to-Market Sequences
  • Agency Lead Generation

Template Highlights

  • AI-Powered Personalization: Cold emails crafted by GPT-4 and prompt engineering
  • Omnichannel Scheduling: Dynamic batching, throttling, sender rotation
  • Works Out-of-the-Box: Connects to Mailgun, OpenAI, Supabase—simply insert credentials and leads
  • Companion Lead Gen Workflow: Includes Apollo–AI–database pipeline for continuous sourcing that you can acces for free in my profile.
  • Flexible & Modular: Adapt language, schedule, templates, or trigger events as your strategy evolves

Best Practice Features

  • No PII or sensitive data embedded—safe for corporate teams
  • Modular zones for sequence creation, delivery, and tracking—clarity and easy expansion
  • Clearly-named nodes and logical flows, following n8n community standards
  • Robust error handling for high deliverability and low maintenance

Experience end-to-end intelligent email automation—powered by n8n, trusted integrations, and state-of-the-art AI. Both the cold outreach workflow and the lead generation template are included. Discover, engage, and convert—at scale.

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 100 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate personalized cold email sequences with GPT-4, Mailgun and Supabase
Complexity advanced
Nodes 100
Categories Lead Nurturing, Multimodal AI
Author Paul
Published 25 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6402/6402.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 Automate personalized cold email sequences with GPT-4, Mailgun and Supabase do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. AI Powered Cold Email Sequence Workflow for n8n Unlock advanced cold email automation and boost ...

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 Lead Nurturing, Multimodal AI use case.