n8n workflow template · 12 nodes · Email (IMAP)
AI Email processing autoresponder with approval (Yes/No) is a free n8n workflow template that starts when a new email arrives over IMAP and works with Email (IMAP), OpenAI, Email (SMTP), Qdrant and Gmail. It has 12 nodes, 6 of them AI nodes (OpenAI Chat Model, Qdrant Vector Store, OpenAI Embeddings and Summarization Chain). The notes inside the workflow say: “Convert email to Markdown format for better understanding of LLM models” To run it, you add your own credentials for Gmail OAuth2, IMAP, OpenAI API, Qdrant API and SMTP.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Convert email to Markdown format for better understanding of LLM models
Chain that summarizes the received email
Agent that retrieves business information from a vector database and processes the response
For the "Send Draft" node, you need to send the draft email to a Gmail address because it is the only one that allows the "Send and wait for response" function.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Create a vector database on Qdrant and tokenize the documents useful for generating a response
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 quickly integrate Gmail and Outlook via the appropriate trigger nodes
The 12 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us