Microsoft 365 Integration for Openclaw

A comprehensive integration allowing AI agents to manage Outlook emails, Microsoft Calendar, OneDrive files, and To Do tasks.

cvsloane
v1.0.0
Jan 8, 2026
4
5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install ms365

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 ms365 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 Integration provides a robust bridge between AI agents and the Microsoft Graph API, enabling seamless management of enterprise and personal productivity suites. By leveraging Openclaw Skills, users can empower their AI agents to handle professional communications, schedule appointments, and organize files without leaving their development environment.

This skill focuses on converting natural language requests into actionable Graph API calls. Whether you are building an automated project manager or a personal coding assistant, using Openclaw Skills for Microsoft 365 ensures your agent has the context and capability to interact with the world's most popular office ecosystem efficiently.

Microsoft 365 Integration Use Cases

  • Automating project status updates via Outlook emails.
  • Checking daily availability and scheduling meetings directly through an AI agent.
  • Browsing and retrieving technical documentation stored within OneDrive folders.
  • Synchronizing development sprints with Microsoft To Do task lists.
  • Managing professional contacts and searching for team members during collaboration.

How Microsoft 365 Integration Works

  1. The AI agent detects specific triggers such as outlook, email, or onedrive within a user prompt.
  2. The skill checks for an active authentication token; if missing, it initiates an interactive device code login or uses pre-configured environment variables.
  3. The Openclaw Skills framework executes the internal ms365_cli.py script to interface with the Microsoft Graph API.
  4. Data such as email lists, calendar events, or file directories are retrieved in JSON format and processed by the agent.
  5. The agent performs the requested action, such as sending an email or creating a task, and provides a confirmation to the user.

Microsoft 365 Integration Setup

To get started with this skill, you can use the interactive device code flow for individual authentication:

# Login to your Microsoft account
python3 /root/clawd/skills/ms365/ms365_cli.py login

# Verify your authentication status
python3 /root/clawd/skills/ms365/ms365_cli.py status

For headless or automated deployments within Openclaw Skills, set the following environment variables in your environment configuration:

  • MS365_MCP_CLIENT_ID: Your Azure AD app client ID.
  • MS365_MCP_CLIENT_SECRET: Your Azure AD app secret.
  • MS365_MCP_TENANT_ID: Your Tenant ID (use "consumers" for personal accounts).

Microsoft 365 Integration Data Schema & Taxonomy

The skill organizes Microsoft 365 data into logical modules for high-speed retrieval and processing:

Service Data Handled CLI Module
Outlook Messages, Subjects, Bodies, Recipients mail
Calendar Events, Start/End Times, Timezones calendar
OneDrive File paths, Folder structures, Metadata files
To Do Task lists, Task titles, Due dates tasks
Contacts Contact names, Email addresses contacts

All session data and authentication tokens are securely cached to enable persistent interactions across different Openclaw Skills sessions.

Microsoft 365 Integration Advanced Features

  • Support for headless operation via Azure AD service principals for enterprise automation.
  • Comprehensive To Do task management including list retrieval and task creation with due dates.
  • Flexible calendar scheduling with full support for ISO 8601 datetime formats and custom timezones.
  • Interactive device code flow support for easy setup on remote servers or local machines.
  • Deep integration with OneDrive for navigating complex directory structures via CLI.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*