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. This is useful for scenarios where you want to display or process metadata about specific stickers, such as their name, description, or other attributes.
Practical examples include:
- Fetching detailed info about a sticker to show in a chat application.
- Retrieving sticker metadata for cataloging or analytics.
- Integrating sticker details into marketing or social media tools that use Zalo stickers.
Properties
| Name | Meaning |
|---|---|
| Sticker ID | The unique identifier of the sticker whose detailed information you want to retrieve. It must be provided as a string representing the sticker's ID. |
Output
The output JSON contains the following structure:
success: A boolean indicating whether the operation was successful (true).message: A string message confirming the success of the detail retrieval, 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. The exact structure depends on the Zalo API response but typically includes properties describing the sticker.
Example output JSON snippet:
{
"success": true,
"message": "Lấy chi tiết sticker thành công",
"data": {
/* sticker detail fields */
}
}
No binary data output is indicated by the code.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses the
zca-jslibrary to interact with the Zalo API. - Requires valid credentials including cookie, IMEI, and user agent strings either from the credential or input data.
- The node expects these credentials to be configured properly in n8n under the relevant credential type.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Missing or incorrect
Sticker IDwill result in errors or empty responses. - Network connectivity problems can prevent API calls from succeeding.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates that the node could not establish a connection to the Zalo API due to missing or invalid credentials. Verify that the API key credential is correctly set up and contains valid cookie, IMEI, and user agent values.- Errors returned from the Zalo API (e.g., invalid sticker ID) will be propagated unless "Continue On Fail" is enabled, in which case the error message will appear in the output JSON under the
errorfield.
Links and References
- Zalo Official Developer Documentation
- Zalo Sticker API Reference (if available)
- zca-js GitHub Repository (for the underlying SDK used)