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
The node integrates with the Zalo Official Account (OA) API, enabling users to send various types of messages and manage Zalo OA resources programmatically. Specifically, for the "Gửi Tin Nhắn Văn Bản" (Send Text Message) operation under the "Zalo OA" resource, it sends text messages to a specified user on Zalo.
This node is beneficial in scenarios such as:
- Customer support automation by sending consultation messages.
- Transactional notifications like order confirmations or alerts.
- Promotional campaigns targeting followers with personalized messages.
Example use case: Automatically send a welcome message to new followers or notify customers about their transaction status via Zalo.
Properties
| Name | Meaning |
|---|---|
| Message Type | Type of message to send. Options: - Tin Tư Vấn (Customer Service): For consultation messages. - Tin Giao Dịch (Transaction): For transactional messages. - Tin Truyền Thông Cá Nhân (Promotion): For personal promotional messages. |
| User ID | The unique identifier of the recipient user who will receive the text message. |
| Nội Dung Tin Nhắn (Text Content) | The content of the text message to be sent. |
Output
The output is a JSON object containing the response from the Zalo OA API after attempting to send the text message. This typically includes:
- Status information indicating success or failure.
- Any message IDs or metadata returned by the API.
- Error details if the request failed.
No binary data is output for this operation.
Dependencies
- Requires an API authentication token (access token) for the Zalo Official Account API.
- Uses the Zalo OA API endpoint at
https://openapi.zalo.me/v3.0/oa/message/{messageType}. - The node depends on the
axioslibrary for HTTP requests. - Requires proper configuration of credentials within n8n to provide the access token.
Troubleshooting
Common issues:
- Invalid or expired access token leading to authentication errors.
- Incorrect or missing
userIdcausing message delivery failure. - Message content exceeding allowed length or containing unsupported characters.
Error messages:
- Errors returned from the Zalo API will be included in the output JSON under error fields.
- If the API returns an error, check the access token validity and permissions.
- Ensure the
userIdcorresponds to a valid follower of the OA. - Verify that the message type matches one of the supported options.
Resolution tips:
- Refresh or reconfigure the API token if authentication fails.
- Validate input parameters before execution.
- Consult Zalo OA API documentation for message format and limits.
Links and References
- Zalo Official Account API Documentation
- Zalo OA Messaging API Reference (general reference, may require login)
- n8n Documentation on Credentials