Zalo Tag icon

Zalo Tag

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

Overview

This node, named "Zalo Tag," is designed to manage tags within the Zalo platform. It primarily allows users to list all tags associated with their Zalo account. This functionality is useful for scenarios where you want to retrieve and display all existing tags for organizing contacts, messages, or other entities in Zalo.

A practical example would be a marketing automation workflow where you need to fetch all available tags to segment your audience or apply specific tags to user profiles based on certain criteria.

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 all the tags retrieved from the Zalo account.

Example output JSON:

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

There is no binary data output by this node.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • The node uses stored credentials including a cookie, IMEI, and user agent string to initialize the Zalo API client.
  • The external dependency is the zca-js library, which provides the Zalo API client functionality.
  • Proper configuration of the Zalo API 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 that login failed and suggests checking the login information. This usually means the provided credentials are invalid or expired.
  • API Errors: Any errors during API calls will be wrapped and thrown as node errors with descriptive messages.
  • Ensure that the cookie, IMEI, and user agent values in the credentials are correct and up to date.
  • Network connectivity issues or changes in the Zalo API may also cause failures.

Links and References

Discussion