Templates / Effortless email management with AI-powered summarization & review

Effortless email management with AI-powered summarization & review

Needs changes

by Davide Boizza ✓ · 32,562 views · created 2025-02-07 · Ticket Management, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Write email (v1.7), Email Reviewer (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (17)

Qdrant Vector StoreEmbeddings OpenAISummarization ChainAI AgentOpenAI Chat ModelGmailText ClassifierGoogle DriveDefault Data LoaderToken SplitterDeepSeek Chat Model

What it does

How it Works 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. Below is an explanation of its functionality divided into two main sections: 1. Email Handling and Summarization: - The process begins with the Email Trigger (IMAP) node which listens for new emails in a specified inbox. - Once an email is received, the Markdown node converts its HTML content into plain text if necessary, followed by the Email Summarization Chain that uses AI to create a concise summary of up to 100 words. 2. Response Generation and Approval: - A Write email node generates a professional response based on the summarized content, ensuring brevity and professionalism while keeping within the word limit. - Before sending out any automated replies, the system sends these drafts via Gmail for human review and approval through the Gmail node configured with free-text response options. If approved, the finalized email is sent back to the original sender using the Send Email node; otherwise, it loops back for further edits or manual intervention. - Additionally, there's a Text Classifier node designed to categorize feedback from humans as either "Approved" or "Declined", guiding whether the email should proceed directly to being sent or require additional editing. Set Up Steps To replicate this workflow within your own n8n environment, follow these essential configuration steps: 1. Configuration: - Begin by setting up an n8n instance either locally or via cloud services offered directly from their official site. - Import the provided JSON configuration file into your workspace, making sure all required credentials such as IMAP, SMTP, OpenAI API keys, etc., are properly set up under Credentials since multiple nodes rely heavily on external integrations for functionalities like reading emails, generating summaries, crafting replies, and managing approvals. 2. Customization: - Adjust parameters according to specific business needs, including but not limited to adjusting the conditions used during conditional checks performed by nodes like Approve?. - Modify the template messages given to AI models so they align closely with organizational tone & style preferences while maintaining professionalism expected in business communications. - Ensure correct mappings between fields when appending data to external systems where records might need tracking post-interaction completion, such as Google Sheets or similar platforms.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.