Hermes Agent 接 Slack,官方文档推荐用 Slack bot + Socket Mode。你需要 Slack App 的 app token、bot token、必要 scopes,以及一个 home channel,用来接收定时任务、主动通知和 cron 结果。
基本步骤
- 在 Slack API 后台创建 app。
- 启用 Socket Mode,生成 app-level token。
- 添加 bot scopes,例如读取消息、发消息、频道历史等。
- 安装 app 到 workspace,并邀请 bot 进频道。
- 运行
hermes gateway setup配 Slack token 和 home channel。
为什么私聊能回频道不回
多数是 scopes、channel invite 或频道类型不对。私有频道还要确认 bot 已被邀请,并且具备读取私有频道消息的权限。
一句话:Slack 配置核心是 Socket Mode、两个 token、scopes 和 home channel。
官方开源地址:https://github.com/NousResearch/hermes-agent;官方文档入口:https://hermes-agent.nousresearch.com/。