Zalo Send Sticker icon

Zalo Send Sticker

Gửi sticker qua Zalo theo từ khóa

Overview

This node allows users to send a sticker via the Zalo messaging platform by searching for stickers using a keyword. It is useful in scenarios where automated or programmatic sending of expressive stickers is desired, such as in chatbots, customer support automation, or marketing campaigns on Zalo.

For example, you can configure this node to send a "hello" sticker to a specific user or group thread automatically when triggered, enhancing engagement with visual content without manual intervention.

Properties

Name Meaning
Thread ID The ID of the recipient user or group where the sticker will be sent.
Thread Type The type of conversation: either a single user ("User (Cá Nhân)") or a group ("Group (Nhóm)").
Sticker Query The keyword used to search for stickers (e.g., "hello", "love", "sad").

Output

The node outputs JSON data containing:

  • success: Boolean indicating if the sticker was sent successfully.
  • message: A success message string.
  • threadId: The ID of the recipient thread.
  • threadType: The type of the thread ("user" or "group").
  • stickerQuery: The original search keyword used.
  • stickerObject: The detailed object data of the sticker that was sent.
  • stickersFound: Number of stickers found matching the query.
  • timestamp: ISO timestamp of when the operation occurred.

If sending fails and the node is configured to continue on failure, the output includes:

  • success: false
  • error: Error message describing the failure.
  • timestamp: Timestamp of the failure event.

The node does not output binary data.

Dependencies

  • Requires valid Zalo API credentials (an API key credential) configured in n8n.
  • Uses an external Zalo client library to login and interact with the Zalo service.
  • The credentials must include cookie, IMEI, and user agent information parsed from the stored credential.
  • The node depends on the Zalo API being accessible and the credentials being valid and active.

Troubleshooting

  • Credential Parsing Error: If the node throws a credential parsing error, it indicates invalid or corrupted Zalo API credentials. The recommended fix is to recreate the credentials using the appropriate login method (e.g., a QR code login node).
  • No Stickers Found: If no stickers are found for the given keyword, try alternative keywords such as "hello", "love", "sad", "happy", or "ok".
  • Sticker Detail Retrieval Failure: If the node cannot retrieve detailed sticker information, verify network connectivity and ensure the Zalo API has not changed.
  • Sending Sticker Failure: The node tries multiple methods to send the sticker. If all fail, check:
    • That the thread ID and type are correct.
    • That the credentials have sufficient permissions.
    • That the Zalo API has not changed its method signatures.
  • Fallback Method Failure: If even the fallback method fails, review the last error message logged for clues.
  • Enable "Continue On Fail" in the node settings to allow workflow continuation despite errors.

Links and References

Discussion