Actions3
- Zalo Sticker Actions
Overview
This node interacts with the Zalo Sticker service, allowing users to manage and retrieve information about stickers on the Zalo platform. Specifically, the "Lấy Chi Tiết Sticker" (Get Sticker Detail) operation fetches detailed information about a particular sticker by its ID.
Common scenarios for this node include:
- Retrieving metadata or details of a specific sticker to display in an application.
- Integrating Zalo stickers into chatbots or messaging apps by fetching sticker info dynamically.
- Managing sticker collections by obtaining detailed data for each sticker.
Example use case: A chatbot that allows users to select stickers can use this node to fetch and show detailed information about a chosen sticker before sending it.
Properties
| Name | Meaning |
|---|---|
| Sticker ID | The unique identifier of the sticker whose detailed information you want to retrieve. This is a required string input. |
Output
The node outputs JSON data with the following structure:
success: Boolean indicating if the request was successful.message: A descriptive message about the operation result, e.g., "Lấy chi tiết sticker thành công" (Successfully retrieved sticker details).data: An object containing the detailed information of the requested sticker.
Example output JSON snippet:
{
"success": true,
"message": "Lấy chi tiết sticker thành công",
"data": {
// Detailed sticker information fields here
}
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including authentication cookie, device IMEI, and user agent string.
- The node depends on the external
zca-jslibrary to interact with the Zalo API. - Proper configuration of the Zalo API credential within n8n is necessary to authenticate requests.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Providing a non-numeric or invalid Sticker ID will likely cause errors when parsing or fetching details.
- Network connectivity problems can prevent API calls from succeeding.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates missing or invalid credentials; verify your Zalo API credential setup.- Errors related to parsing the Sticker ID or failed API responses will be thrown and can be caught if "Continue On Fail" is enabled.
To resolve these issues:
- Ensure the Zalo API credentials are correctly configured and up to date.
- Validate the Sticker ID input to be a proper numeric string.
- Check network connectivity and API availability.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying API client used)