Zalo Bot icon

Zalo Bot

Interact with Zalo Bot Platform (bot.zapps.me)

Overview

This node integrates with the Zalo Bot Platform, enabling users to interact programmatically with Zalo messaging services. It supports various operations such as sending messages, photos, stickers, managing webhooks, and retrieving bot information.

The Send Sticker operation specifically allows sending a sticker to a specified chat or user on Zalo by providing the chat ID and a sticker code from the official Zalo sticker repository.

Practical use cases include:

  • Automating customer support responses with expressive stickers.
  • Enhancing chatbot interactions by sending visual content.
  • Broadcasting promotional or informational stickers to users or groups.

Properties

Name Meaning
Chat ID The recipient's user ID or chat conversation ID where the sticker will be sent (chat_id).
Sticker The sticker code obtained from https://stickers.zaloapp.com/ representing the sticker to send.

Output

The node outputs JSON data containing the response from the Zalo Bot API for the sendSticker request. The structure includes at least an ok boolean indicating success, and may contain additional fields such as description for error messages or other metadata returned by the API.

Example output JSON snippet:

{
  "ok": true,
  "result": {
    // details about the sent sticker message
  }
}

No binary data is produced by this operation.

Dependencies

  • Requires an API authentication token (bot token) configured in the node credentials to authenticate requests to the Zalo Bot Platform.
  • Uses the Zalo Bot API endpoint, defaulting to https://bot-api.zapps.me.
  • The node depends on n8n's HTTP request helper to communicate with the Zalo API.

Troubleshooting

  • Missing Bot Token: If the bot token credential is not set, the node will throw an error indicating the missing token. Ensure the API key/token is correctly configured in the node credentials.
  • API Errors: If the Zalo API returns an error (e.g., invalid chat ID, invalid sticker code), the node will throw an error including the description from the API response. Verify that the chat ID and sticker code are valid and accessible.
  • Secret Token Requirement: For webhook-related operations (not relevant here), a secret token must be provided either in the node or credentials; otherwise, an error occurs.
  • Network Issues: Connectivity problems to the Zalo API endpoint can cause request failures. Check network access and endpoint availability.

Links and References

Discussion