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

The Zalo Send Message node enables sending various types of messages and interactions through the Zalo messaging platform API. It supports operations such as sending text messages, stickers, voice messages, video messages, pinning conversations, adding reactions, and converting text to speech (TTS). This node is useful for automating communication workflows on Zalo, such as customer support bots, marketing campaigns, or interactive chatbots.

Specifically, the "Lấy danh sách sticker" (Get Stickers List) operation retrieves a list of available stickers from Zalo, optionally filtered by a search keyword. This can be used to dynamically fetch stickers for use in messages or to present sticker options to users.

Practical Examples

  • Automatically send a welcome message with a sticker to new users.
  • Retrieve and display a list of stickers matching a keyword to let users pick one.
  • Convert text input into speech and send it as a voice message.
  • Pin important conversations or add reactions to messages programmatically.

Properties

Name Meaning
Query String Optional search keyword to filter stickers by name, tag, or other metadata (if supported).

This property applies only when the Resource is Zalo Send Message and the Operation is Lấy danh sách sticker (getStickers).

Output

The output JSON structure for the "Lấy danh sách sticker" operation contains the list of stickers returned by the Zalo API. The exact structure depends on the API response but typically includes sticker IDs, names, categories, and other metadata.

Example output snippet:

{
  "stickers": [
    {
      "id": "123",
      "name": "Happy Sticker",
      "category": "Emotions",
      ...
    },
    ...
  ]
}

No binary data is output for this operation.

Dependencies

  • Requires valid Zalo API credentials including a cookie, device IMEI, and user agent string for authentication.
  • The node uses an internal Zalo API client initialized with these credentials.
  • For TTS operations, a separate Zalo TTS API key credential is required.
  • Network access to Zalo's API endpoints is necessary.

Troubleshooting

  • Failed to initialize Zalo API. Check your credentials.
    Ensure that the provided cookie, IMEI, and user agent are correct and have not expired.

  • Zalo login error: [message]
    Indicates issues during authentication; verify credentials and network connectivity.

  • Zalo API not initialized
    Happens if the API client was not successfully created before making requests. Check earlier errors.

  • Invalid reaction: [reaction]
    When adding reactions, ensure the reaction value is valid and supported.

  • Voice URL is required.
    For sending voice messages, provide a valid URL to the audio file.

  • Video URL and Thumbnail URL are required.
    Both URLs must be specified when sending video messages.

  • Zalo TTS API credentials are not set or invalid.
    For TTS operations, configure the API key credential properly.

  • If the node is set to continue on fail, errors will be included in the output JSON with success: false and an error message.

Links and References


This summary focuses on the Zalo Send Message resource and specifically the Lấy danh sách sticker operation, describing its inputs, outputs, dependencies, and common troubleshooting points based on static analysis of the node's source code.

Discussion