Zalo CN Tag icon

Zalo CN Tag

Quản lý thẻ (tag) trong Zalo

Overview

This node manages tags (labels) within the Zalo platform, a popular messaging app. 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 automating marketing campaigns based on user segmentation.

A practical example: You might use this node to fetch all tags from your Zalo account and then filter or analyze them in subsequent workflow steps to target specific user groups.

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 if the operation was successful.
  • labels: An array containing the list of tags fetched from Zalo.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses the zalo-api-final library to interact with Zalo's API.
  • The credential must provide a valid cookie, device IMEI, and user agent string for authentication.
  • Proper configuration of these credentials in n8n is necessary for the node to function.

Troubleshooting

  • Login Failure: If the node cannot initialize the Zalo API client, it throws an error indicating login failure. This usually means the provided credentials (cookie, IMEI, user agent) are invalid or expired.
    • Resolution: Verify and update the Zalo API credentials in n8n.
  • Empty or Missing Labels: If no tags are returned, ensure that the Zalo account actually has tags created.
  • General API Errors: Any other errors during execution will be wrapped and reported with messages prefixed by "Lỗi đăng nhập Zalo:" or similar, helping identify issues related to authentication or API communication.

Links and References

  • Zalo Official Website
  • Documentation for the zalo-api-final library (if publicly available)
  • n8n documentation on creating and using credentials

Discussion