Outlook Microsoft (21Vianet) for Openclaw

A professional-grade integration for managing Microsoft Outlook mail and calendars specifically tailored for the 21Vianet (China) Microsoft 365 environment.

lurking9527
v1.0.0
Apr 6, 2026
1
698
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install outlook-microsoft

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 outlook-microsoft 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 Outlook Microsoft (21Vianet)?

This skill provides a robust interface for AI agents to interact with the 21Vianet version of Microsoft 365 through the Microsoft Graph API. It is specifically designed for users in the China region, utilizing the unique chinacloudapi.cn endpoints to ensure compliant and high-speed connectivity.

By leveraging this tool within the Openclaw Skills ecosystem, developers and power users can automate complex workflows involving email management and calendar scheduling. Whether you need to filter high-priority messages, manage meeting invites, or query free/busy status, this skill provides the necessary technical hooks to bridge AI intelligence with corporate communication tools.

Outlook Microsoft (21Vianet) Use Cases

  • Automating responses to common email inquiries in a corporate 21Vianet environment.
  • Synchronizing project deadlines with Microsoft Outlook calendar events automatically.
  • Building an AI personal assistant that can summarize daily unread emails and schedule follow-up meetings.
  • Researching availability and booking conference rooms using the free/busy query feature.
  • Archiving or organizing high volumes of email based on specific sender or keyword criteria.

How Outlook Microsoft (21Vianet) Works

  1. The AI agent initiates an authorization request via the OAuth 2.0 device code flow to obtain secure access tokens.
  2. Commands are issued through Python-based scripts that accept JSON parameters via standard input.
  3. The skill communicates with the Microsoft Graph API (21Vianet endpoints) to perform CRUD operations on mail and calendar entities.
  4. Responses are returned in a structured format, allowing the AI to process email content or calendar availability in real-time.
  5. Tokens are automatically managed and cached locally, with built-in refresh mechanisms to ensure continuous operation.

Outlook Microsoft (21Vianet) Setup

To use this Openclaw Skills integration, you must first register an application in the Azure 21Vianet portal and configure the required API permissions (Mail.ReadWrite, Mail.Send, Calendars.ReadWrite).

# Set required environment variables
export OUTLOOK_CLIENT_ID="your-azure-app-client-id"
export OUTLOOK_TENANT_ID="your-tenant-id"

# Initialize authorization
python3 skills/outlook-microsoft/scripts/outlook_auth.py authorize

# Verify connection
python3 skills/outlook-microsoft/scripts/outlook_auth.py test

Outlook Microsoft (21Vianet) Data Schema & Taxonomy

The skill maintains configuration and session data within a hidden directory in the user's home folder. All interactions use ISO 8601 timestamps (YYYY-MM-DDTHH:MM:SS) in CST (UTC+8).

File Purpose
~/.outlook-microsoft/config.json Stores Client ID, Secret, and Tenant ID settings.
~/.outlook-microsoft/credentials.json Securely stores OAuth tokens and refresh tokens.

Script Taxonomy

  • outlook_mail.py: Handles inbox reading, searching, sending, and message lifecycle management.
  • outlook_calendar.py: Manages event creation, deletion, and availability checks.
  • outlook_auth.py: Manages the lifecycle of the API authentication token.

Outlook Microsoft (21Vianet) Advanced Features

  • Support for 21Vianet sovereign cloud endpoints (login.chinacloudapi.cn).
  • Granular free/busy status checking for advanced meeting coordination.
  • Bulk email filtering by sender or keyword queries.
  • Attachment metadata retrieval and management.
  • Automatic token refresh and connection health monitoring.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*