Teams connector

From andreaswasita/copilot-cowork-dojo · View interactive version

Teams connector is an AI agent skill from the GitHub repository andreaswasita/copilot-cowork-dojo. Drive Microsoft Teams from Copilot via Graph / Teams Copilot connectors — post messages, summarize channels, retrieve meeting context, manage chats. Use whenever the source or destination of work is a Teams channel, chat, or meeting. Triggers: "post to Teams", "summarize this channel", "pull meeting

How to use this skill

Skill file

Teams Connector

Teams is where the conversation lives. Treat it as a first-class data source — and a first-class delivery surface.


Quick Reference

| Task | Approach |

|---|---|

| Read channel context | Resolve teamId+channelId -> list recent messages -> cite |

| Read meeting transcript | Wait until processing complete -> pull by meetingId |

| Post a recap to a channel | Compose in Word/Loop draft -> verify -> post via connector |

| @mention real people | Resolve display name -> AAD object ID, then mention |

| Cross-team digest | Read each channel separately; cite per channel; never merge silently |

| Find duplicates / prior decisions | Search by keyword + from: + date range before posting |

Prerequisites — this skill is a playbook, not the connector

A SKILL.md cannot call Teams on its own. It assumes the platform already exposes Microsoft Graph Teams as tools. The skill teaches Cowork how to use Teams well; the connector itself is separate infrastructure.

Before this skill works end-to-end you need:

  1. A Microsoft Graph / Teams connector — typically Copilot Cowork's built-in M365 connectivity, or an MCP server wrapping /teams/{id}/channels/{id}/messages, /chats, and /onlineMeetings endpoints.
  2. Credentials — your Entra ID session with ChannelMessage.Send / Chat.ReadWrite / OnlineMeetings.Read scopes consented for the connector.
  3. Membership — you must be a member of the team / chat you're posting to or reading from.
  4. Meeting transcripts — require the meeting organizer to have enabled transcription/recording, and your role must allow access.
  5. Tool discovery — confirm Teams tools are visible (ask Cowork: "what Teams tools do you have?") before using this skill.

In Cowork on a properly licensed M365 tenant, this is usually present out of the box. On other surfaces, you'll need an MCP connector explicitly installed.

When to Use

How to Use

  1. Identify scope — teamId, channelId, chatId, or meetingId. Never operate by display name; names collide.
  2. Read before write: list recent messages, get the meeting transcript, list participants.
  3. Compose the artifact in a draft surface (Word, Loop) — never directly in the channel post.
  4. Post via the connector with explicit @ mentions resolved against the participant list.
  5. Verify the post landed in the right channel, with the right mentions, and no truncation.

Parameter Guidance

| Parameter | Why it matters |

|---|---|

| teamId / channelId | Use IDs, not names. Two channels can share a name across teams. |

| chatId | Group chats and 1:1s have different permission shapes. |

| mentions | Must be resolved to AAD object IDs to actually notify. |

| subject | Optional but improves channel scannability. |

| importance | urgent triggers persistent notifications — use sparingly. |

Examples

| Don't: Anti-pattern | Do: Right move |

|---|---|

| Post "@John" by display name and assume he's notified | Resolve John to his AAD object ID, then @mention so he is actually pinged |

| Pull the meeting transcript the moment the call ends | Wait until processing completes, then fetch by meetingId (early reads return empty) |

| Cross-post the same update to five channels | Post once to the canonical channel; share a Loop component for the rest |

| Compose the recap directly in the channel box | Draft in Word/Loop, verify, then post via the connector |

Critical Rules

Common Pitfalls

Anti-Patterns

Verify Before Posting

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.