Zalo Sticker icon

Zalo Sticker

Quản lý sticker trên Zalo

Zalo Sticker → Tìm Kiếm Sticker

AI-generated

Overview

This node allows users to manage and search for stickers on the Zalo platform. Specifically, the "Tìm Kiếm Sticker" (Search Stickers) operation enables searching for stickers by a keyword query. This is useful for automating workflows that involve retrieving relevant stickers based on user input or other dynamic data sources.

Practical examples include:

  • Automatically fetching stickers related to a specific theme or event mentioned in a chat.
  • Integrating sticker search into a chatbot to provide users with sticker suggestions.
  • Building content management systems that organize or display stickers dynamically.

Properties

Name Meaning
Từ Khóa Tìm Kiếm The keyword used to search stickers on Zalo

Output

The output JSON contains the following fields:

  • success: Boolean indicating if the search was successful.
  • message: A descriptive message about the result, e.g., "Tìm kiếm sticker thành công" (Sticker search successful).
  • data: An array of sticker objects matching the search query.
  • count: Number of stickers returned in the data array.
  • query: The original search keyword used.

Example output structure:

{
  "success": true,
  "message": "Tìm kiếm sticker thành công",
  "data": [ /* array of sticker objects */ ],
  "count": 10,
  "query": "happy"
}

No binary data output is indicated by the code.

Dependencies

  • Requires an API key credential to connect to the Zalo API.
  • Uses the external zca-js library to interact with Zalo's sticker services.
  • Requires valid authentication details including cookie, IMEI, and user agent string either from credentials or input data.
  • The node expects these credentials to be configured properly in n8n before execution.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause login failure.
    • Missing required parameters like the search keyword will prevent execution.
    • Network or API errors from Zalo could interrupt the search process.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node failed to authenticate with Zalo. Check that the API key credential is correctly set up and contains valid cookie, IMEI, and user agent values.
    • Errors thrown during the search are caught and can be optionally ignored if "Continue On Fail" is enabled; otherwise, they stop execution.

Links and References

Discussion