Zalo Sticker icon

Zalo Sticker

Quản lý sticker trên Zalo

Overview

This node interacts with the Zalo platform to manage and retrieve stickers. Specifically, the "Lấy Danh Sách Sticker" (Get Sticker List) operation allows users to fetch a list of stickers from Zalo based on a given name or keyword. If no name is provided, it retrieves all available stickers.

Common scenarios for this node include:

  • Fetching sticker collections for use in messaging or social media automation workflows.
  • Searching for specific stickers by name or keyword to dynamically include them in communications.
  • Integrating Zalo stickers into custom applications or chatbots via n8n automation.

For example, a user can input a keyword like "happy" to get all stickers related to happiness, or leave the field empty to retrieve the entire sticker catalog.

Properties

Name Meaning
Tên Sticker The name or keyword to filter stickers by. Leave empty to retrieve all stickers.

Output

The node outputs an array of JSON objects with the following structure:

  • success: Boolean indicating if the operation was successful.
  • message: A descriptive message about the result, e.g., "Lấy danh sách sticker thành công" (Successfully retrieved sticker list).
  • data: The actual list of stickers returned by the API. This is typically an array of sticker objects.
  • count: Number of stickers returned (if the data is an array).

Example output snippet:

{
  "success": true,
  "message": "Lấy danh sách sticker thành công",
  "data": [ /* array of sticker objects */ ],
  "count": 42
}

No binary data output is involved in this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication cookie, device IMEI, and user agent string.
  • The node uses an external Zalo SDK (zca-js) to interact with the Zalo API.
  • Credentials must be configured properly in n8n to allow authenticated requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Missing or malformed cookie, IMEI, or user agent values can prevent login.
    • Network connectivity problems could lead to request timeouts or errors.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Indicates failure to authenticate with Zalo API. Verify that the credential fields are correctly set and not expired.
    • Errors returned from the Zalo API will be passed through; check the error message for details.
  • Resolution tips:

    • Ensure the Zalo API credentials are up-to-date and correctly entered.
    • Confirm that the input properties are valid and conform to expected formats.
    • Use the "Continue On Fail" option in n8n to handle individual item errors gracefully.

Links and References

Discussion