Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Overview

This node integrates with the Zalo Official Account (OA) API, enabling automation of various interactions with a Zalo OA. Specifically, the "Xóa Tag" (Remove Tag) operation allows users to delete a tag from their Zalo OA by specifying the tag's ID. This is useful for managing and organizing tags that categorize followers or messages, helping keep the tagging system clean and up-to-date.

Practical examples:

  • Removing obsolete or incorrect tags from your follower list.
  • Cleaning up tags after a marketing campaign ends.
  • Automating tag management as part of a larger workflow involving user segmentation.

Properties

Name Meaning
Tag ID The unique identifier of the tag to be removed from the Zalo OA.

Output

The node outputs a JSON object containing the response from the Zalo OA API after attempting to remove the specified tag. This typically includes success status and any relevant messages or error details returned by the API.

Example output structure:

{
  "error": false,
  "message": "Tag removed successfully",
  // other API response fields
}

If the removal fails, the output JSON will contain an error field set to true along with an error message and possibly additional diagnostic information.

Dependencies

  • Requires an active Zalo Official Account API access token credential configured in n8n.
  • Uses the Zalo OA API endpoint at https://openapi.zalo.me/v2.0/oa/tag/rmtag.
  • Requires internet connectivity to reach Zalo's API servers.

Troubleshooting

  • Common issues:

    • Invalid or expired access token: The API call will fail if the access token is missing, invalid, or expired.
    • Incorrect Tag ID: If the provided tag ID does not exist or is malformed, the API will return an error.
    • Insufficient permissions: The access token must have the necessary rights to manage tags on the OA.
  • Error messages and resolutions:

    • "error": true, "message": "Invalid access token": Refresh or reconfigure the API credentials.
    • "error": true, "message": "Tag not found": Verify the tag ID is correct and exists.
    • Network errors or timeouts: Check network connectivity and Zalo API service status.

Links and References

Discussion