Overview
This node, named "Zalo Tag," is designed to manage tags (labels) within the Zalo platform. It currently supports listing all tags associated with a Zalo account. This functionality is useful for workflows that need to retrieve and process tag information from Zalo, such as organizing contacts or segmenting users based on tags.
A practical example would be automating the retrieval of all tags in a Zalo account to synchronize them with another system or to trigger actions based on specific tags.
Properties
| Name | Meaning |
|---|---|
| Hành đỘng | The 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 the Zalo API.
The node does not output binary data.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses the
zca-jslibrary to interact with the Zalo API. - Requires configuration of credentials including cookie, IMEI, and user agent details for authentication.
Troubleshooting
- Login Initialization Failure: If the node cannot initialize the Zalo API client, it throws an error prompting to check login information. This usually means the provided credentials are invalid or expired.
- Login Error Message: Errors during login will include the message
"Lỗi đăng nhập Zalo: <error message>". To resolve, verify that the cookie, IMEI, and user agent values in the credentials are correct and up to date. - Ensure that the Zalo API credentials are properly set up in n8n before running the node.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client library)