Actions7
- Zalo Send Message Actions
- Zalo Text To Speech Actions
Overview
This node allows users to interact with the Zalo messaging platform via its API, specifically for sending messages and managing stickers. The "Lấy danh sách sticker" (Get Sticker List) operation fetches a list of available stickers from Zalo, optionally filtered by a search keyword.
Common scenarios where this node is beneficial include:
- Automating message sending on Zalo with rich content like stickers.
- Retrieving and displaying sticker options dynamically based on user input or other workflow data.
- Integrating Zalo messaging features into broader automation workflows, such as customer support bots or marketing campaigns.
Practical example:
- A chatbot that suggests relevant stickers based on user queries by searching stickers with keywords and then sending selected stickers in conversations.
Properties
| Name | Meaning |
|---|---|
| Query String | Optional search keyword to filter stickers by name, tag, or other metadata if supported by the API. |
Output
The output JSON structure for the "Lấy danh sách sticker" operation contains the list of stickers returned by the Zalo API. The exact structure depends on the API response but typically includes sticker IDs, names, categories, and possibly URLs or tags.
Example output snippet (conceptual):
{
"stickers": [
{
"id": "123",
"name": "Happy Cat",
"category": "Animals",
"tags": ["cat", "happy", "cute"]
},
...
]
}
No binary data output is involved in this operation.
Dependencies
- Requires valid Zalo API credentials with cookie-based authentication, including device identifiers and user agent strings.
- The node uses an external Zalo API client library to handle login and API requests.
- Proper configuration of these credentials in n8n is necessary before using the node.
- No additional environment variables are required beyond credential setup.
Troubleshooting
- Zalo API not initialized: This error occurs if the node fails to authenticate with Zalo using provided credentials. Verify that the cookie, device IMEI, and user agent values are correct and up to date.
- Failed to initialize Zalo API. Check your credentials.: Indicates login failure; ensure credentials are valid and have not expired.
- API errors during sticker retrieval: If the API returns errors, check network connectivity and confirm that the Zalo API service is operational.
- Empty or unexpected sticker list: May happen if the query string filters out all results or if the API changes its response format. Try removing the query string or updating the node to the latest version.
Links and References
- Zalo Official API Documentation (for detailed API capabilities and parameters)
- n8n Documentation (for general usage of custom nodes and credential management)