技能标识:multi-account-config
Configure multiple messaging platform accounts for OpenClaw. Use when the user wants to add or configure additional accounts for Telegram, WhatsApp, Discord, or other supported channels. Triggers on requests like "configure multiple accounts", "add another telegram bot", "setup multi-account", "add work account", etc.
引导用户在OpenClaw中为消息平台配置多个账号。
询问用户想要配置哪个平台:
你想配置哪个平台的多账号?支持的选项:Telegram、WhatsApp、Discord、Slack、Signal 等。
为每个账号收集以下信息:
根据使用场景建议有意义的名称:
使用gateway config.get获取当前配置。
按照以下模式构建配置:
json
{
bindings: [
{
agentId: main,
match: {
channel: <平台>,
accountId: <账号ID>
}
}
],
channels: {
<平台>: {
enabled: true,
accounts: {
<账号ID>: {
name: <显示名称>,
enabled: true,
dmPolicy: allowlist,
allowFrom: [<用户ID>],
botToken: <令牌>,
groupPolicy: open,
streaming: block
}
}
}
}
}
使用gateway config.patch应用新配置。
确认配置已成功应用,并提供后续步骤。
每个账号需要一个绑定条目:
json
{
agentId: main,
match: {
channel: telegram,
accountId: work
}
}
| 属性 | 类型 | 描述 |
|---|---|---|
| name | string | 账号的显示名称 |
| enabled |
用户提供:
要添加的配置:
json
{
bindings: [
{
agentId: main,
match: {
channel: telegram,
accountId: work
}
}
],
channels: {
telegram: {
enabled: true,
accounts: {
work: {
name: Work,
enabled: true,
dmPolicy: allowlist,
allowFrom: [USER_ID],
botToken: 123456:ABC-DEF...,
groupPolicy: open,
streaming: block
}
}
}
}
}
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 multi-account-config-1776195865 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 multi-account-config-1776195865 技能
skillhub install multi-account-config-1776195865
文件大小: 2.31 KB | 发布时间: 2026-4-15 12:25