Automated Email Categorization with Outlook and AI

somdn_product_page

This workflow automates the process of categorizing Outlook emails using AI analysis. Triggered manually, it fetches new emails from a specific folder, sanitizes and analyzes their content, then uses AI to determine categories. The email’s categories are then updated in Outlook, and emails are moved to appropriate folders based on their analysis.

The process starts with a manual trigger for testing purposes, which fetches emails from the Outlook Junk folder while filtering out flagged or already categorized messages. It sanitizes email content by removing HTML tags and unnecessary information. The email data is then sent to an AI model (via Ollama) for classification into categories like ‘action’, ‘junk’, ‘receipt’, ‘SaaS’, ‘community’, or ‘business’.

Based on AI output, the system updates the email’s categories and moves the email to designated folders such as ‘Junk’, ‘Receipt’, ‘SaaS’, ‘Community’, or ‘Actioned’. This workflow helps streamline email management, ensure proper categorization, and prioritize responses for business or community emails.

Practical use cases include automating email triage in a professional environment, reducing manual sorting effort, and maintaining organized Outlook inboxes with AI assistance.

Node Count

>20 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmChatOllama, filter, if, manualTrigger, markdown, merge, microsoftOutlook, set, splitInBatches, stickyNote, switch

Reviews

There are no reviews yet.

Be the first to review “Automated Email Categorization with Outlook and AI”

Your email address will not be published. Required fields are marked *