Templates / Automatic email categorization and organization with Outlook and GPT-4o

Automatic email categorization and organization with Outlook and GPT-4o

Needs changes

by Can KURT · 3,064 views · created 2025-09-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 22 nodes and runs on a schedule (every minute). Along the way it connects Microsoft Outlook and OpenRouter Chat Model.

How it runs

Trigger: On a schedule (every minute).

  1. RecievedEmail (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. Get many folders (Microsoft Outlook): get many (folder)
  7. Summarize: summarizes / groups the items
  8. Code: runs custom JavaScript code
  9. VarID Category (Edit Fields (Set)): sets 2 fields: id, category
  10. AI Agent: runs an AI agent, with model: OpenRouter Chat Model

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

Services it uses

Microsoft OutlookOpenRouter Chat Model

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), AI Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent1 (v1.6), AI Agent (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (12)

From the author

n8n – Outlook AI Categorization & Labeling (Fully Automated) > Zero manual mapping. The workflow automatically discovers your Outlook folders, understands the context, assigns the correct category, and moves the email into the right folder. It uses the…

Excerpt from Can KURT'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.