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 currently supports listing all tags associated with a Zalo account. This functionality is useful for users who want to retrieve and work with their existing tags in Zalo, such as for organizing contacts or messages by categories.

A practical example would be a marketing automation workflow where you need to fetch all available tags from Zalo to dynamically assign them to contacts or segment audiences based on these 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 (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
  ]
}

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential to connect to Zalo's API.
  • Uses the zca-js library to interact with Zalo services.
  • Needs valid authentication details including cookie, IMEI, and user agent stored in credentials.
  • Proper configuration of the Zalo API credential in n8n is necessary for successful login and API calls.

Troubleshooting

  • Login Failure: If the node cannot initialize the Zalo API client, it throws an error indicating failure to log in. This usually means the provided credentials are invalid or expired. Verify that the API key credential contains correct and up-to-date cookie, IMEI, and user agent information.
  • API Errors: Any errors during fetching tags will be wrapped and reported as node API errors with descriptive messages. Check network connectivity and ensure the Zalo service is operational.
  • Empty Tag List: If no tags are returned, confirm that the Zalo account actually has tags created.

Links and References

Discussion