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 an array of JSON objects, each containing:
success: A boolean indicating if the operation was successful.labels: An array of tags retrieved from the Zalo account.
Example output JSON structure:
{
"success": true,
"labels": [
{
"id": "tag_id_1",
"name": "Tag Name 1",
...
},
{
"id": "tag_id_2",
"name": "Tag Name 2",
...
}
]
}
No binary data output is produced by this node.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses the
zca-jslibrary to interact with the Zalo API. - Requires configuration of credentials including cookie, IMEI, and user agent for authentication.
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 valid and up to date.
- Network issues or changes in the Zalo API may also cause failures; verify connectivity and API status.