乐于分享
好东西不私藏

openclaw5.6版本内容创作者多agent飞书详细配置

openclaw5.6版本内容创作者多agent飞书详细配置

多agent需要根据自己的工作或业务需求来拆解是否合适再进行配置
一.结构拆分
┌─────────────────────────────────────────┐
│ 主编 Agent (main) │
│ 统筹调度、任务分配、质量把关、最终输出 │
└──────────┬──────────────┬───────────────┘
│ │ │
┌──────▼──────┐ ┌────▼─────┐ ┌──────▼──────┐
│ 情报员 │ │ 编导 │ │ 数据分析师 │
│ (researcher) │ │ (director)│ │ (analyst) │
│ 搜爆款/找素材 │ │ 写文案脚本 │ │ 数据分析 │
└─────────────┘ └─────────┘ └─────────────┘
二.详细配置
1.创建agent
# 1. 创建情报员 Agent – 负责搜索爆款内容
openclaw agents add researcher \
–workspace ~/.openclaw/workspace-researcher \
–model (你的模型)

# 2. 创建编导 Agent – 负责内容创作
openclaw agents add director \
–workspace ~/.openclaw/workspace-director \
–model gemma4

# 3. 创建数据分析师 Agent – 负责数据分析
openclaw agents add analyst \
–workspace ~/.openclaw/workspace-analyst \
–model

2.配置飞书
{
“channels”: {
“feishu”: {
“enabled”: true,
“accounts”: {
“main”: {
“appId”: “cli_xxx_main”,
“appSecret”: “xxx_main”,
“enabled”: true
},
“researcher”: {
“appId”: “cli_xxx_researcher”,
“appSecret”: “xxx_researcher”,
“enabled”: true
},
“director”: {
“appId”: “cli_xxx_director”,
“appSecret”: “xxx_director”,
“enabled”: true
},
“analyst”: {
“appId”: “cli_xxx_analyst”,
“appSecret”: “xxx_analyst”,
“enabled”: true
}
}
}
}
}

3.绑定路由
{
“bindings”: [
{
“agentId”: “main”,
“match”: {
“channel”: “feishu”,
“accountId”: “main”
}
},
{
“agentId”: “researcher”,
“match”: {
“channel”: “feishu”,
“accountId”: “researcher”
}
},
{
“agentId”: “director”,
“match”: {
“channel”: “feishu”,
“accountId”: “director”
}
},
{
“agentId”: “analyst”,
“match”: {
“channel”: “feishu”,
“accountId”: “analyst”
}
}
]
}

4.多agent之间的互相通信
{
“tools”: {
“agentToAgent”: {
“enabled”: true,
“allow”: [“main”, “researcher”, “director”, “analyst”]
},
“sessions”: {
“visibility”: “all”
}
}
}

4.每一个agent的soul.md的配置
这里根据内容需求可以做精细化的设计 比如你的行业从前期搜集 灵感到编导创作以及数据分析总结 。并定义如何使用tool

三.快速检查配置情况
# 1. 检查所有 Agent 状态
openclaw agents list –bindings

# 2. 验证飞书渠道
openclaw channels status –probe

# 3. 测试 Agent 间通信
# 在 main 的飞书窗口发送:@researcher 搜索今天抖音热门AI话题

# 4. 重启网关使配置生效
openclaw gateway restart