Install
openclaw skills install multi-agent-bot-feishu在 OpenClaw 中创建新的 Agent 并绑定到新的飞书机器人/群聊。用于:(1) 添加新 Agent 管理不同飞书群聊 (2) 实现多机器人路由 (3) 为不同业务线创建独立 Agent。需修改 ~/.openclaw/openclaw.json 配置文件。
openclaw skills install multi-agent-bot-feishu此技能用于在 OpenClaw 中快速创建新 Agent 并配置飞书机器人绑定,实现多机器人多 Agent 架构。
OpenClaw 支持多账户配置,通过 bindings 将不同的飞书机器人绑定到不同的 Agent,每个 Agent 有独立的工作空间和记忆。
收集以下内容:
| 内容 | 说明 | 示例 |
|---|---|---|
| Agent ID | 唯一标识符 | support, sales |
| Agent 名称 | 显示名称 | "客服助手" |
| 工作空间 | 独立目录路径 | ~/.openclaw/workspace-support |
| 飞书 App ID | 机器人凭证 | cli_xxx |
| 飞书 App Secret | 机器人密钥 | xxx |
编辑 ~/.openclaw/openclaw.json,添加三部分配置:
1. 在 agents.list 添加新 Agent:
{
"id": "新agent-id",
"name": "显示名称",
"workspace": "~/.openclaw/workspace-名称",
"model": { "primary": "ark/doubao" }
}
2. 在 channels.feishu.accounts 添加机器人:
{
"account-id": {
"appId": "飞书appId",
"appSecret": "飞书appSecret",
"botName": "机器人名称",
"dmPolicy": "allowlist",
"allowFrom": ["允许的用户ID"]
}
}
3. 在 bindings 添加路由:
{
"agentId": "新agent-id",
"match": {
"channel": "feishu",
"accountId": "account-id"
}
}
完整配置模板见 references/config-template.json。
mkdir ~/.openclaw/workspace-名称
openclaw gateway restart
当收到飞书消息时,按以下顺序匹配:
peer.kind + peer.id(特定用户/群)accountIdchannel + accountId: "*"default: true 的 Agent| 策略 | 说明 |
|---|---|
open | 允许所有人 |
allowlist | 仅允许列表内用户 |
denylist | 禁止列表内用户 |