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: 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
]
}
The node does not output binary data.
Dependencies
- Requires an API key credential to connect to Zalo's API.
- Uses the
zca-jslibrary to interact with Zalo services. - Needs credentials including a cookie, IMEI, and user agent string for authentication.
- Must be configured with valid Zalo API credentials in n8n.
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.
- Ensure that the provided credentials (cookie, IMEI, user agent) are correct and up to date.
- Network issues or changes in Zalo's API could also cause failures.
Links and References
- Zalo Official Website
- Documentation for the
zca-jslibrary (if publicly available) - n8n documentation on creating custom nodes and managing credentials