n8n workflow template · 22 nodes · Email (IMAP)
Effortless Email Management with AI is a free n8n workflow template that starts when a new email arrives over IMAP and works with Email (IMAP), Email (SMTP), Qdrant, OpenAI, Gmail and Google Drive and more. It has 22 nodes, 12 of them AI nodes (Qdrant Vector Store, OpenAI Embeddings, Summarization Chain and AI Agent). The notes inside the workflow say: “This workflow automates the handling of incoming emails, summarizes their content, generates appropriate responses using a retrieval-augmented generation (RAG) approach, and obtains approval or suggestions before sending replies.” To run it, you add your own credentials for Deep Seek API, Gmail OAuth2, Google Drive OAuth2, HTTP Header Auth and IMAP and others.
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.
This workflow automates the handling of incoming emails, summarizes their content, generates appropriate responses using a retrieval-augmented generation (RAG) approach, and obtains approval or suggestions before sending replies.
You can quickly integrate Gmail and Outlook via the appropriate trigger nodes
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.
Based on the suggestion received, the text classifier can understand whether the feedback received approves the generated email or not.
The Email Reviewer agent, taking inspiration from human feedback, rewrites the email
The 22 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