Skip to content

[Feature] 第三方消息/通知集成:任务完成推送到 Telegram / 微信 / Slack / Webhook,并可远程下发指令 / Messaging integrations (Telegram/WeChat/Slack/Webhook) for task completion and remote commands #100

Description

@Alonso-li

Problem / 问题

任务完成、失败或需要人工介入时,目前只有 PI-Desktop 应用内通知(task.completed / task.failed 通知表)。人不在电脑前(关窗、切后台、或压根没开着 app)就收不到任何提醒,也没法从外面给 agent 发消息、查进度。

参考实现(另一位 pi 生态的 Pi Agent Desktop 0.84.0 / herdr 生态):repo 描述明确写有 "messaging integrations",产物里含 notify.tsslack.js 通知实现、微信 ilink_bot_token + X-WECHAT-UIN 授权、Telegram bot token 等,支持把 agent 事件推到 IM 并远程收发消息。

Proposed change / 期望改动

增加第三方消息/通知集成(不只本地弹窗):

  1. 事件推送:任务完成 / 失败 / 等待审批 / 超时,推送到 Telegram、微信(企业微信或个人号 bot)、Slack、自定义 Webhook;
  2. 远程交互:通过消息渠道回复指令,如「继续」「停下来重试」「把结果发过来」,反向驱动 agent;
  3. Webhook 形式最通用,配置项建议:webhook url + 可选 secret,支持模板 body;
  4. 与本地系统通知([Feature] 会话任务出现交互询问、权限审批与计划确认时支持系统级桌面弹窗通知 #83)互补:本地弹窗照旧,IM 推送用于离开电脑的场合。

Alternatives / 其他方案

  • 仅保留本地系统弹窗(现状,人不在电脑就无效);
  • 只是打开网页端的通知中心(治标,仍需回到 app)。

Additional context / 补充信息

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: integrationsExternal service and notification integrations

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions