# Auto categorise Outlook emails with a local model: n8n workflow

> Started by an event in a connected app, and works across Outlook. It hands the judgement calls to a local model.

Source: https://millionrounds.com/workflow/auto-categorise-outlook-emails-with-a-local-model (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)

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

Large Calls a model: a local model

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-categorise-outlook-emails-with-a-local-model)

**26 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 2 Logic 10 Service 13

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

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **Ollama Chat Model1** Lm Chat Ollama *Model*
- 3 **Microsoft Outlook23** Microsoft Outlook *Service*
- 4 **AI Agent1** Agent *Model*
- 5 **Filter1** Filter *Logic*
- 6 **varJSON1** Set *Logic*
- 7 **Loop Over Items1** Split In Batches *Logic*
- 8 **Switch1** Switch *Logic*
- 9 **Catch Errors1** Set *Logic*
- 10 **Markdown1** Markdown *Logic*
- 11 **Microsoft Outlook12** Microsoft Outlook *Service*
- 12 **Microsoft Outlook13** Microsoft Outlook *Service*
- 13 **Microsoft Outlook18** Microsoft Outlook *Service*
- 14 **Microsoft Outlook16** Microsoft Outlook *Service*
- 15 **Microsoft Outlook20** Microsoft Outlook *Service*
- 16 **Microsoft Outlook22** Microsoft Outlook *Service*
- 17 **Microsoft Outlook21** Microsoft Outlook *Service*
- 18 **varEmal1** Set *Logic*
- 19 **Microsoft Outlook10** Microsoft Outlook *Service*
- 20 **Microsoft Outlook15** Microsoft Outlook *Service*
- 21 **Microsoft Outlook19** Microsoft Outlook *Service*
- 22 **Microsoft Outlook17** Microsoft Outlook *Service*
- 23 **If1** If *Logic*
- 24 **Merge1** Merge *Logic*
- 25 **varID & Category1** Set *Logic*
- 26 **Microsoft Outlook Move Message1** Microsoft Outlook *Service*

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

## 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%2Fauto-categorise-outlook-emails-with-a-local-model)
- **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.

- [**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)
- [**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)
- [**Automatic email categorization and organization with Outlook** 22 steps · calls a model · Outlook](https://millionrounds.com/workflow/automatic-email-categorization-and-organization-with-outlook)
- [**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)
- [**Generate AI governance policy PDFs with OpenAI and SerpAPI** 33 steps · calls a model · Outlook](https://millionrounds.com/workflow/generate-ai-governance-policy-pdfs-with-openai-and-serpapi)
