Zalo OA icon

Zalo OA

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

Zalo OA → Gán Tag Cho Người Theo Dõi

AI-generated

Summary

Assign a tag to a Zalo Official Account follower specified by their user ID to categorize or label the follower within Zalo OA.

Inputs

  • User ID (required) — The unique identifier (ID) of the follower to whom the tag will be assigned.
  • Tag ID (required) — The identifier of the tag to assign to the follower. Can be a tag ID or tag name depending on Zalo API version.

Output shape

a single JSON object containing the response from the Zalo API indicating success or failure of the tag assignment.

The operation tries to assign the tag using 'tag_id' first. If that fails, it attempts to assign by 'tag_name'. The output may contain an error message if both attempts fail, including API response data and suggestions to verify user ID and tag correctness. The assignTag operation processes each input item independently and returns corresponding results.

Discussion