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 Zalo OA. Specifically, the "Xóa Người Theo Dõi Khỏi Tag" operation allows you to remove a follower from a specific tag within your Zalo OA. This is useful for managing segmented user groups or cleaning up tags when followers no longer belong to certain categories.

Common scenarios include:

  • Managing marketing segments by removing users from outdated or irrelevant tags.
  • Automating follower management workflows based on user behavior or status changes.
  • Keeping tag lists accurate and up-to-date without manual intervention.

Example: If a user unsubscribes from a newsletter segment tagged in Zalo OA, this node can automatically remove that user from the corresponding tag.

Properties

Name Meaning
User ID The unique identifier of the follower to be removed from the tag.
Tag ID The unique identifier of the tag from which the follower will be removed.

Output

The node outputs a JSON object containing the response from the Zalo OA API after attempting to remove the follower from the tag. The structure typically includes success or error information returned by the API, such as status codes and messages indicating whether the removal was successful.

No binary data output is involved in this operation.

Dependencies

  • Requires an active Zalo Official Account API access token credential configured in n8n.
  • Uses the Zalo OA API endpoint https://openapi.zalo.me/v3.0/oa/tag/rmfollowerfromtag via HTTP POST.
  • Requires proper permissions granted to the access token to manage tags and followers.

Troubleshooting

  • Common issues:

    • Invalid or expired access token leading to authentication errors.
    • Incorrect User ID or Tag ID causing the API to fail to find the specified follower or tag.
    • Insufficient permissions on the Zalo OA app to modify tags or followers.
  • Error messages and resolutions:

    • Errors returned from the API will appear in the output JSON under an error field with descriptive messages.
    • If the node returns an error about access rights, ensure the access token has the necessary scopes enabled.
    • For "user not found" or "tag not found" errors, verify that the User ID and Tag ID are correct and exist in your Zalo OA.
    • Network or API downtime issues may cause request failures; retrying later or checking Zalo's service status is advised.

Links and References

Discussion