15-day Pro trial · no credit cardStart free →

Channels

ZaloNew

Connect a Zalo Official Account to STINGIM.

Connect a Zalo Official Account (OA) so that messages from Zalo users arrive in your inbox, and your agents, bots and flows can reply in Zalo. The connection uses your own Zalo app and the Zalo OA Open API v3.

What you need

  • A verified Zalo Official Account where you are an admin.
  • A Zalo app at developers.zalo.me linked to the OA, with the Official Account API product enabled.
  • The console permission Integrations in your STINGIM project.

1. Create and link the Zalo app

  1. At developers.zalo.me create an app (or open an existing one). Copy the App ID and the App secret key (Settings).
  2. Add the Official Account product and link your OA to the app.
  3. Request the OA permissions the app needs: send consultation messages, read follower information, and receive message and follower events. Wait until Zalo approves them.
  4. Open Webhook in the app and copy the OA Secret Key shown there (this is different from the App secret key).

2. Save the app in STINGIM

  1. In the console go to Settings → Channels → Zalo OA.
  2. Enter the App ID, App secret key and OA Secret Key and click Save and continue. Secrets are stored encrypted and never shown again.
  3. The channel details now show three addresses, all under one prefix: - URL prefix (domain verification): https://api.stingim.com/v1/channel/zalo/<channel-id>/ - Webhook URL: …/<channel-id>/webhook - OAuth callback URL: …/<channel-id>/oauth-callback

3. Verify the URL prefix in Zalo

Zalo only accepts webhook and callback URLs on a verified domain or URL prefix.

  1. In the Zalo app open Xác thực domain (Domain verification) → add a URL prefix → paste the URL prefix from STINGIM.
  2. Choose the meta tag method and copy only the value of content="…".
  3. In STINGIM, edit the channel, paste that value into Domain verification code and save.
  4. Back in Zalo click Verify.

4. Register the URLs in the Zalo app

  1. Official Account → Callback URL: paste the OAuth callback URL.
  2. Webhook: set the URL to the Webhook URL, then turn on these events: user_send_text, user_send_image, user_send_file, user_send_sticker, user_send_gif, user_send_link, user_send_location, user_send_audio, user_send_video, follow, unfollow, and optionally user_received_message and user_seen_message (delivery and read receipts).
  3. Keep Lọc cú pháp (syntax filter) off, otherwise only messages starting with # are delivered.

5. Authorize the OA

  1. In STINGIM click Authorize on the channel. You are sent to Zalo; choose the OA and allow the permissions.
  2. Zalo returns you to the console and the channel shows Connected.

Access tokens last about 25 hours and are refreshed automatically. If refreshing fails (for example the app secret changed, the OA revoked the app, or the 3-month authorization expired) the channel shows Re-authorization required; click Re-authorize. Messages cannot be sent until then.

How messages are handled

From the customerIn the inbox
Text, linkText
Image, GIF, sticker, audio, video, fileDownloaded from Zalo and stored with the conversation
LocationText with a map link
FollowA contact is created with the Zalo display name
UnfollowRecorded; replies may be rejected by Zalo

Replies are sent as consultation messages (tin Tư vấn):

  • Zalo allows them only within 7 days of the customer's last interaction (free within 48 hours; between 48 hours and 7 days they use your OA package quota). Outside that window the reply is not sent and the failure is recorded on the message.
  • JPG / PNG images are sent as images. PDF, DOC, DOCX and CSV files up to 5 MB are sent as attachments; other files are sent as a download link valid for 24 hours.
  • Flow questions with buttons are sent as numbered options in the text (consultation messages have no quick-reply buttons).

Troubleshooting

  • Webhook events do not arrive: check that the events are enabled, the syntax filter is off and the channel is enabled in STINGIM. Zalo disables the webhook after repeated connection failures; re-enable it in the app.
  • Requests rejected with 401: the OA Secret Key saved in STINGIM does not match the app's Webhook page.
  • "Re-authorization required": authorize the OA again from the channel details.

Still stuck? Contact support.

Found a mistake? Email [email protected]