Auto categorise Outlook emails with AI
Needs changesNeeds 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 this workflow does
This AI workflow has 26 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Ollama Chat Model and Microsoft Outlook.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Microsoft Outlook: get many
- Filter: keeps only the items that match a condition
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Markdown: converts between Markdown and HTML
- varEmal (Edit Fields (Set)): sets 5 fields: subject, importance, sender…
- varID & Category (Edit Fields (Set)): sets 2 fields: id, category
- AI Agent: runs an AI agent, with model: Ollama Chat Model
- varJSON (Edit Fields (Set)): sets 1 field: output
- Switch: routes items into 6 branches
- Catch Errors (Edit Fields (Set)): sets 1 field: error
…plus 14 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent1 (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent1 (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - Microsoft Outlook
n8n-nodes-base.microsoftOutlook - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Markdown
n8n-nodes-base.markdown - Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch
From the author
Automate your email management with this workflow, designed for freelancers and business professionals who receive high volumes of emails. By leveraging AI-powered categorisation and dynamic email processing, this template helps you organise your inbox and…