DEV Community

Cover image for How to Automate Your Email with n8n in 10 Minutes (3 Workflows)
Chris Wall
Chris Wall

Posted on

How to Automate Your Email with n8n in 10 Minutes (3 Workflows)

How to Automate Your Email with n8n in 10 Minutes

You check email 15+ times a day. That's roughly two hours — gone every single day.

You're not alone. The average professional spends 28% of their workweek on email. But here's what nobody tells you: you can automate 80% of it with three n8n workflows and about 10 minutes of setup time.

No coding required. Here's exactly how.

Before You Start

You'll need:

  • An n8n instance (self-hosted via Docker, n8n.cloud, or n8n Desktop — anything v1.0+ works)
  • A Gmail or Outlook account with IMAP enabled
  • An OpenAI API key (for the AI-powered workflows)

If you don't have n8n set up yet, the Docker install takes about 5 minutes:

docker volume create n8n_data
docker run -d --restart unless-stopped \
  --name n8n \
  -p 5678:5678 \
  -v n8n_data:/home/node/.n8n \
  -e N8N_SECURE_COOKIE=false \
  n8nio/n8n
Enter fullscreen mode Exit fullscreen mode

Now let's build the workflows.


Workflow 1: Smart Email Sorter

What it does: Automatically labels and routes incoming emails to the right folders. Priority emails stay in your inbox. Newsletters go to a digest folder. Everything else gets archived.

How to build it:

  1. Add an Email Trigger (IMAP) node — set it to check every 60 seconds
  2. Connect your Gmail/Outlook credentials in the node settings
  3. Add an IF node — use "Text Contains" on the sender field
  4. Configure your priority list — add your boss, key clients, and team members
  5. For priority matches: connect a Gmail Label node → set as "Priority"
  6. For non-priority: connect another IF node checking for newsletter keywords (unsubscribe, newsletter, digest)
  7. For newsletters: connect a Gmail Label node → "Digest" → check "Archive"
  8. For everything else: connect a Gmail Label node → "Review"

That's it. Activate the workflow and watch your inbox sort itself.


Workflow 2: AI Email Responder

What it does: Common questions get auto-replied with context-aware responses. Booking inquiries, support tickets, and sales leads each get the right reply — you only step in when it's complex.

How to build it:

  1. Email Trigger (IMAP) — same as Workflow 1
  2. Set node — extract the email body, subject, sender, and timestamp
  3. OpenAI node — connect your API key and use this system prompt:
You are a professional email assistant. Classify each incoming email 
as: booking, support, sales, or complex. For booking/support/sales: 
draft a helpful, concise reply that addresses the core question and 
includes relevant next steps. For 'complex': leave it for human 
review. Always be polite, professional, and brief.
Enter fullscreen mode Exit fullscreen mode
  1. Switch node — route based on the classification
  2. For booking/sales/support: connect an Email (SMTP) or Gmail node to save the draft
  3. For complex: connect a Gmail Label node → "Needs Review"

Pro tip: The AI learns from your tone. Send it 3-5 examples of your best replies as reference.


Workflow 3: Daily Email Digest

What it does: Instead of 50 individual emails throughout the day, you get one clean summary every morning at 8 AM.

How to build it:

  1. Schedule Trigger — set to run every weekday at 8:00 AM
  2. IMAP node — fetch all unread emails from the last 24 hours
  3. Split Into Batches node — process emails in groups of 5 (avoids OpenAI rate limits)
  4. OpenAI node — summarize each batch with: "Summarize each email in one sentence. Highlight any urgent items."
  5. Merge node — combine all batch summaries
  6. Code node — format the digest as clean HTML
  7. Email (SMTP) node — send the digest to yourself

The result: One clean email every morning that tells you everything you need to know about yesterday's inbox.


Results You Can Expect

After running these workflows for a week:

Metric Before After
Daily email checking time 2+ hours ~15 minutes
Emails reaching inbox All of them Priority only
Response time to leads 4-24 hours <5 minutes
Morning overwhelm Yes Not anymore

Want the Ready-Made Version?

I've packaged these three workflows as pre-built JSON files with full setup documentation. Import them into n8n, connect your credentials, and you're live in 10 minutes.

Get the pre-built workflows for $7

Each workflow includes:

  • The complete n8n JSON file (import in one click)
  • Step-by-step setup instructions
  • Environment variable templates
  • Troubleshooting guide

(I also sell more advanced individual workflow packs — AI sales pipelines, voice agents, CRM automation — at cardinalventures.gumroad.com)


Next Steps

  1. Start with Workflow 1 — it's the simplest and gives you the most immediate time back
  2. Add Workflow 2 after a few days — once you've seen the sorter working
  3. Workflow 3 is optional — only add it if you still feel overwhelmed by email volume

If you get stuck on any of these, the n8n community forum is incredibly helpful.


About the author: I build n8n automation workflows for small businesses and solopreneurs. You can find my full template library at cardinalventures.gumroad.com.

Top comments (0)