Zalo Tag icon

Zalo Tag

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

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 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 (true).
  • labels: An array representing the list of tags retrieved from Zalo.

Example output JSON structure:

{
  "success": true,
  "labels": [
    {
      "id": "tag_id_1",
      "name": "Tag Name 1"
    },
    {
      "id": "tag_id_2",
      "name": "Tag Name 2"
    }
    // ... more tags
  ]
}

The node does not output binary data.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • The credential must provide a cookie, IMEI, and user agent string used to initialize the Zalo API client.
  • Uses the external zca-js library to interact with the Zalo API.
  • Requires proper configuration of the Zalo API credentials in n8n before use.

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. 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" followed by the specific error details. To resolve, verify that the cookie, IMEI, and user agent values in the credentials are correct and up to date.
  • Empty or Missing Tags: If the output labels array is empty, ensure that the authenticated Zalo account actually has tags created.

Links and References

Discussion