n8n and workflows

Plan Outlook and Microsoft 365 workflows in n8n

Reading time
9 minutes
Published
Topic guide
n8n automation
Written by
modernagents editorial teammodernagents is an AI automation agency for SMEs.
Illustration: an envelope with an attachment, a doorway of documents and a locked tray

An n8n Outlook integration should begin with a defined mailbox and a specific task: capture messages, process attachments or prepare reply drafts. Configure connections, permissions and automatic actions only after that scope is clear. A successful login does not prove access to a shared mailbox or permission to send on its behalf.

Key takeaways

The main points for planning n8n workflows with Outlook and Microsoft 365 are:

  • Reading and sending are distinct capabilities; prepare an action list before setup and have the rights assessed for those operations.
  • Subject and sender are insufficient duplicate keys; choose an identification strategy appropriate to the Microsoft interface in use.
  • A draft is a useful boundary for initial automation: the reviewer sees the recipient, subject, content and attachments before deciding whether to send.

01 / 14

What can n8n do with Outlook and Microsoft 365?

Documented operations. The official Outlook node documentation describes operations involving messages, drafts, folders, attachments and calendars. Available authentication and operations also depend on the node version and Microsoft configuration. Documentation was checked on 26 September 2026.

Bounded process. Start with a bounded process, such as receiving service documents in a team mailbox. “AI manages all email” combines very different powers: reading, classification, forwarding, deletion and external replies. Justify and accept each action separately.

First version. A useful initial version reads relevant messages and prepares a reviewable result. Explicitly approved actions can be added after the process is reliable. You should not automate an action simply because the software can perform it.

02 / 14

Which mailbox and which identity does the workflow use?

Mailbox type. Record the exact mailbox address and intended users. An employee's personal mailbox has a different ownership model from a shared service mailbox. Establish who owns the connection and what happens when that person is absent or leaves.

Identity model. Microsoft distinguishes acting for a signed-in user from application access without a present user. This affects consent, permissions and operation. Use the n8n Microsoft credential guide with the current node documentation. Do not copy a broad permission selection from an unrelated screenshot.

Shared mailboxes. Microsoft describes additional requirements for shared or delegated folders in its shared-message access documentation. Test the actual mailbox. Accessing your own inbox successfully can be misleading when production will process a service mailbox.

03 / 14

Which Microsoft permissions does the workflow need?

Prepare an action list before setup. For each planned Outlook action, the table names the business boundary and the acceptance question:

Intended task Business boundary Acceptance question
Read messages Only the specified intake Are unrelated mailboxes excluded?
Retrieve attachments Only permitted types and cases Are unnecessary files skipped?
Create a draft A person decides whether to send Does the draft remain unsent?
Move a message Only after confirmed processing Does failed work remain discoverable?
Send a reply Approved content and recipient only Is the correct sending identity used?

Review by the Microsoft owner. Ask the Microsoft owner to assess rights for those operations. Reading and sending are distinct capabilities. Likewise, application authentication does not prove that access to the intended resource and action is authorised.

Record of permissions. Record granted permissions, the decision date and their owner. If a standard node needs broader rights than the organisation accepts, investigate an appropriate restricted alternative or reduce scope. Do not reflexively increase permissions simply to remove an error.

04 / 14

How do you set up the Outlook connection in controlled steps?

The exact setup depends on Cloud or self-hosting and the approved identity architecture. A sensible project sequence for the Outlook connection is:

  1. identify a test mailbox
  2. approve the identity model
  3. configure the application
  4. register the appropriate callback address
  5. create the n8n credential
  6. perform a read-only test

Application registration. For your own application registration, record the tenant, application ID, owner and credential expiry or renewal procedure. Store secrets through the intended credential mechanism. An incorrect redirect address, missing consent and expired application authentication are different failures and should be investigated separately.

Smallest write test. Next, test the smallest required write in a controlled environment, such as a draft with an unmistakable test subject. A green connection indicator is insufficient. Acceptance must show the intended mailbox, correct identity and expected resulting object.

05 / 14

Example: route service attachments into the right case

Scenario. The following is an illustrative design, not a customer integration tested by modernagents. A company receives service documents in a shared mailbox. Each enquiry should match an existing CRM case, while ambiguous messages remain with a case worker.

Normal path. The workflow reads relevant new messages and captures a stable message reference. It checks for a usable case number. Only one valid match permits approved attachments to be stored in the intended destination. Confirmed destination references are recorded before the message is marked or moved according to the agreed rule.

Exceptions. A missing case number creates a clarification task. Conflicting references do not justify selecting the first match. A password-protected or unsupported file remains open with a specific reason. An automatic acknowledgement is optional and requires its own approved scope.

Boundary. This separates transport, matching and decision-making. Receiving an email does not establish the sender's authority or the accuracy of their claims. Changes to payment information or other consequential records need additional business rules.

06 / 14

How do you identify Outlook messages reliably?

Duplicate keys. Subject and sender are insufficient duplicate keys. Different messages can have the same subject, while the same message can be read repeatedly. Choose an identification strategy appropriate to the Microsoft interface in use.

Immutable IDs. Microsoft explains that ordinary Outlook resource IDs can change when items are moved, and documents immutable IDs and their limits. Review the immutable-ID guidance for the selected access method. Do not assume every node configuration automatically requests that behaviour.

Separate records. Store message identity, business case and confirmed target objects separately. One message with three attachments is one input containing several files. Recovery should recognise files already stored even if a later attachment failed. Restarting the process must not create all three again.

07 / 14

How should attachments and message content be handled?

Attachment rules. Not every attachment is a business document. Signature logos, embedded pictures and forwarded messages can expand the input. Define accepted types, size boundaries and treatment of nested content. A filename extension alone does not demonstrate the expected contents.

Message text. When extracting text, distinguish the latest message from quoted correspondence and signatures. Send an AI classifier only the information needed for its task. Specify whether attachments are part of classification and how empty or unreadable results are handled.

Error alerts. Avoid copying the whole message and its files into a broad team channel when an error occurs. A case reference and protected detail link are often sufficient for initial investigation. The team needs controlled access to details, not another unmanaged copy.

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

n8n automation →

08 / 14

How do reply drafts and approvals work together?

Draft as boundary. A draft is a useful boundary for initial automation. The workflow can assemble case facts and prepare a proposed reply. The reviewer sees the recipient, subject, content and attachments before deciding whether to send.

Approved version. Tie approval to the actual version reviewed. If the recipient or content changes afterwards, define whether approval must be repeated. General permission to “answer the customer” is too vague for a specific transaction.

Rejected and expired requests. Plan for rejected and expired requests. A reviewer failing to respond does not imply approval. An expired request can trigger a reminder or manual escalation; it should not cause the workflow to send an unapproved draft simply because time has passed.

09 / 14

Which mailbox cases should you test?

Acceptance tests for an n8n Outlook workflow should cover these mailbox cases and their expected behaviour:

Case Expected behaviour
Valid case reference Exactly one associated input
The same message is read again No additional business object
Three permitted attachments Three distinct file references on one case
Invalid or ambiguous reference Visible clarification without a wrong match
Missing mailbox permission Technical alert to the access owner
Rejected reply draft No message sent
Message moved to another folder Identity remains traceable under the chosen method

Lost response. Add a lost-response case. A file or task may already exist even when n8n did not receive confirmation. Check the destination before repeating creation. Verify acceptance in the mailbox and the CRM or document system, not solely in n8n.

Attachment edge cases. Include a message with no attachment and one with a repeated filename. These cases reveal whether the process confuses “nothing to store” with failure or relies on filenames as if they were unique identifiers.

10 / 14

How do you diagnose faults without indiscriminately widening permissions?

Layers of failure. Separate authentication, resource access, payload format and API constraints. For rejected authentication, check tenant, application configuration and renewal first. For successful authentication with failed mailbox access, inspect the actual resource and permission type.

Data logic. If only certain messages disappear, investigate filters, time windows, folders and pagination. If duplicate tasks appear, inspect identity rules and concurrent execution. More permissions or a higher plan does not automatically solve those data-logic problems.

Error evidence. Preserve sanitised error information with a timestamp and case reference. This lets the responsible administrator investigate without granting broad mailbox access to everybody. Record the cause and correction so a similar incident is easier to classify later.

11 / 14

Who owns operation and handover of the Outlook workflow?

Responsibilities. Specify who reviews mailbox processing, who renews Microsoft access and who changes the workflow. Monitor old or unexpectedly absent cases as well as explicit failures. Reading an empty folder can be technically successful while the wrong folder is configured.

Handover material. Retain the identity model, mailbox scope, field mappings, acceptance cases and recovery instructions. During staff changes, review both n8n access and Microsoft accounts and consents. The integration is properly handed over when a deputy can locate and safely resolve an open case.

Manual fallback. Define the manual fallback too. If the connection is unavailable, the team should know whether to resume ordinary mailbox handling and how those manually completed cases will be reconciled when automation returns.

12 / 14

How do you measure usefulness before widening scope?

Pilot measures. During the pilot, measure correctly matched messages, clarification cases and remaining review time. A large number of emails read is not evidence of value. The meaningful question is whether search and copying work falls without increasing incorrect matches.

Rejected cases. Examine rejected cases closely. If missing case numbers explain most exceptions, better intake instructions may help more than additional AI logic. If staff heavily rewrite every draft, improve the underlying information source before enabling automatic replies.

Controlled expansion. Then expand the verified scope with another category, another approved attachment type or one bounded reply case. Give each addition its own tests. This grows Outlook automation from observable results rather than increasingly broad account permissions.

Account cover. Document cover for a disabled account or a departing account holder. Recovery should not depend on an unavailable individual approving a login.

13 / 14

Take the worksheet

Worksheet

Download the editable CSV table

DecisionDefinitionTest
MailboxPersonal or sharedCorrect input boundary
AccessNecessary read/write scopeForbidden access rejected
MessageStable identifier and stateMove or redelivery
ReplyDraft or approved sendNo premature sending
AccountOwner and renewalRevocation or staff departure

Columns to fill in, in the file: Your value / observation, Owner, Next action.

Download the editable CSV table (CSV). Add your own values, owners and open actions. This worksheet contains no measured client results.

14 / 14

These pages cover the service overview and the related decisions for n8n with Outlook and Microsoft 365:

For a workflow review, start with the task, systems involved and typical exceptions. Discuss it with modernagents.

ShareEmail

Related reading

n8n automation

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

Robert Van Ysendyck · Founder & Managing Director