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 focusing on sending messages and retrieving sticker details. The "Lấy chi tiết sticker" (Get sticker detail) operation fetches detailed information about a specific sticker by its ID. This is useful when you want to display or use metadata about a sticker before sending it in a message or for cataloging purposes.

Practical examples:

  • Fetching detailed info about a sticker to show its preview or description in a custom UI.
  • Validating sticker IDs before sending them in messages.
  • Integrating sticker metadata into chatbots or automated workflows that use Zalo stickers.

Properties

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

Output

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

Example output structure (simplified):

{
  "id": "string",
  "cateId": "string",
  "type": "string",
  "name": "string",
  "url": "string",
  ...
}

No binary data is output by this operation.

Dependencies

  • Requires valid Zalo API credentials with an active session cookie, IMEI, and user agent string.
  • The node uses these credentials to initialize the Zalo API client.
  • Proper configuration of these credentials in n8n is necessary for successful API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired Zalo API credentials will cause initialization failure.
    • Providing an incorrect or non-existent sticker ID will likely result in an error or empty response.
    • Network or API downtime can cause request failures.
  • Error messages:

    • "Failed to initialize Zalo API. Check your credentials." — Indicates problems with authentication; verify your API credentials and their validity.
    • "Zalo login error: <message>" — Details from the underlying login failure; check network connectivity and credential correctness.
    • Errors related to missing or invalid sticker ID parameters will be thrown if the required input is not provided.
  • Resolution tips:

    • Ensure the API credentials are correctly set up and have not expired.
    • Double-check the sticker ID input for typos or invalid values.
    • Handle errors gracefully using the node's "Continue On Fail" option if needed.

Links and References

Discussion