Actions7
- Zalo Send Message Actions
- Zalo Text To Speech Actions
Overview
This node allows sending messages through the Zalo platform using its API authenticated via cookies. Specifically, for the "Gửi sticker" (Send sticker) operation, it sends a sticker to a specified conversation thread on Zalo, either to an individual user or a group chat.
Typical use cases include automating sticker responses in customer support chats, marketing campaigns, or interactive chatbots where stickers enhance communication and engagement.
For example, you can configure this node to send a celebratory sticker automatically when a user completes a certain action or to respond with a specific sticker based on user input.
Properties
| Name | Meaning |
|---|---|
| ID cuộc trò chuyện / Thread ID | The unique identifier of the conversation (user or group) where the sticker will be sent. |
| Loại cuộc trò chuyện | The type of conversation: "Cá nhân" (Individual user) or "Nhóm" (Group chat). Options: 0 (User), 1 (Group). |
| Sticker ID | The identifier of the sticker to send. |
Output
The node outputs a JSON object containing:
success: Boolean indicating if the sticker was sent successfully.response: The raw response from the Zalo API after sending the sticker.threadId: The ID of the conversation thread where the sticker was sent.stickerId: The ID of the sticker that was sent.stickerObj: The detailed sticker object retrieved from the Zalo API before sending.
No binary data is output by this operation.
Dependencies
- Requires valid Zalo API credentials authenticated via cookie, IMEI, and user agent strings.
- The node depends on the Zalo API client library (
zca-js) for interacting with Zalo services. - Proper configuration of these credentials in n8n is necessary for successful API calls.
Troubleshooting
- Zalo API not initialized: This error occurs if the node fails to authenticate with Zalo using the provided credentials. Verify that the cookie, IMEI, and user agent are correctly set and valid.
- Sticker detail is invalid or missing required fields: Happens if the sticker ID provided does not correspond to a valid sticker or the API response lacks necessary sticker information. Double-check the sticker ID.
- Network or API errors: Could occur due to connectivity issues or changes in the Zalo API. Check network access and ensure the API endpoint is reachable.
- If the node throws errors related to missing parameters, ensure all required properties (Thread ID, Sticker ID, Type) are provided and correctly formatted.