agent-teams

Automate Microsoft Teams interactions with token extraction and multi-team management.

170|25|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/agent-messenger/agent-messenger --skill agent-teams-agent-messenger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-teams
Source: https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-teams
Command: npx skills add https://github.com/agent-messenger/agent-messenger --skill agent-teams-agent-messenger

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Interact with Microsoft Teams programmatically from AI agents and human operators, enabling collaborative workflows without manual switching or repetitive tasks.

Core Features & Use Cases

  • Token extraction: automatically locate and extract Teams session tokens from the desktop app or browser profiles for seamless authentication.
  • Multi-team support: manage and operate across multiple Teams contexts with per-team credentials and current-team switching.
  • CLI SDK integration: expose a TypeScript SDK and a CLI tool to list teams, channels, messages, upload files, and react to messages.
  • Automation & scripting: integrate with automation pipelines to query channel info, post messages, monitor activity, and generate snapshots in JSON.
  • Use Case: Build AI agents that greet new channels, post deployment notices, or fetch channel histories for context.

Quick Start

Authenticate with agent-teams auth extract, then list your channels and start sending messages with agent-teams message send.

Frequently Asked Questions about agent-teams

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Microsoft Teams messages from an AI agent?

Automate Microsoft Teams messages by using a CLI SDK integration that enables AI agents to list channels, post messages, and upload files through token-based authentication. It exposes TypeScript SDK commands to query channel info and send messages programmatically.

What's the best way to manage multiple Teams accounts programmatically?

Manage multiple Teams accounts programmatically using multi-team support features that maintain per-team credentials and allow current-team switching. This enables cross-team operations and channel message management across different Teams contexts without manual re-authentication.

How does token extraction work for Microsoft Teams automation?

Token extraction for Teams automation works by automatically locating and extracting session tokens from the Teams desktop app or browser profiles. This enables seamless authentication for CLI tools and SDK commands without requiring manual login flows or repeated credential entry.

Can I use a CLI tool to fetch Microsoft Teams channel history in JSON?

Yes, you can use the CLI SDK integration to fetch Microsoft Teams channel histories and generate JSON snapshots. The CLI tool supports querying channel info, monitoring activity, and producing JSON-based command outputs suitable for AI workflows and automation pipelines.

Does this Microsoft Teams automation approach work with browser profiles?

Yes, this Microsoft Teams automation approach works with browser profiles by extracting authentication tokens directly from them. It also supports token extraction from the desktop app, enabling seamless authentication across different Teams session sources for multi-team environments.

What are the limitations of token-based authentication for Teams automation?

Token-based authentication for Teams automation depends on valid session tokens extracted from the desktop app or browser profiles. Tokens may expire and require re-extraction, and the approach requires local access to authenticated Teams sessions to maintain multi-team credential management.