Automated inbox organization for Outlook using GPT-4.1 agent
Needs changesWhat this workflow does
This AI workflow has 8 nodes and runs on Microsoft Outlook events. Along the way it connects Microsoft Outlook and OpenRouter Chat Model.
How it runs
Trigger: On Microsoft Outlook events.
- Markdown: converts between Markdown and HTML
- Sanitize Email Body (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: OpenRouter Chat Model; 3 tools (Get Folders, Get Contacts, Move Message)
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 Agent - Determine Category (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.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent - Determine Category (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (6)
- Microsoft Outlook Trigger
n8n-nodes-base.microsoftOutlookTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Microsoft Outlook Tool
n8n-nodes-base.microsoftOutlookTool - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Markdown
n8n-nodes-base.markdown - Code
n8n-nodes-base.code
From the author
Auto-Categorize Outlook Emails with AI in n8n How It Works 1. Trigger: The workflow starts with the Microsoft Outlook Trigger node, polling your inbox every minute for new emails. 2. Extract & Clean Email Content: The email’s key fields (from, subject,…