Automation library · AI assistants

Auto categorise Outlook emails with a local model

Started by an event in a connected app, and works across Outlook. It hands the judgement calls to a local model. 26 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: a local model

26 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 2Logic 10Service 13

The steps in the order they run, from what starts it.

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Ollama Chat Model1Lm Chat OllamaModel
  3. 3Microsoft Outlook23Microsoft OutlookService
  4. 4AI Agent1AgentModel
  5. 5Filter1FilterLogic
  6. 6varJSON1SetLogic
  7. 7Loop Over Items1Split In BatchesLogic
  8. 8Switch1SwitchLogic
  9. 9Catch Errors1SetLogic
  10. 10Markdown1MarkdownLogic
  11. 11Microsoft Outlook12Microsoft OutlookService
  12. 12Microsoft Outlook13Microsoft OutlookService
  13. 13Microsoft Outlook18Microsoft OutlookService
  14. 14Microsoft Outlook16Microsoft OutlookService
  15. 15Microsoft Outlook20Microsoft OutlookService
  16. 16Microsoft Outlook22Microsoft OutlookService
  17. 17Microsoft Outlook21Microsoft OutlookService
  18. 18varEmal1SetLogic
  19. 19Microsoft Outlook10Microsoft OutlookService
  20. 20Microsoft Outlook15Microsoft OutlookService
  21. 21Microsoft Outlook19Microsoft OutlookService
  22. 22Microsoft Outlook17Microsoft OutlookService
  23. 23If1IfLogic
  24. 24Merge1MergeLogic
  25. 25varID & Category1SetLogic
  26. 26Microsoft Outlook Move Message1Microsoft OutlookService

How it's built

Starts on
An event in a connected app
Steps
26, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Outlook
Model
a local model

Questions

What does it need to run?

An n8n account, plus your own Outlook account, and a key for a local model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls a local model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 26 steps before you point it at anything that matters.