Install
openclaw skills install feishu-agent-meshBlueprint for wiring multiple OpenClaw agents (running on different servers) into the same Feishu group chats so they can hold autonomous multi-turn discussions, hand off tasks, log every cross-agent message, and pause for human approval at key checkpoints. Use when you need multiple Feishu bots (across different hosts) to coordinate inside the same chat without adding yet another visible bot account; 前台机器人账号。
openclaw skills install feishu-agent-mesh把多个 OpenClaw 机器人(不同实例/服务器)接入同一个飞书群:用户依旧 @ 本来的机器人,后台通过共享 Relay/队列同步上下文、日志和审批。
在启用本 Skill 之前,务必向真人用户明确索要以下数据(缺一不可):
| 信息 | 用途 |
|---|---|
每个飞书机器人的 app_id、app_secret、verification token、encrypt key | 配置事件订阅、验证消息来源 |
机器人在目标群聊中的 open_id / sessionKey | 让 Relay 正确 @ 到各机器人 |
| 可写入的飞书多维表格(日志存储)Base ID / Table ID / 字段名 | Phase 1 默认把日志落在该表格,满足“日志存储在飞书表格”的要求 |
机器人自身的调用入口(HTTP /tools/invoke URL 或 CLI 命令)及鉴权方式 | 让 Relay 能够执行具体能力 |
| 任务审批/白名单配置(哪些群、哪些节点需要人类确认) | 限定机器人只针对授权任务行动 |
详细字段说明和示例表格见 references/info-collection-template.md。
没有拿到这些信息前,不要启动协作流程;与用户确认后再投入使用。完成收集后,把数据写入 templates/accounts.example.json 并保存为实际配置文件。
chat_id 维度存储上下文、日志、审批规则,避免串线。为所有机器人统一收集 open_id / chat_id,只做一次配置即可:
scripts/feishu-callback-server.js(Node.js + Express)。
npm i express body-parser node-fetch cryptohttps://relay.example.com/feishu/callback)。im.message.receive_v1,回调地址都指向该服务。若暂时无法部署服务,可使用飞书“事件日志”导出 JSON,再按相同字段手工写入表格,但推荐尽早启用统一回调,这样每个用户只需授权一次。
chat_id、thread_id、message, actor, task_state。phase="ready_for_approval"),当检测到该字段时,机器人自动 @ 人类确认。适合验证能否「在同一群里互相接力」,但对延迟要求高的场景不适合长期使用。
bot_id + chat_id 写入共享上下文。routes 决定是通知另一个机器人,还是写入队列等待异步处理。/tools/invoke(或你们自定义 API)触发对方机器人;CLI 仅作兜底。logs 表,字段参考 references/logging-schema.md。approval_hooks。当任务状态达到某个 hook,Relay 汇总信息,并由相应机器人账号 @ 人类确认。task_id、chat_id、origin_bot、assignee_bot、payload。chat_whitelist/blacklist、每群的审批和限流规则。chat_id 是否在白名单。last_actor 是否正确,避免双写;必要时启用分布式锁或乐观锁。scripts/relay-config.example.json,作为机器人注册与路由的起点。references/deployment-checklist.md,含 MVP → 推荐架构 → 高级特性 3 级清单。references/workflow-templates.md,覆盖指派协作 / 无领导讨论。Follow the references to implement the actual Relay/队列;有了这套 skill,任何新的 OpenClaw 机器人都能按统一流程被纳入 Feishu 群聊协作网络。