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 to assign tags to followers of a Zalo OA. It allows users to label or categorize followers by attaching specific tags, which can be useful for segmenting audiences, targeting messages, or managing follower groups more effectively.

Common scenarios where this node is beneficial include:

  • Marketing automation workflows where followers are tagged based on their interactions or profile data.
  • Customer segmentation to send personalized content or promotions.
  • Managing large follower lists by categorizing users with relevant tags.

For example, you might use this node to assign a "VIP Customer" tag to followers who have made purchases, enabling targeted promotional campaigns.

Properties

Name Meaning
User ID The unique identifier of the follower to whom the tag will be assigned.
Tag ID The unique identifier of the tag that will be assigned to the follower.

Output

The node outputs JSON data representing the response from the Zalo OA API after attempting to assign the tag. This typically includes success status and any relevant metadata returned by the API.

If an error occurs during the API call, the output JSON will contain error details including an error flag, message, and possibly suggestions for resolution.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Zalo Official Account API.
  • The node uses the Zalo OA API v2.0 or v3.0 endpoints for assigning tags.
  • Proper permissions must be granted to the API token, specifically the rights to manage follower tags.
  • Network access to https://openapi.zalo.me is required.

Troubleshooting

  • Common issues:

    • Invalid or expired access tokens causing authentication failures.
    • Incorrect userId or tagId values leading to API errors.
    • Insufficient permissions on the Zalo OA app for managing tags.
    • Network connectivity problems preventing API calls.
  • Error messages and resolutions:

    • "Error assigning tag to user:" followed by an error message indicates failure in the API request. Check the validity of userId and tagId.
    • HTTP response status codes like 401 or 403 suggest authentication or permission issues; verify API credentials and scopes.
    • If the error message suggests using tag_name instead of tag_id, try switching the input accordingly as per API version requirements.
    • For network-related errors, ensure your environment has internet access and the Zalo API endpoint is reachable.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion