# Automatic email categorization and organization with Outlook: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/automatic-email-categorization-and-organization-with-outlook (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# 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.

Large Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomatic-email-categorization-and-organization-with-outlook)

**22 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 4 Logic 11 Service 6

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

- 1 **If1** If *Logic*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 4 **OpenRouter Chat Model1** Lm Chat Open Router *Model*
- 5 **Merge1** Merge *Logic*
- 6 **RecievedEmail** Microsoft Outlook *Service*
- 7 **AI Agent1** Agent *Model*
- 8 **AI Agent** Agent *Model*
- 9 **Loop Over Items1** Split In Batches *Logic*
- 10 **Filter1** Filter *Logic*
- 11 **varJSON1** Set *Logic*
- 12 **Markdown1** Markdown *Logic*
- 13 **Get many folders1** Microsoft Outlook *Service*
- 14 **Catch Errors1** Set *Logic*
- 15 **varEmal1** Set *Logic*
- 16 **If** If *Logic*
- 17 **Get many folders** Microsoft Outlook *Service*
- 18 **Update Category** Microsoft Outlook *Service*
- 19 **Summarize** Summarize *Service*
- 20 **Move Folder** Microsoft Outlook *Service*
- 21 **Code** Code *Logic*
- 22 **VarID Category** Set *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomatic-email-categorization-and-organization-with-outlook)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Outlook](https://millionrounds.com/workflows?service=Outlook#library)

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Latest tailored economic news for business with Gemini** 21 steps · calls a model · Outlook, RSS](https://millionrounds.com/workflow/latest-tailored-economic-news-for-business-with-gemini)
- [**Automatic and dynamic out of office in Exchange online** 19 steps · calls a model · Outlook](https://millionrounds.com/workflow/automatic-and-dynamic-out-of-office-in-exchange-online)
- [**Orchestrate M365 employee onboarding with SharePoint** 19 steps · calls a model · Outlook](https://millionrounds.com/workflow/orchestrate-m365-employee-onboarding-with-sharepoint)
- [**Auto categorise Outlook emails with a local model** 26 steps · calls a model · Outlook](https://millionrounds.com/workflow/auto-categorise-outlook-emails-with-a-local-model-2)
- [**Auto categorise Outlook emails with a local model** 26 steps · calls a model · Outlook](https://millionrounds.com/workflow/auto-categorise-outlook-emails-with-a-local-model)
- [**Email-to-task automation with Outlook and Microsoft To Do** 26 steps · calls a model · Gmail, Google Tasks](https://millionrounds.com/workflow/email-to-task-automation-with-outlook-and-microsoft-to-do)
