刚刚试了一下微信官方出的 openclaw 插件,发现扫码之后默认绑定的是“main” agent ,要绑定到其他 agent 需要执行以下步骤: 1 ) 去 openclaw 安装目录找到 openclaw-weixin 目录,然后读取 accounts.json 中的 id 内容:
cat accounts.json
[
"xx-im-bot"
]
2 ) 修改 openclaw 配置文件,在 binding 中新增:
这里的 agentId 是你需要绑定到的对应 agent
{
"agentId": "weixin",
"match": {
"channel": "openclaw-weixin",
"accountId": "xx-im-bot"
}
}
3 ) (这一步不知道要不要)在 channels 中新增:
"openclaw-weixin": {
"enable": true,
"accounts": {
"xx-im-bot": {
}
}
}
4 ) 然后重启即可
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.