简介
Teams Delegate
原始描述
Delegate Microsoft Teams inbox management to your AI agent for auto-replies, message summaries, priority filtering, and context-aware responses.
通过你的 Agent 添加
安装目录:teams-delegate/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: teams-delegate
description: Delegate your Microsoft Teams inbox to your AI agent. Use when the user wants to: auto-reply to Teams messages, have the agent monitor and respond to their boss or colleagues, summarize unread Teams conversations, draft context-aware replies, filter what needs human attention vs what the agent can handle, or manage Teams communication hands-free. Triggers on requests like "reply to my boss on Teams", "check my Teams messages", "handle my Teams inbox", "auto-reply on Teams", or "what did I miss on Teams".
Teams Delegate
Let the agent own your Teams inbox. Read messages, draft replies, send them — with awareness of who's messaging you and what actually needs your attention.
Setup (one time)
-
Register an Azure app at https://portal.azure.com → Azure Active Directory → App Registrations → New
- Platform: Mobile/Desktop (enables device code flow)
- In Authentication → scroll to "Advanced settings" → set "Allow public client flows" to Yes (required for device code)
- NOTE: Use the old Azure portal experience — click "switch to old experience" in the yellow banner if you see it
- Add API permissions: Chat.Read, Chat.ReadWrite, ChannelMessage.Read.All, ChannelMessage.Send, Presence.Read.All, User.Read
- Grant admin consent if on a corporate tenant
-
Save the client ID:
python3 scripts/auth.py --client-id YOUR_CLIENT_ID
-
Authenticate:
python3 scripts/auth.py
Follow the device code prompt. Token saved to ~/.teams-delegate/token.json and auto-refreshes.
Core Commands
python3 scripts/teams.py inbox # List recent chats with previews
python3 scripts/teams.py read <chatId> # Read full conversation
python3 scripts/teams.py reply <chatId> "message" # Send reply
python3 scripts/teams.py summary # Dump all pending chats for agent review
Agent Workflow
Checking the inbox
- Run
summary to get all recent conversations in one pass
- Classify each message:
- Agent handles: acknowledgements, scheduling confirmations, "got it" responses, simple status updates
- Needs human: decisions, sensitive topics, anything the user explicitly wants to see, urgent/high importance from boss
- For messages the agent handles: draft reply → run
reply
- For messages needing human: summarize and present to user
Drafting replies
- Match the tone of the conversation (casual 1:1 vs formal channel)
- Keep it brief — Teams is chat, not email
- If replying on behalf of someone, don't pretend to be them; write as their assistant if context requires
- Check
importance field — urgent messages from managers need immediate escalation to user
Auto-reply mode
Register an Azure app at https://portal.azure.com → Azure Active Directory → App Registrations → New
- Platform: Mobile/Desktop (enables device code flow)
- In Authentication → scroll to "Advanced settings" → set "Allow public client flows" to Yes (required for device code)
- NOTE: Use the old Azure portal experience — click "switch to old experience" in the yellow banner if you see it
- Add API permissions: Chat.Read, Chat.ReadWrite, ChannelMessage.Read.All, ChannelMessage.Send, Presence.Read.All, User.Read
- Grant admin consent if on a corporate tenant
Save the client ID:
python3 scripts/auth.py --client-id YOUR_CLIENT_ID
Authenticate:
python3 scripts/auth.py
Follow the device code prompt. Token saved to ~/.teams-delegate/token.json and auto-refreshes.
python3 scripts/teams.py inbox # List recent chats with previews
python3 scripts/teams.py read <chatId> # Read full conversation
python3 scripts/teams.py reply <chatId> "message" # Send reply
python3 scripts/teams.py summary # Dump all pending chats for agent review
Agent Workflow
Checking the inbox
- Run
summaryto get all recent conversations in one pass - Classify each message:
- Agent handles: acknowledgements, scheduling confirmations, "got it" responses, simple status updates
- Needs human: decisions, sensitive topics, anything the user explicitly wants to see, urgent/high importance from boss
- For messages the agent handles: draft reply → run
reply - For messages needing human: summarize and present to user
Drafting replies
importance field — urgent messages from managers need immediate escalation to userWhen user says "handle my Teams" or "auto-reply while I'm out":
- Run
summaryevery N minutes (use cron or heartbeat) - Apply classification rules above
- Send approved replies automatically
- Log everything — what was sent, to whom, when
- Alert user for anything flagged as needing human attention
Priority Rules (defaults — user can override)
- Messages marked
urgent → always escalate to user
- Messages from designated VIPs (boss, key clients) → draft only, wait for approval
- Group chat messages → lower priority, reply only if directly @mentioned
- Channel messages → summarize only unless @mentioned
Graph API Reference
urgent → always escalate to userSee references/graph-api.md for full endpoint docs, auth scopes, and rate limit details.
Author
Built by Nate Teshome — @takeovernat
Website: stellarsitesai.com GitHub: github.com/takeovernat
Found a bug or want to contribute? Open an issue or PR on GitHub.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。