Microsoft 365 Integration for Openclaw

A comprehensive integration allowing AI agents to manage Outlook emails, calendar events, contacts, and OneDrive files via the Microsoft Graph API.

robert-janssen
v1.0.2
Feb 20, 2026
0
2.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install microsoft365

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install microsoft365 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Microsoft 365 Integration?

The Microsoft 365 skill provides a robust bridge between your AI agent and the Microsoft ecosystem. By utilizing this within your Openclaw Skills library, you can programmatically interact with essential business tools like Outlook and OneDrive. This integration is designed for developers who need to automate communication, scheduling, and file management workflows securely.

Built on the Microsoft Graph API, this skill uses the Device Code Flow to ensure secure authentication without hardcoding credentials. It allows for seamless transitions between personal and professional accounts, making it an essential component for any productivity-focused Openclaw Skills setup.

Microsoft 365 Integration Use Cases

  • Automating the retrieval and summarization of daily Outlook emails.
  • Creating, fetching, and managing calendar events for automated scheduling.
  • Accessing and organizing files within OneDrive for data analysis or storage.
  • Streamlining contact management by fetching details directly from Microsoft 365.
  • Building multi-account workflows using the specialized account flagging system in Openclaw Skills.

How Microsoft 365 Integration Works

  1. The skill triggers a connection to the Microsoft Graph API using Node.js.
  2. Users authenticate via the Microsoft Device Code Flow, providing a secure, browser-based login experience.
  3. Access and refresh tokens are generated and stored in a centralized, secure directory to maintain persistent sessions.
  4. Commands are executed via the CLI using specific flags like --calendar or --account to target different services.
  5. The AI agent processes the returned data from Microsoft 365 to perform complex tasks or report information within the Openclaw Skills ecosystem.

Microsoft 365 Integration Setup

  1. Register a new application in the Azure Portal. Ensure it is configured for Public Client Flow with Device Code authentication enabled.
  2. Configure your environment by setting the required variables in your shell or within a file at ~/.openclaw/credentials/ms365.env:
export MICROSOFT_CLIENT_ID="your_client_id_here"
export MICROSOFT_TENANT_ID="your_tenant_id_here"
  1. Initialize the skill and authenticate by running the following command:
node index.js --account personal
  1. Follow the on-screen instructions to visit the Microsoft device login page and enter the provided code.

Microsoft 365 Integration Data Schema & Taxonomy

The skill manages data across specific centralized locations to ensure security and portability within Openclaw Skills:

Data Type Path Purpose
Authentication Tokens ~/.openclaw/credentials/ms365.tokens.<account>.json Stores OAuth2 tokens per account.
Environment Secrets ~/.openclaw/credentials/ms365.env Stores Client ID and Tenant ID.
Account Configuration config.<account>.json Local skill configuration for specific account profiles.

Microsoft 365 Integration Advanced Features

  • Multi-account support via the --account flag, allowing side-by-side management of different Microsoft 365 tenants.
  • Centralized credential management that keeps sensitive tokens and secrets outside of the main skill directory for enhanced security.
  • Full interactive mode for manual overrides and granular control over email and file operations.
  • Seamless integration with the broader Openclaw Skills framework for multi-agent collaboration.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*