跳到正文
cccskills
免费在 GitHub 公开

microsoft-teams-automation

Automate Microsoft Teams messages, chats, meetings, and channel management through Rube MCP. Ask the agent to send updates, create online meetings, find past messages, create channels, or add members to a team.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Automate Microsoft Teams tasks via Rube MCP (Composio): send messages, manage channels, create meetings, handle chats, and search messages. Always search tools first for current schemas.

集成工具Microsoft Teams
查看安装方法

适用场景

  • Post updates to a team channel
  • Create a group chat and send a message
  • Create an online meeting with specified times
  • Search past chat and channel messages

包含的文件(1)

  • SKILL.md8.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Microsoft Teams Automation via Rube MCP

Automate Microsoft Teams operations through Composio's Microsoft Teams toolkit via Rube MCP.

Toolkit docs: composio.dev/toolkits/microsoft_teams

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active Microsoft Teams connection via RUBE_MANAGE_CONNECTIONS with toolkit microsoft_teams
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit microsoft_teams
  3. If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Send Channel Messages

When to use: User wants to post a message to a Teams channel

Tool sequence:

  1. MICROSOFT_TEAMS_TEAMS_LIST - List teams to find target team [Prerequisite]
  2. MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS - List channels in the team [Prerequisite]
  3. MICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGE - Post the message [Required]

Key parameters:

  • team_id: UUID of the team (from TEAMS_LIST)
  • channel_id: Channel ID (from LIST_CHANNELS, format: '19:...@thread.tacv2')
  • content: Message text or HTML
  • content_type: 'text' or 'html'

Pitfalls:

  • team_id must be a valid UUID format
  • channel_id must be in thread format (e.g., '19:abc@thread.tacv2')
  • TEAMS_LIST may paginate (~100 items/page); follow @odata.nextLink to find all teams
  • LIST_CHANNELS can return 403 if user lacks access to the team
  • Messages over ~28KB can trigger 400/413 errors; split long content
  • Throttling may return 429; use exponential backoff (1s/2s/4s)

2. Send Chat Messages

When to use: User wants to send a direct or group chat message

Tool sequence:

  1. MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS - List existing chats [Optional]
  2. MICROSOFT_TEAMS_LIST_USERS - Find users for new chats [Optional]
  3. MICROSOFT_TEAMS_TEAMS_CREATE_CHAT - Create a new chat [Optional]
  4. MICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGE - Send the message [Required]

Key parameters:

  • chat_id: Chat ID (from GET_ALL_CHATS or CREATE_CHAT)
  • content: Message content
  • content_type: 'text' or 'html'
  • chatType: 'oneOnOne' or 'group' (for CREATE_CHAT)
  • members: Array of member objects (for CREATE_CHAT)

Pitfalls:

  • CREATE_CHAT requires the authenticated user as one of the members
  • oneOnOne chats return existing chat if one already exists between the two users
  • group chats require at least one member with 'owner' role
  • member user_odata_bind must use full Microsoft Graph URL format
  • Chat filter support is very limited; filter client-side when needed

3. Create Online Meetings

When to use: User wants to schedule a Microsoft Teams meeting

Tool sequence:

  1. MICROSOFT_TEAMS_LIST_USERS - Find participant user IDs [Optional]
  2. MICROSOFT_TEAMS_CREATE_MEETING - Create the meeting [Required]

Key parameters:

  • subject: Meeting title
  • start_date_time: ISO 8601 start time (e.g., '2024-08-15T10:00:00Z')
  • end_date_time: ISO 8601 end time (must be after start)
  • participants: Array of user objects with user_id and role

Pitfalls:

  • end_date_time must be strictly after start_date_time
  • Participants require valid Microsoft user_id (GUID) values, not emails
  • This creates a standalone meeting not linked to a calendar event
  • For calendar-linked meetings, use OUTLOOK_CALENDAR_CREATE_EVENT with is_online_meeting=true

4. Manage Teams and Channels

When to use: User wants to list, create, or manage teams and channels

Tool sequence:

  1. MICROSOFT_TEAMS_TEAMS_LIST - List all accessible teams [Required]
  2. MICROSOFT_TEAMS_GET_TEAM - Get details for a specific team [Optional]
  3. MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS - List channels in a team [Optional]
  4. MICROSOFT_TEAMS_GET_CHANNEL - Get channel details [Optional]
  5. MICROSOFT_TEAMS_TEAMS_CREATE_CHANNEL - Create a new channel [Optional]
  6. MICROSOFT_TEAMS_LIST_TEAM_MEMBERS - List team members [Optional]
  7. MICROSOFT_TEAMS_ADD_MEMBER_TO_TEAM - Add a member to the team [Optional]

Key parameters:

  • team_id: Team UUID
  • channel_id: Channel ID in thread format
  • filter: OData filter string (e.g., "startsWith(displayName,'Project')")
  • select: Comma-separated properties to return

Pitfalls:

  • TEAMS_LIST pagination: follow @odata.nextLink in large tenants
  • Private/shared channels may be omitted unless permissions align
  • GET_CHANNEL returns 404 if team_id or channel_id is wrong
  • Always source IDs from list operations; do not guess ID formats

5. Search Messages

When to use: User wants to find messages across Teams chats and channels

Tool sequence:

  1. MICROSOFT_TEAMS_SEARCH_MESSAGES - Search with KQL syntax [Required]

Key parameters:

  • query: KQL search query (supports from:, sent:, attachments, boolean logic)

Pitfalls:

  • Newly posted messages may take 30-60 seconds to appear in search
  • Search is eventually consistent; do not rely on it for immediate delivery confirmation
  • Use message listing tools for real-time message verification

Common Patterns

Team and Channel ID Resolution

1. Call MICROSOFT_TEAMS_TEAMS_LIST
2. Find team by displayName
3. Extract team id (UUID format)
4. Call MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS with team_id
5. Find channel by displayName
6. Extract channel id (19:...@thread.tacv2 format)

User Resolution

1. Call MICROSOFT_TEAMS_LIST_USERS
2. Filter by displayName or email
3. Extract user id (UUID format)
4. Use for meeting participants, chat members, or team operations

Pagination

  • Teams/Users: Follow @odata.nextLink URL for next page
  • Chats: Auto-paginates up to limit; use top for page size (max 50)
  • Use top parameter to control page size
  • Continue until @odata.nextLink is absent

Known Pitfalls

Authentication and Permissions:

  • Different operations require different Microsoft Graph permissions
  • 403 errors indicate insufficient permissions or team access
  • Some operations require admin consent in the Azure AD tenant

ID Formats:

  • Team IDs: UUID format (e.g., '87b0560f-fc0d-4442-add8-b380ca926707')
  • Channel IDs: Thread format (e.g., '19:abc123@thread.tacv2')
  • Chat IDs: Various formats (e.g., '19:meeting_xxx@thread.v2')
  • User IDs: UUID format
  • Never guess IDs; always resolve from list operations

Rate Limits:

  • Microsoft Graph enforces throttling
  • 429 responses include Retry-After header
  • Keep requests to a few per second
  • Batch operations help reduce total request count

Message Formatting:

  • HTML content_type supports rich formatting
  • Adaptive cards require additional handling
  • Message size limit is approximately 28KB
  • Split long content into multiple messages

Quick Reference

TaskTool SlugKey Params
List teamsMICROSOFT_TEAMS_TEAMS_LISTfilter, select, top
Get team detailsMICROSOFT_TEAMS_GET_TEAMteam_id
List channelsMICROSOFT_TEAMS_TEAMS_LIST_CHANNELSteam_id, filter
Get channelMICROSOFT_TEAMS_GET_CHANNELteam_id, channel_id
Create channelMICROSOFT_TEAMS_TEAMS_CREATE_CHANNELteam_id, displayName
Post to channelMICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGEteam_id, channel_id, content
List chatsMICROSOFT_TEAMS_CHATS_GET_ALL_CHATSuser_id, limit
Create chatMICROSOFT_TEAMS_TEAMS_CREATE_CHATchatType, members, topic
Post to chatMICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGEchat_id, content
Create meetingMICROSOFT_TEAMS_CREATE_MEETINGsubject, start_date_time, end_date_time
List usersMICROSOFT_TEAMS_LIST_USERSfilter, select, top
List team membersMICROSOFT_TEAMS_LIST_TEAM_MEMBERSteam_id
Add team memberMICROSOFT_TEAMS_ADD_MEMBER_TO_TEAMteam_id, user_id
Search messagesMICROSOFT_TEAMS_SEARCH_MESSAGESquery
Get chat messageMICROSOFT_TEAMS_GET_CHAT_MESSAGEchat_id, message_id
List joined teamsMICROSOFT_TEAMS_LIST_USER_JOINED_TEAMS(none)

Powered by Composio

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Handle ActiveCampaign contact and marketing tasks through Rube MCP, a connection for agent tools. Find or create contacts, manage tags and subscriptions, enroll contacts in existing automated workflows, and create follow-up tasks.

中文简介正在准备中。当前显示英语简介。

  • Finding or registering contacts
  • Adding or removing contact tags
  • Subscribing contacts to lists or unsubscribing them
davepoon/buildwithclaude36692026年10月20日 更新

Research competitors’ live Meta and Google ads to identify opening hooks, offers, calls to action, and landing pages. Receive a sourced creative brief and up to three test ideas adapted to your product.

中文简介正在准备中。当前显示英语简介。

  • Find angles for new ad copy
  • Plan creative tests using competitor ads
  • Choose a landing page message
davepoon/buildwithclaude36692026年10月20日 更新

Add website or app tracking, then use command-line tools to review traffic, signups, drop-off, and returning users across projects. Run A/B tests, which compare alternative headlines or buttons, and inspect results to guide changes.

中文简介正在准备中。当前显示英语简介。

  • Adding page-view and key-action tracking
  • Reviewing traffic and referral sources across projects
  • Finding where visitors drop out before signup or purchase
davepoon/buildwithclaude36692026年10月20日 更新

Establish rules for when an AI agent should recall past context and save lasting decisions, corrections, preferences, and failures. Works with Markdown files or memory services, preserving decision history and surfacing conflicting records.

中文简介正在准备中。当前显示英语简介。

  • Carry project conventions into the next session
  • Save user corrections and lasting preferences
  • Record failed approaches and their causes
davepoon/buildwithclaude36692026年10月20日 更新

Audit local AI coding-agent sessions with agenttrace to identify spending, token use, tool failures, and operational problems. Produce readable or structured reports and define pass-or-fail thresholds for automated continuous integration checks.

中文简介正在准备中。当前显示英语简介。

  • Investigating session costs and token waste
  • Finding repeated tool failures and retries
  • Exporting session reports as Markdown or JSON
davepoon/buildwithclaude36692026年10月20日 更新

Audit saved agent sessions for access to private files and evidence that secret values entered an agent's context. Get findings without displaying secrets, identify keys needing rotation, and inspect Claude Code or Codex sessions in a local report.

中文简介正在准备中。当前显示英语简介。

  • Check whether an agent accessed .env files
  • Identify keys that may need rotation
  • Audit private-file access by subagents
davepoon/buildwithclaude36692026年10月20日 更新

查看 davepoon 的全部技能

报告此技能的问题