Zalo Send Message icon

Zalo Send Message

Gửi tin nhắn qua API Zalo sử dụng kết nối đăng nhập bằng cookie

Overview

This node allows users to interact with the Zalo messaging platform via its API, specifically for sending messages and managing stickers. The "Lấy chi tiết sticker" (Get sticker details) operation retrieves detailed information about a specific sticker by its ID. This is useful when you want to fetch metadata or properties of a sticker before using it in messages or for display purposes.

Practical examples include:

  • Fetching sticker details to show preview information in a chat application.
  • Validating sticker IDs before sending them as part of a message.
  • Integrating sticker metadata into custom workflows or analytics.

Properties

Name Meaning
Sticker ID The unique identifier of the sticker whose details you want to retrieve.

Output

The output JSON contains the detailed information of the requested sticker. The exact structure depends on the Zalo API response but typically includes fields such as sticker ID, category ID, type, and other metadata describing the sticker.

Example output snippet (conceptual):

{
  "id": "12345",
  "cateId": "678",
  "type": "animated",
  "name": "Happy Sticker",
  "url": "https://example.com/sticker.png",
  ...
}

No binary data output is involved in this operation.

Dependencies

  • Requires valid Zalo API credentials including a cookie, IMEI, and user agent string to authenticate requests.
  • The node uses an external Zalo API client library to perform operations.
  • Proper configuration of these credentials in n8n is necessary for successful API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials causing authentication failures.
    • Providing an incorrect or non-existent Sticker ID leading to empty or error responses.
    • Network connectivity problems affecting API communication.
  • Error messages:

    • "Failed to initialize Zalo API. Check your credentials." — Indicates that the node could not authenticate with Zalo API; verify credential correctness.
    • Errors related to missing or invalid Sticker ID will typically come from the API response; ensure the Sticker ID is correct and exists.
    • General HTTP or network errors may appear if the API endpoint is unreachable.

To resolve these:

  • Double-check and refresh your Zalo API credentials.
  • Confirm the Sticker ID is valid and correctly formatted.
  • Ensure stable internet connection and no firewall blocking API requests.

Links and References


This summary focuses exclusively on the "Lấy chi tiết sticker" operation under the "Zalo Send Message" resource as requested.

Discussion