Automatic Email Classification in Outlook Using AI
Workflow Description
Automatically categorize incoming emails in Outlook by topic and priority using a local language model, organizing messages into smart folders and applying custom actions based on intelligent classification results.
How it works
- 1.Capture new emails from Outlook in real-time
- 2.Process emails in parallel batches for improved performance
- 3.Analyze email content using AI Agent and local language model
- 4.Apply intelligent rules to assign the correct classification category
- 5.Automatically move emails to designated folders based on classification
Use cases
- Separate marketing and sales emails from urgent team communications
- Identify and prioritize critical messages in a dedicated high-priority folder
- Organize customer inquiries by request type for faster response routing
Requirements
- Active Outlook account connected to n8n
- Local language model available via Ollama or LM Chat server
- Full permissions to read and modify email folders
Service Value
Ready-made workflow template for automation delivery and service execution.
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 (36)
When clicking ‘Test workflow’
Manual Trigger
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
Ollama Chat Model1
Lm Chat Ollama
Microsoft Outlook10
Microsoft Outlook
Microsoft Outlook12
Microsoft Outlook
Loop Over Items1
Split In Batches
Microsoft Outlook13
Microsoft Outlook
Microsoft Outlook15
Microsoft Outlook
Microsoft Outlook16
Microsoft Outlook
Microsoft Outlook17
Microsoft Outlook
Microsoft Outlook18
Microsoft Outlook
Microsoft Outlook19
Microsoft Outlook
Markdown1
Markdown
varEmal1
Set
Microsoft Outlook20
Microsoft Outlook
Microsoft Outlook21
Microsoft Outlook
Filter1
Filter
If1
If
Microsoft Outlook22
Microsoft Outlook
Catch Errors1
Set
varJSON1
Set
Sticky Note10
Sticky Note
Microsoft Outlook23
Microsoft Outlook
varID & Category1
Set
Sticky Note11
Sticky Note
Sticky Note12
Sticky Note
Sticky Note13
Sticky Note
Sticky Note14
Sticky Note
Sticky Note15
Sticky Note
Sticky Note16
Sticky Note
Sticky Note17
Sticky Note
Microsoft Outlook Move Message1
Microsoft Outlook
AI Agent1
Agent
Merge1
Merge
Switch1
Switch