AI email autoresponder with approval n8n workflow
This n8n workflow reads incoming company email, writes a reply with retrieval augmented generation, and waits for a Yes or No approval before sending. It is for teams that answer general inquiries by email and want AI drafts checked by a person first.
What it does
An IMAP trigger picks up new mail, converts it to markdown and summarizes it. A model (DeepSeek R1 or OpenAI) drafts the answer using documents stored in a Qdrant vector store, then an approval step decides whether the reply is sent or kept as a Gmail draft.
How to use it
Create a Qdrant collection and load the documents the replies should draw on, then connect IMAP, SMTP, Gmail, OpenAI embeddings and your chat model.
Requirements and limits
Needs a Qdrant vector database and model API access.
More in Gmail and the n8n workflow library.
Full text
Front matter
name: AI Email processing autoresponder with approval (Yes/No)
description: Triggered manually or by an app event. Connects Condition, Email, Gmail, Markdown. # Main Flow ## Preliminary step: Create a vector database on Qdrant and tokenize the documents useful for generating a response ## How it works This workflow is designed to automate the process of handling incoming emails, summarizing their content, generating appropriate responses with RAG, and obtaining approval (YES/NO button) before sending replies. This workflow is designed to handle general inquiries that come in via corporate email via IMAP and generate responses using RAG. You can qu
category: Automation
kind: Workflow
software: Condition|Email|Gmail|MarkdownAI Email processing autoresponder with approval (Yes/No)
Triggered manually or by an app event. Connects Condition, Email, Gmail, Markdown. # Main Flow
Preliminary step:
Create a vector database on Qdrant and tokenize the documents useful for generating a response
How it works
This workflow is designed to automate the process of handling incoming emails, summarizing their content, generating appropriate responses with RAG, and obtaining approval (YES/NO button) before sending replies.
This workflow is designed to handle general inquiries that come in via corporate email via IMAP and generate responses using RAG. You can qu
Steps
- Manual Trigger (manualTrigger)
- Email Trigger (IMAP) (emailReadImap)
- Markdown (markdown)
- DeepSeek R1 (noOp)
- Send Email (emailSend)
- Qdrant Vector Store (noOp)
- Embeddings OpenAI (noOp)
- Email Summarization Chain (noOp)
- Write email (noOp)
- OpenAI (noOp)
- Set Email (set)
- Approve? (if)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Send Draft (gmail)
- Sticky Note4 (stickyNote)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Emailreadimap/1284_Emailreadimap_Markdown_Send.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- Effortless Email Management with AI
- Email AI Auto-responder. Summerize and send email
- Very simple Human in the loop system email with AI e IMAP
- Manualtrigger Workflow: Code, Gmail and Split Out
- Manualtrigger Workflow: Aggregate, Filter and Gmail
- Outputparserstructured Workflow: ChatGPT, Condition and Gmail
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.