Skip to main content
The Office 365 Toolkit lets your workflows interact with Outlook email and calendar through Microsoft Graph — searching and reading messages, handling attachments, sending or drafting mail, and searching or creating calendar events. For related agent chat toolkits, see Microsoft Outlook, Microsoft Teams, Microsoft Excel, and Microsoft Word.

Prerequisites

  • A workflow you can edit
  • A connected Office 365 account (personal or team) available to the node
  • Azure AD app permissions granted for Mail and Calendar (admin consent may be required)
  • Message IDs, attachment IDs, or datetime values from earlier nodes — or @ variables that supply them

Authentication

All Office 365 tools require an Office 365 account connection. Each tool includes an Office 365 Account selector: If no account is connected, click Connect Office 365 Account to authenticate with Microsoft. Required Microsoft Graph scopes include Mail.ReadWrite, Mail.Send, Calendars.ReadWrite, User.Read, and offline_access.

Tools

Search Emails

Search Outlook emails using Microsoft Graph. Returns structured message metadata and excerpts. Supports KQL-style queries.

Read Email

Read a single Outlook message by Microsoft Graph message ID (from Search Emails). Returns the full body, headers, and optional attachment metadata.

Read Attachments

List all attachments on a message (id, filename, MIME type, size, inline flag). Does not return file bytes.

Download Attachments

Download file attachments as base64 (contentBytes). Use attachment IDs from Read Attachments; omit IDs to fetch all non-inline files (capped at 25).

Send Message

Send an email through Outlook. Use only when the workflow intentionally sends mail.

Create Draft Message

Create an Outlook draft email for later review or approval.

Search Events

Search calendar events within a timeframe. Useful for agenda lookups and meeting summaries.

Send Event

Schedule a calendar event in Outlook with attendees and a description.

Tips

  • Prefer @ variables for message IDs and attachment IDs from earlier nodes (search → read → download)
  • Keep Include Attachment Data off unless a later node needs the binary content
  • Use Create Draft Message when a human should review mail before it is sent
  • Use ISO 8601 datetimes (with timezone when possible) for calendar tools
  • For mail and calendar in agent chat, use Microsoft Outlook instead of this workflow toolkit

Troubleshooting