← 返回
AI智能 中文

Teams Delegate

Delegate Microsoft Teams inbox management to your AI agent for auto-replies, message summaries, priority filtering, and context-aware responses.
将Microsoft Teams收件箱管理委托给AI代理,实现自动回复、消息摘要、优先级筛选及情境感知响应。
takeovernat
AI智能 clawhub v1.0.4 1 版本 100000 Key: 无需
★ 0
Stars
📥 844
下载
💾 36
安装
1
版本
#latest

概述

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)

  1. 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
  1. Save the client ID:

```

python3 scripts/auth.py --client-id YOUR_CLIENT_ID

```

  1. 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

  1. Run summary to get all recent conversations in one pass
  2. 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
  3. For messages the agent handles: draft reply → run reply
  4. 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

When user says "handle my Teams" or "auto-reply while I'm out":

  1. Run summary every N minutes (use cron or heartbeat)
  2. Apply classification rules above
  3. Send approved replies automatically
  4. Log everything — what was sent, to whom, when
  5. 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

See 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.

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-03-29 23:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Live Sessions Dashboard

takeovernat
OpenClaw 会话实时仪表板(CLI + Web),支持颜色状态显示、Token/成本统计及可共享 HTML 面板。需本地 OpenClaw...
★ 0 📥 738
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,144
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,384