Marketing

Automatic Email Classification in Outlook Using AI

36 nodes 175 123 Automatic trigger
Download

Workflow Description

Automatically categorize incoming emails in Outlook by topic and priority using a local language model, organizing messages into smart folders and applying custom actions based on intelligent classification results.

How it works

  1. 1.Capture new emails from Outlook in real-time
  2. 2.Process emails in parallel batches for improved performance
  3. 3.Analyze email content using AI Agent and local language model
  4. 4.Apply intelligent rules to assign the correct classification category
  5. 5.Automatically move emails to designated folders based on classification

Use cases

  • Separate marketing and sales emails from urgent team communications
  • Identify and prioritize critical messages in a dedicated high-priority folder
  • Organize customer inquiries by request type for faster response routing

Requirements

  • Active Outlook account connected to n8n
  • Local language model available via Ollama or LM Chat server
  • Full permissions to read and modify email folders

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Lm Chat Ollama Outlook Split In Batches AI Agent

Details

Trigger Automatic trigger
Nodes 36
Apps 4
Views 175
Downloads 123

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (36)

/

When clicking ‘Test workflow’

Manual Trigger

#1

Sticky Note8

Sticky Note

#2

Sticky Note9

Sticky Note

#3

Ollama Chat Model1

Lm Chat Ollama

#4

Microsoft Outlook10

Microsoft Outlook

#5

Microsoft Outlook12

Microsoft Outlook

#6

Loop Over Items1

Split In Batches

#7

Microsoft Outlook13

Microsoft Outlook

#8

Microsoft Outlook15

Microsoft Outlook

#9

Microsoft Outlook16

Microsoft Outlook

#10

Microsoft Outlook17

Microsoft Outlook

#11

Microsoft Outlook18

Microsoft Outlook

#12

Microsoft Outlook19

Microsoft Outlook

#13

Markdown1

Markdown

#14

varEmal1

Set

#15

Microsoft Outlook20

Microsoft Outlook

#16

Microsoft Outlook21

Microsoft Outlook

#17

Filter1

Filter

#18

If1

If

#19

Microsoft Outlook22

Microsoft Outlook

#20

Catch Errors1

Set

#21

varJSON1

Set

#22

Sticky Note10

Sticky Note

#23

Microsoft Outlook23

Microsoft Outlook

#24

varID & Category1

Set

#25

Sticky Note11

Sticky Note

#26

Sticky Note12

Sticky Note

#27

Sticky Note13

Sticky Note

#28

Sticky Note14

Sticky Note

#29

Sticky Note15

Sticky Note

#30

Sticky Note16

Sticky Note

#31

Sticky Note17

Sticky Note

#32

Microsoft Outlook Move Message1

Microsoft Outlook

#33

AI Agent1

Agent

#34

Merge1

Merge

#35

Switch1

Switch

#36