OpenClaw operations guide
OpenClaw Zalo bot setup from token to first reply
OpenClaw Zalo bots use long polling by default. Create a bot in Zalo Bot Creator, save its token in a private file on the Gateway, and leave the webhook URL unset. Send the bot a direct message, approve the pairing code on the Gateway, then send another message to check for a reply in the same chat.
Last updated · Published
By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.6 · Checked against docs, not run (Zalo channel reference)
1. Create a Zalo bot token
Sign in to Zalo Bot Creator, create a bot, and copy its token. Use a Bot Creator or Marketplace bot for this test. Keep the token private. Zalo is bundled with packaged OpenClaw builds and the channel is marked experimental in the Zalo reference.
2. Set up a private direct-message test
On the Gateway host, save the token in a private regular file readable by the Gateway service user. Run openclaw config file to locate the active config. Merge this block into it and replace the example path with the actual token file. Keep pairing on for DMs and disable group messages for this test.
{
channels: {
zalo: {
enabled: true,
accounts: {
default: {
tokenFile: "/absolute/path/to/zalo-token",
dmPolicy: "pairing",
groupPolicy: "disabled",
},
},
},
},
}
3. Probe the channel over long polling
Validate the config, then probe the channel with the Gateway running. Look for the Zalo account and a successful probe. Leave the webhook URL unset on this first bot. The default long-polling mode needs no public webhook URL.
openclaw config validate
openclaw channels status --probe
If you also connect a Nextcloud Talk room to this Gateway, register the Talk webhook for room replies. Talk needs an inbound route even when Zalo uses polling.
4. Approve your own Zalo account
Send the bot a direct message from your Zalo account. Match the pairing code you receive to a pending request, then approve that code on the Gateway host. Replace <CODE> with the code from your own chat.
openclaw pairing list zalo
openclaw pairing approve zalo <CODE>
If you are tracking access to this Gateway, enter the approved Zalo sender in the Gateway checklist in the OpenClaw Complete Setup Pack. Add the result of the reply test below. Keep the bot token private.
5. Send a fresh direct message
Ask the bot to reply with Zalo test received. Check for the reply in the same DM. If the bot remains silent, run the probe again and confirm you approved the sender from this chat.
To test a private reply in Apple Messages, set up OpenClaw iMessage on a Mac and pair a second Messages account.