Auto-Categorize Outlook Emails with AI & Move to Folders
detail.loadingPreview
Save hours weekly by automatically categorizing and moving Outlook emails using AI. Integrates with Microsoft Outlook & Ollama for smart email management.
🚀Ready to Deploy This Workflow?
About This Workflow
How it works
This workflow automates the categorization and organization of your Outlook emails. It starts by fetching unread, uncategorized emails from your inbox. The email's body is then sanitized to remove HTML and other extraneous information before being sent to an Ollama chat model. The AI model analyzes the content and suggests relevant categories and subcategories. Based on these AI-driven categories, the workflow then updates the email with these categories and moves the email to a predefined Outlook folder (e.g., Junk, Receipt, SaaS, Community, Business). The workflow also includes error handling and logging for robustness.
Key Features
- AI-powered email categorization using Ollama
- Automatic email moving to specific Outlook folders
- Advanced email body sanitization
- Customizable category mapping
- Robust error handling
How To Use
- Configure Outlook Node: Ensure your Microsoft Outlook node is authenticated and set up to fetch emails.
- Set AI Model: Configure the Ollama Chat Model node with your desired model (e.g., 'qwen2.5:14b') and parameters.
- Customize Categories: In the
varID & Category1node, update thecategoryparameter to reflect your desired categorization scheme. Theoutlooknodes (Microsoft Outlook10,Microsoft Outlook12, etc.) are hardcoded with folder IDs. You will need to update thesefolderIdvalues in each relevantMicrosoft Outlooknode to match your desired folder structure within Outlook. For example, replaceAQMkAGE3ZTU5MGMzLTFkNGItNGQ5Zi04MDQ1LThmNGFlMTVhYjMwYgAuAAAD8UhruVwm402lgPBG2Tj-aQEAnz-IOcWBGE2lrVuQgAF6zAAAAgFJAAAAwith the actual ID of your 'Junk Email' folder, and similarly for other folders like 'Receipt', 'Community', 'SaaS', etc. - Test Workflow: Click the 'Test workflow' button to trigger the automation.
Apps Used
Workflow JSON
{
"id": "2f0ee0af-2e00-48e1-a9e9-2802e28119c9",
"name": "Auto-Categorize Outlook Emails with AI & Move to Folders",
"nodes": 0,
"category": "Productivity",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 2f0ee0af-2e00...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Integrations
- Gmail + Schedule Trigger(270 workflows)
- Gmail + Google Sheets(245 workflows)
- Gmail + Split Out(132 workflows)
- Gmail + Gmail Trigger(119 workflows)
- Form Trigger + Gmail(107 workflows)
- Gmail + Google Drive(93 workflows)
- Airtable + Schedule Trigger(86 workflows)
- Gmail Trigger + Google Sheets(71 workflows)
- Gmail + Telegram(63 workflows)
- Gmail + Slack(59 workflows)
Related Workflows
Discover more workflows you might like
Automate Outlook Email Categorization with AI & n8n
Effortlessly auto-categorize Outlook emails using AI and n8n. Improve inbox organization and productivity. Integrates with Microsoft Outlook.
Automate Outlook Email Categorization with AI Agent & n8n
Automatically sort your Outlook inbox using n8n and an AI agent. Save time by directing emails to the right folders, keeping your inbox actionable.
Automate Gmail Label Management: Remove Old, Add New Labels
Streamline your inbox by automatically removing one Gmail label and adding another to messages, saving you manual sorting time.
AI-Powered Text Transformations via Apple Shortcuts
Automate text editing, translation, and grammar correction using Apple Shortcuts and OpenAI.
AI-Powered Text Automations with Apple Shortcuts
Automate text transformations like translation and grammar correction using OpenAI via Apple Shortcuts.
Automate Daily Email Summaries with AI & Gmail - Daily Digest
Save hours daily! Automatically fetch, summarize, and send key email insights using n8n, Gmail, and OpenAI. Get your AI-powered daily digest.