anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow that has an AI agent set the category and importance of Outlook messages, using rules from Airtable and contacts from Monday.com.
Outlook mail categorized by AI with rules from Airtable is an n8n workflow in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Manual run
It starts when you click Test workflow in n8n:
Messages in Outlook that carry a category, and a high importance when they need action
What you need before you start.
Mailbox
Supplies the messages, then receives each category and the importance.
NeedsA Microsoft Outlook credential
Language model
Reads the message with its contact, rules and categories and returns the category as JSON.
NeedsAn OpenAI API key
Rules and contacts
Holds the categories, the rules, the delete rules and the contact list.
NeedsAn Airtable credential and a base with four tables
Contact source
Supplies the supplier and client contacts that are copied to Airtable each day.
NeedsA monday.com API token and a board id
Checked by Mindket on 13 Nov 2026
This n8n workflow sorts the mail in one Outlook folder with an AI agent. It reads each message that has no flag and no category, together with your category rules from Airtable and a contact list from Monday.com. The agent sets the message’s category in Outlook and marks it high importance when it needs action. Twenty nodes run it, beside nine sticky notes.
People who run a busy Outlook inbox and keep their rules and contacts in Airtable and Monday.com. Skip it if your mail is not in Outlook, or if you cannot send message text to OpenAI.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Services | Account managers | Tell client mail from supplier mail | A manager sees client messages that need action marked high importance. |
| Operations | Office managers | Keep a shared inbox in order | An office manager has invoices and newsletters land in their own categories. |
| Sales | Sales teams | Tell known contacts from strangers | A rep sees which senders are on the contact list. |
| Support | Support leads | Flag messages that need a reply | A lead sorts customer mail and marks the urgent ones. |
You need some n8n and an Airtable base: import a file, add four credentials, fill in several ids and write your own categories.
Any n8n that can reach Outlook, OpenAI, Airtable and Monday.com will run it. The results show in Outlook itself, as categories and importance on the messages.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup takes four credentials, several ids and your own category table.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Outlook | A Microsoft account, and the mail folder to read |
| OpenAI | An API key |
| Airtable | A base with the tables Contacts, Rules, Categories and Delete Rules |
| Monday.com | A token, and a board with a group named topics that lists contacts |
workflow.json.<YOUR_OUTLOOK_FOLDER_ID>, <YOUR_AIRTABLE_BASE_ID>, the four table ids and <YOUR_MONDAY_BOARD_ID>.AI: Analyse Email, replace the role line of the system message with your own.Click Test workflow. The agent goes through up to ten messages and sets a category on each. A message that needs action also gets high importance. Try it on a folder with a few mails first.
| To change | Where |
|---|---|
| What counts as which category | The Categories table in Airtable |
| The agent’s instructions | The system message of AI: Analyse Email |
| Which mail is read | The filter and folder of Microsoft Outlook23 |
| The model | OpenAI Chat Model |
| How often contacts refresh | Update Contacts Schedule Trigger |
An office manager keeps the categories Client, Supplier and Newsletter in Airtable. A message from a known client asks for a signed form by Friday.
The agent finds the sender among the contacts, picks Client and adds the subcategory Action. Outlook shows the category on the message, and its importance changes to High.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. Here one box reads Outlook, boxes look things up in Airtable, an agent decides and two boxes write back. Start with a folder that holds a few messages.
For experts. One agent with an output parser reads the message, the contact, the categories and the delete rules. A loop feeds it one message at a time, and a second branch refreshes the contacts each day.
| Node | What it does | What to know |
|---|---|---|
Email Messages | Keeps the main fields and cleans the body | It strips tags, links, tables and extra spaces |
Merge | Waits for the contact and the three Airtable lists | It sits inside the loop, so check it with several messages |
AI: Analyse Email | Returns a category, a subcategory and its reasoning as JSON | Its prompt asks for a category name from your table |
Get Contacts from Monday.com | Reads the board for the Airtable upsert | The column order sets Type and Email |
This workflow writes to your mailbox and sends message details to OpenAI, so test it on a small folder and check the result.
gpt-4o snapshots. This copy names gpt-5.6-terra, because the agent answers through a function call and OpenAI’s page for gpt-6-luna limits that on Chat CompletionsCheck Mail Schedule Trigger is off, and it now starts all four reads, so it can run alone once you turn it onAn n8n workflow that sorts the mail of one Outlook folder with an AI agent. The agent reads each unflagged message that has no category, together with category and delete rules kept in Airtable and a contact list from Monday.com. It sets the message's category in Outlook and raises its importance when the message needs action.
workflow.json: the workflow as n8n exports it, twenty-nine nodes: twenty that do the work and nine sticky notes. It holds no credential.README.md: these notes.<YOUR_OUTLOOK_FOLDER_ID>, <YOUR_AIRTABLE_BASE_ID>, four table ids such as <YOUR_RULES_TABLE_ID>, and <YOUR_MONDAY_BOARD_ID>.gpt-4o. OpenAI's deprecations page, read on 12 November 2026, gives 14 January 2027 as the shutdown date of the gpt-4o snapshots and names gpt-6-luna. The agent hands its answer to the output parser through a function call, and OpenAI's page for gpt-6-luna says Chat Completions supports function calling only with reasoning effort set to none. The node now names gpt-5.6-terra.Check Mail Schedule Trigger stays off, as before. It now starts Rules, Categories and Delete Rules too, the way the manual trigger does. It used to start only the Outlook read, and Merge waits for all four inputs.1 after a comma in the prompt's example JSON is removed.Contacts needs the columns Email, First Name, Last Name and Type. Rules and Delete Rules hold your own rows. Categories needs Name, Usage, Sender Indicators and Subject Indicators, the fields the agent's prompt refers to.topics that lists your contacts. The Airtable step reads the second column as Type and the seventh column as Email, so the board needs that column order.workflow.json.Microsoft Outlook23, replace <YOUR_OUTLOOK_FOLDER_ID> with the id of the folder to read.Get Contacts from Monday.com, replace <YOUR_MONDAY_BOARD_ID>.AI: Analyse Email, replace the *insert role & title* text in the system message with the role the assistant works for.Check Mail Schedule Trigger and activate the workflow.Microsoft Outlook23. It reads up to ten messages from the folder that are not flagged and have no category. The same trigger starts the three Airtable lookups, which run once each.Convert to Markdown turns each body into text. Email Messages keeps the subject, importance, sender, from address and id, and cleans the body of tags, links, tables and extra spaces.Loop Over Items takes one message at a time, and Contact searches Airtable for the sender's address.Merge waits until the contact, rules, categories and delete rules are all in.AI: Analyse Email gets the message, the contact, the delete rules and the categories. It answers in JSON with an id, subject, category, an optional subcategory and a short analysis, and Structured Output Parser holds it to that shape.Set Category writes the category on the message. If checks whether the subcategory is Action, and then Set Importance sets the importance to High. Both paths go back to the loop.Update Contacts Schedule Trigger runs once a day by default. Get Contacts from Monday.com reads the board and Save Contacts to Airtable adds or updates a row for each person, matched on Email.Categories table.Rules table.Microsoft Outlook23.OpenAI Chat Model.Update Contacts Schedule Trigger.Merge node sits inside the loop. This copy was not run against Outlook, Airtable, Monday.com or OpenAI, so try it with two or three messages and check that each one gets an answer.NOTICE.md 669 B README.md 5 KB workflow.json 25 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
zarazhangrui · Skill
Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…
iptv-org · Kit
Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…