Automation library · AI assistants

Automatic email categorization and organization with Outlook

Started by a clock, and works across Outlook. It hands the judgement calls to OpenRouter. 22 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenRouter

22 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 4Logic 11Service 6

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

  1. 1If1IfLogic
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3OpenRouter Chat ModelLm Chat Open RouterModel
  4. 4OpenRouter Chat Model1Lm Chat Open RouterModel
  5. 5Merge1MergeLogic
  6. 6RecievedEmailMicrosoft OutlookService
  7. 7AI Agent1AgentModel
  8. 8AI AgentAgentModel
  9. 9Loop Over Items1Split In BatchesLogic
  10. 10Filter1FilterLogic
  11. 11varJSON1SetLogic
  12. 12Markdown1MarkdownLogic
  13. 13Get many folders1Microsoft OutlookService
  14. 14Catch Errors1SetLogic
  15. 15varEmal1SetLogic
  16. 16IfIfLogic
  17. 17Get many foldersMicrosoft OutlookService
  18. 18Update CategoryMicrosoft OutlookService
  19. 19SummarizeSummarizeService
  20. 20Move FolderMicrosoft OutlookService
  21. 21CodeCodeLogic
  22. 22VarID CategorySetLogic

How it's built

Starts on
A clock
Steps
22, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Outlook
Model
OpenRouter

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 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 22 steps before you point it at anything that matters.