Templates / Auto categorise Outlook emails with AI

Auto categorise Outlook emails with AI

Needs changes

by Wayne Simpson ✓ · 73,973 views · created 2024-10-06 · 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 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”.

  1. Microsoft Outlook: get many
  2. Filter: keeps only the items that match a condition
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Markdown: converts between Markdown and HTML
  5. varEmal (Edit Fields (Set)): sets 5 fields: subject, importance, sender…
  6. varID & Category (Edit Fields (Set)): sets 2 fields: id, category
  7. AI Agent: runs an AI agent, with model: Ollama Chat Model
  8. varJSON (Edit Fields (Set)): sets 1 field: output
  9. Switch: routes items into 6 branches
  10. Catch Errors (Edit Fields (Set)): sets 1 field: error

…plus 14 more steps. See the full node list below.

Services it uses

Ollama Chat ModelMicrosoft Outlook

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.0Replace 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)

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…

Excerpt from Wayne Simpson's description on n8n.io.

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.