← Home

Guide

How to Set Up an OpenClaw Zalo Bot

Connect OpenClaw to Zalo — Vietnam's most popular messaging app with 75M+ users. Use the official Zalo Bot API for business bots, or connect your personal Zalo account for private AI conversations. Deploy in 10 seconds with OpenClaw Launch.

What Is an OpenClaw Zalo Bot?

An OpenClaw Zalo bot is a full AI agent that lives inside your Zalo conversations. Powered by leading AI models like Claude, GPT-5.2, Gemini, or DeepSeek — and extended with 3,200+ skills from ClawHub — it understands natural language, holds multi-turn conversations, browses the web, writes code, and performs real-world actions.

OpenClaw supports two ways to connect to Zalo, each for different use cases:

  • Zalo Bot API — Create an official Marketplace bot for business or public use
  • Zalo Personal Account — Connect your own Zalo account for private AI conversations

Option A: Official Zalo Bot API

The Zalo Bot API integration uses Zalo's official Bot Creator platform to create a Marketplace bot — similar to how Telegram uses BotFather. This is the recommended approach for business use.

Step 1: Create a Zalo Bot

  1. Go to bot.zaloplatforms.com and sign in with your Zalo account.
  2. Create a new bot. Give it a name and description.
  3. Copy the bot token — a string in the format 123456789:abc-xyz.
Keep your token secret. Anyone with your bot token can control your bot. Never share it publicly or commit it to version control.

Step 2: Deploy with OpenClaw Launch

  1. Go to openclawlaunch.com and open the configurator.
  2. Select "Zalo" as your chat platform, then paste your bot token.
  3. Pick your AI modelClaude Sonnet 4.6 is recommended for the best balance of speed and intelligence.
  4. Click Deploy. Your Zalo bot launches in under 10 seconds.

Step 3: Pair via DM

  1. Open Zalo and send a DM to your bot.
  2. The bot replies with a pairing code.
  3. Go to your Dashboard page on OpenClaw Launch and enter the pairing code.
  4. Click Approve. The bot now responds to your messages.

Zalo Bot API Capabilities

FeatureStatus
Direct messages (1:1)Supported
Group chatsNot available (Marketplace bot limitation)
Text messagesSupported (2,000 char limit per message)
Images (inbound)Limited
Voice / video / filesNot supported
Reactions & stickersNot supported
StreamingBlocked (2,000 char limit)
Webhook modeSupported (HTTPS required)

Option B: Personal Zalo Account

The zalouser plugin connects your personal Zalo account to OpenClaw. Instead of creating a bot, you log in with your own Zalo via QR code — turning your personal account into an AI-powered assistant.

Important: This is an unofficial integration using the open-source zca-js library. It automates a personal account, which may violate Zalo's terms of service and could result in account suspension. Use at your own risk.

Step 1: Deploy with OpenClaw Launch

  1. Go to openclawlaunch.com and select Zalo (Personal) as your platform.
  2. Pick your AI model and click Deploy.

Step 2: Log In with QR Code

  1. After deployment, open your instance on the Dashboard page.
  2. Run the login command: openclaw channels login --channel zalouser
  3. A QR code appears. Scan it with the Zalo app on your phone.
  4. Once scanned, your Zalo session is saved and persists across restarts.

Step 3: Pair and Start Chatting

By default, dmPolicy is set to "pairing". When someone messages you on Zalo, OpenClaw sends a pairing code. Approve it from your dashboard to allow the conversation.

Zalo Personal Account Capabilities

FeatureStatus
Direct messages (1:1)Supported
Group chatsSupported (mention-gated by default)
Text messagesSupported (~2,000 char limit)
Images & mediaSupported
ReactionsSupported
Multi-accountSupported
StreamingBlocked

Which Option Should You Choose?

FeatureZalo Bot APIPersonal Account
SetupBot token from bot.zaloplatforms.comQR code login
Account typeOfficial Marketplace botYour personal Zalo
Group chatsNot availableSupported
RiskLow (official API)Possible account suspension
Best forBusiness / customer-facing botsPersonal AI assistant
Media supportLimitedFull

Troubleshooting

Bot Not Responding

  • Make sure both channels.zalo.enabled and plugins.entries.zalo.enabled are set to true. OpenClaw Launch handles this automatically.
  • Check that the credentials/ directory exists inside the OpenClaw config folder. Without it, pairing codes are silently dropped.
  • Verify your bot token is correct and hasn't been revoked.

Personal Account Login Fails

  • Try logging out and back in: openclaw channels logout --channel zalouser && openclaw channels login --channel zalouser
  • Check your session status: openclaw channels status --probe
  • Make sure you're scanning the QR code with the latest Zalo mobile app.

2,000 Character Limit

Zalo limits messages to ~2,000 characters. OpenClaw automatically chunks longer responses into multiple messages. Streaming is blocked for this reason.

Self-Hosting vs. OpenClaw Launch

You can self-host an OpenClaw Zalo bot with Docker, but it requires a VPS, manual config files, plugin installation, and ongoing maintenance. See our install guide for the full process. OpenClaw Launch skips all of that — configure visually and deploy in seconds. Plans start at $3/month with AI credits included.

What's Next?

Deploy Your Zalo Bot

Get an AI-powered Zalo chatbot running in 10 seconds — no servers, no code.

Deploy Now