#Agent with Channel
1 messages Β· Page 1 of 1 (latest)
Yes, in your own Discord server you can have one OpenClaw agent connected to a chat channel.
Basic shape:
- Set up Discord for OpenClaw with
channels.discord.enabled: trueand a bot token. - Allowlist your server/channel under
channels.discord.guilds. - By default, each Discord guild channel gets its own isolated session:
agent:<agentId>:discord:channel:<channelId>. - If you want that channel permanently routed to a specific persistent ACP agent/session, use a top-level
bindings[]entry withtype: "acp"andmatch.channel: "discord"+ the channel id.
Docs:
https://docs.openclaw.ai/channels/discord
https://docs.openclaw.ai/tools/acp-agents
One important bit: we donβt recommend adding personal bots to this OpenClaw Discord server. This setup is meant for your own server/private workspace. If you run into setup weirdness, first check openclaw --version and include that in #help.
thats not what i meant for example connect one agent called CMO to whatsapp and one agent called Josh to telegram
Ah, yes. That is multi-agent routing.
For normal OpenClaw agents, define multiple agents.list[] entries, then add top-level bindings[] that route a channel/account to an agent:
{
agents: {
list: [
{ id: "CMO", default: true, workspace: "~/.openclaw/workspace-cmo" },
{ id: "Josh", workspace: "~/.openclaw/workspace-josh" },
],
},
bindings: [
{ agentId: "CMO", match: { channel: "whatsapp", accountId: "default" } },
{ agentId: "Josh", match: { channel: "telegram", accountId: "default" } },
],
}
If you have multiple WhatsApp/Telegram accounts, use their account ids instead of default. You can also route more narrowly with match.peer, for example one Telegram group/topic or one WhatsApp chat to a specific agent.
Docs:
https://docs.openclaw.ai/gateway/configuration-reference#multi-agent-routing
https://docs.openclaw.ai/concepts/multi-agent
If this is for persistent Codex/Claude-style ACP agents rather than normal OpenClaw chat agents, use type: "acp" bindings instead. That requires matching a concrete conversation (match.peer.id) rather than just the whole channel.
okay thanks
Glad that helped. If that answers it, please right-click the solution message β Apps β β Mark Solution so Answer Overflow can index it for the next person.