PICKED FROM N8N.IO · EMAIL & INBOX
When a new email arrives in an IMAP inbox, this workflow turns it into plain text, writes a short summary and drafts a reply of about 100 words with OpenAI. It then emails the draft to a person for approval. Only an approved reply is sent back to the customer.
Template by Davide Boizza · 40.5k views on n8n.io · listed there as “A very simple "Human in the Loop" email response system using AI and IMAP”
- DIFFICULTY
- Beginner
- NODES
- 10
- USES AI
- Yes
- PUBLISHED
- February 2025
001 / WHAT HAPPENS
- 01
An IMAP email trigger watches the inbox and starts when a new message arrives.
- 02
The email's HTML is converted to plain text so the AI can read it.
- 03
OpenAI writes a short summary and drafts a professional reply to the email.
- 04
The draft is emailed to a reviewer, who approves or rejects it.
- 05
If approved, the reply is sent to the original sender.
WHO IT SUITS
Suits a small team that gets steady customer enquiries by email and wants AI drafts but needs a person to check every reply.
CONNECTS
- IMAP email
- OpenAI
002 / BEFORE YOU USE IT HERE
- !Customer or staff details sent to an overseas AI provider such as OpenAI is a cross-border disclosure under APP 8 of the Privacy Act, so say so in your privacy policy.
- !Replies go out to customers once approved, so test with your own address first and check who the reviewer is before switching it on.
- !IMAP and SMTP settings differ between Gmail, Microsoft 365 and other hosts, so confirm the connection details and app password for your mail provider.
LOCAL SWAP
Swap the OpenAI model for another chat model node if you prefer a different provider.
Need n8n and the AI hosted in Australia? →003 / MORE FOR EMAIL & INBOX
- 8 NODESAI
EMAIL & INBOX
Draft Gmail replies to customer emails with OpenAI
GmailOpenAIBeginnerby Nicolas Chourrout76.4k views - 26 NODESAI
EMAIL & INBOX
Sort Outlook emails into categories and folders with AI
Microsoft OutlookOllamaAdvancedby Wayne Simpson74.2k views - 11 NODESAI
EMAIL & INBOX
Auto-label incoming Gmail messages with AI
GmailOpenAIBeginnerby Oskar30.7k views
004 / QUESTIONS
Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.
Yes. Every template on this list is free on n8n.io. You need an n8n account (n8n Cloud or self-hosted) and accounts for the apps it connects to, some of which charge for API use.
We adapt templates to your systems, add approval steps where customers are involved, host n8n in Australia when the data calls for it and hand it over documented.
Book a free call→