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
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:
- Add an Email Trigger (IMAP) node — set it to check every 60 seconds
- Connect your Gmail/Outlook credentials in the node settings
- Add an IF node — use "Text Contains" on the sender field
- Configure your priority list — add your boss, key clients, and team members
- For priority matches: connect a Gmail Label node → set as "Priority"
- For non-priority: connect another IF node checking for newsletter keywords (unsubscribe, newsletter, digest)
- For newsletters: connect a Gmail Label node → "Digest" → check "Archive"
- 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:
- Email Trigger (IMAP) — same as Workflow 1
- Set node — extract the email body, subject, sender, and timestamp
- 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.
- Switch node — route based on the classification
- For booking/sales/support: connect an Email (SMTP) or Gmail node to save the draft
- 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:
- Schedule Trigger — set to run every weekday at 8:00 AM
- IMAP node — fetch all unread emails from the last 24 hours
- Split Into Batches node — process emails in groups of 5 (avoids OpenAI rate limits
Top comments (0)