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

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

Needs changes

by Paul ✓ · 329 views · created 2025-07-25 · Lead Nurturing, 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 84 nodes and runs on Telegram events (plus 4 other triggers). Along the way it connects Mailgun, OpenAI, OpenAI Chat Model and Supabase and 3 more.

How it runs

Trigger: On Telegram events (plus 4 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. Download File (Telegram): uses Telegram
  7. Text (Edit Fields (Set)): sets or maps fields
  8. If: checks a condition and branches into true / false
  9. Sort: sorts the items
  10. Evualute when the mail was sent (Code): runs custom JavaScript code

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

Services it uses

MailgunOpenAIOpenAI Chat ModelSupabaseTelegramPostgresApify (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): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
create email sequence (v1.9), Scraper 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 (24)

From the author

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,…

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.