Overview
This node, named "Zalo Tag," is designed to manage tags within the Zalo platform. It currently supports listing all tags associated with a Zalo account. This functionality is useful for users who want to retrieve and work with their existing tags in Zalo, such as for organizing contacts or messages by categories.
A practical example would be a marketing automation workflow where you need to fetch all available tags from Zalo to dynamically assign them to contacts or segment audiences based on these tags.
Properties
| Name | Meaning |
|---|---|
| Hành đỘng | Action to perform; options: "Danh Sách Thẻ" (List all tags) |
Output
The node outputs JSON data structured as follows:
{
"success": true,
"labels": [ /* array of tag objects retrieved from Zalo */ ]
}
success: A boolean indicating whether the operation was successful.labels: An array containing the list of tags fetched from Zalo.
There is no binary output.
Dependencies
- Requires an API key credential to connect to the Zalo API.
- Uses the
zca-jslibrary to interact with Zalo's API. - The credential must provide a valid cookie, IMEI, and user agent string for authentication.
- Proper configuration of the Zalo API credentials in n8n is necessary before using this node.
Troubleshooting
- Login Initialization Failure: If the node cannot initialize the Zalo API client, it throws an error indicating that login information should be checked. This usually means the provided credentials are invalid or expired.
- Error Messages:
"Không thể khởi tạo API Zalo. Vui lòng kiểm tra thông tin đăng nhập."— Check that the API credentials (cookie, IMEI, user agent) are correctly set and valid."Lỗi đăng nhập Zalo: <error message>"— Indicates a failure during login; verify network connectivity and credential correctness.
To resolve these issues, ensure that the Zalo API credentials are up-to-date and correctly configured in n8n.
Links and References
- Zalo Official API Documentation
- zca-js GitHub Repository (for the underlying Zalo API client library)