Actions36
- Zalo OA Actions
- Gửi Tin Nhắn Văn Bản
- Gửi Tin Nhắn Hình Ảnh
- Gửi Tin Nhắn File
- Gửi Tin Nhắn Danh Sách
- Lấy Thông Tin Người Theo Dõi
- Lấy Danh Sách Người Theo Dõi
- Cập Nhật Thông Tin Người Theo Dõi
- Lấy Danh Sách Cuộc Trò Chuyện Gần Đây
- Lấy Lịch Sử Hội Thoại
- Kiểm Tra Trạng Thái Tin Nhắn
- Upload Hình Ảnh
- Upload Hình Ảnh GIF
- Upload File
- Lấy Danh Sách Tag
- Gán Tag Cho Người Theo Dõi
- Xóa Tag
- Xóa Người Theo Dõi Khỏi Tag
- Cập Nhật Menu OA
- Tạo Bài Viết
- Cập Nhật Bài Viết
- Xóa Bài Viết
- Lấy Danh Sách Bài Viết
- Lấy Chi Tiết Bài Viết
- Chuẩn Bị Upload Video
- Xác Thực Video
- Tạo Sản Phẩm
- Cập Nhật Sản Phẩm
- Lấy Thông Tin Sản Phẩm
- Lấy Danh Sách Sản Phẩm
- Tạo Danh Mục
- Cập Nhật Danh Mục
- Lấy Danh Sách Danh Mục
- Tạo Đơn Hàng
- Cập Nhật Đơn Hàng
- Lấy Thông Tin Đơn Hàng
- Lấy Danh Sách Đơn Hàng
Overview
This node integrates with the Zalo Official Account (OA) API, enabling automation of various interactions and management tasks related to a Zalo OA. Specifically, the "Gán Tag Cho Người Theo Dõi" operation allows you to assign tags to followers by their user ID. This is useful for segmenting users, targeting specific groups for messaging campaigns, or organizing followers based on interests or behaviors.
Practical examples include:
- Assigning promotional tags to users who have interacted with a campaign.
- Tagging new followers automatically for personalized follow-up messages.
- Managing user segments dynamically based on their activity or profile data.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the follower to whom the tag will be assigned. |
| Tag ID | The identifier of the tag that needs to be assigned to the follower. |
Output
The node outputs a JSON object representing the response from the Zalo OA API after attempting to assign the tag. The structure typically includes success status, any error messages, and additional metadata returned by the API.
If the tag assignment fails, the output JSON contains an error field set to true, a descriptive message, the raw API response data, and a suggestion to help resolve the issue.
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 at
https://openapi.zalo.me/v2.0/oa. - Relies on HTTP POST requests with JSON payloads authenticated via the access token.
Troubleshooting
Common Issues:
- Invalid or expired access token leading to authentication errors.
- Incorrect
userIdortagIdvalues causing API failures. - API version changes requiring use of
tag_nameinstead oftag_id.
Error Messages and Resolutions:
"Lỗi khi gán tag cho người dùng"(Error assigning tag): Check that theuserIdandtagIdortagNameare correct and exist in your OA.- API response status codes indicating permission issues: Ensure the access token has sufficient permissions to manage tags.
- If the first attempt using
tag_idfails, the node tries again usingtag_namedue to API v3 requirements; if both fail, review tag identifiers and API documentation.
Links and References
- Zalo Official Account API Documentation
- Zalo OA Tag Management API Reference (general reference, not direct link in code)