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 workflows that need to retrieve and process tag information from Zalo, such as organizing contacts or categorizing messages 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 generate reports about tag usage.
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: A boolean indicating whether the operation was successful.labels: An array containing the list of tags retrieved from Zalo.
Example output JSON:
{
"success": true,
"labels": [
// Array of tag objects from Zalo
]
}
There is no binary data output by this node.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects credentials to provide a cookie, IMEI, and user agent string for authentication.
- Proper configuration of these credentials in n8n is necessary for the node to function.
Troubleshooting
- Login Initialization Failure: If the node cannot initialize the Zalo API client, it throws an error indicating failure to start the API and suggests checking login information.
- Login Errors: Any errors during login are caught and rethrown with a message prefixed by "Lỗi đăng nhập Zalo:" followed by the original error message. This usually indicates invalid or expired credentials.
- To resolve these issues, verify that the provided credentials (cookie, IMEI, user agent) are correct and up to date.
Links and References
- Zalo Official Website
- Documentation for the
zca-jslibrary (if publicly available) would be helpful but is not linked here due to lack of explicit reference in the source code.