Overview
This node integrates with the Zalo Bot Platform, allowing users to interact programmatically with Zalo messaging services. It supports various operations such as sending messages, photos, stickers, and chat actions, managing webhooks, and retrieving bot or webhook information.
The Send Message operation specifically enables sending text messages to a specified chat or user on Zalo. This is useful for automating notifications, customer support replies, or broadcasting messages within Zalo chats.
Practical examples:
- Sending order confirmation messages to customers automatically.
- Notifying team members in a group chat about project updates.
- Responding to user queries with automated text replies.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The identifier of the recipient user or chat where the message will be sent (chat_id). |
| Text | The text content of the message to send. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. Each output JSON contains the full response from the Zalo Bot API for the executed operation.
For the Send Message operation, the output JSON includes:
ok: A boolean indicating if the request was successful.- Additional fields returned by the Zalo API, such as message identifiers or status descriptions.
No binary data is produced by this operation.
Dependencies
- Requires an API authentication token (bot token) configured via credentials to authenticate requests to the Zalo Bot API.
- Uses the base URL
https://bot-api.zapps.meby default, but this can be overridden in credentials. - Requires network access to the Zalo Bot API endpoints.
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, unauthorized access), the node throws an error including the description from the API response. Verify that the chat ID is correct and the bot has permission to message the target.
- Secret Token Requirement: For webhook-related operations, a secret token must be provided either in the node or credentials; otherwise, an error is thrown.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON for failed items.
Links and References
- Zalo Bot Platform Documentation
- Zalo Stickers Repository (for sticker codes)