Zalo Sticker icon

Zalo Sticker

Quản lý sticker trên Zalo

Zalo Sticker → Lấy Chi Tiết Sticker

AI-generated

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.

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.
  • pairedItem: Metadata linking the output item to the input item index.

No binary data output is produced by this operation.

Example output snippet:

{
  "success": true,
  "message": "Lấy chi tiết sticker thành công",
  "data": {
    /* sticker detail fields */
  }
}

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including a cookie, device IMEI, and user agent string to establish a session with the Zalo service.
  • The external dependency is the zca-js library which provides the interface to the Zalo API.
  • Proper configuration of the Zalo API credentials within n8n is necessary for the node to function.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Providing an invalid or non-existent Sticker ID will likely result in an error or empty data.
    • Missing required parameters like Sticker ID will cause the node to throw errors.
  • 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, usually due to missing or incorrect credentials. Verify your API key and credential setup.
    • 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 error.

Links and References

Discussion