Automatically classify and summarize emails using AI agents
Workflow Description
An intelligent automation that receives emails from Gmail, categorizes them by priority and subject matter, and summarizes their content using advanced language models. It stores extracted information in a vector database for fast retrieval and intelligent search capabilities.
How it works
- 1.Receive emails from Gmail via IMAP protocol
- 2.Dynamically classify messages using AI agents and contextual analysis
- 3.Summarize content and store extracted data in Qdrant vector database
- 4.Send automated responses or actions via email or Google Drive
Use cases
- Manage large email volumes with automatic categorization of important and urgent messages
- Extract summaries and key information from customer and partner communications
- Quickly search previous emails and retrieve relevant information on demand
Requirements
- Gmail account or IMAP-compatible mail server
- API keys for OpenAI or alternative LLM service
- Google Drive connection (optional for advanced storage)
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (31)
Email Trigger (IMAP)
Email Read Imap
Markdown
Markdown
Send Email
Email Send
Qdrant Vector Store
Vector Store Qdrant
Embeddings OpenAI
OpenAI
Email Summarization Chain
Chain Summarization
Write email
Agent
OpenAI
OpenAI
Gmail
Gmail
Text Classifier
If
Edit Fields
Set
When clicking ‘Test workflow’
Manual Trigger
Create collection
HTTP Request
Refresh collection
HTTP Request
Get folder
Google Drive
Download Files
Google Drive
Default Data Loader
Document Default Data Loader
Token Splitter
Text Splitter Token Splitter
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Qdrant Vector Store1
Vector Store Qdrant
Embeddings OpenAI1
OpenAI
Sticky Note
Sticky Note
DeepSeek Chat Model
Lm Chat Deep Seek
Sticky Note2
Sticky Note
Sticky Note5
Sticky Note
Sticky Note1
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Email Reviewer
Agent
Sticky Note8
Sticky Note