# OpenClaw Zalo bot setup from token to first reply

Canonical: https://cwyn.com/pages/openclaw-guide-first-zalo-bot.html
Last updated: 2026-11-27T03:29:31-05:00

OpenClaw operations guide

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 November 27, 2026 · Published November 19, 2026

By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.6 · Checked against docs, not run ([Zalo channel reference](https://raw.githubusercontent.com/openclaw/openclaw/v2026.11.6/docs/channels/zalo.md))

## 1. Create a Zalo bot token

Sign in to [Zalo Bot Creator](https://bot.zaloplatforms.com/), 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](https://docs.openclaw.ai/channels/zalo).

## 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](https://docs.openclaw.ai/cli/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](https://docs.openclaw.ai/channels/zalo#long-polling-vs-webhook) 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](https://cwyn.com/pages/openclaw-guide-first-nextcloud-talk-bot.html). 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](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html). 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](https://cwyn.com/pages/openclaw-guide-first-imessage-setup.html) and pair a second Messages account.

[Get your free CWYN Score](https://cwyn.com/pages/score.html)

## Related guides

- [Set up your first OpenClaw LINE bot](https://cwyn.com/pages/openclaw-guide-first-line-bot.html)
- [OpenClaw replies from the wrong agent: check channel bindings](https://cwyn.com/pages/openclaw-guide-wrong-agent-binding.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [CWYN Score](https://cwyn.com/pages/score.html)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)

### Record the first private Zalo reply

Use the Gateway checklist in the [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html), an optional paid kit, to document who reached the agent and how you verified the reply.
Kit details as of Nov 22, 2026

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.
