Zalo OA icon

Zalo OA

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

Zalo OA → Gửi Tin Tư Vấn Kèm Ảnh

AI-generated

Summary

Send a promotional (consultation) message including text and an image to a specified Zalo user via a Zalo Official Account (OA).

Inputs

  • User ID (required) — The ID of the user receiving the message.
  • Promotional Text (required) — The text content of the consultation message to send.
  • Image Source (required) — Specifies whether the image is provided as a URL or a pre-uploaded Attachment ID.
  • Image URL (required) — The URL of the image to include in the message if Image Source is set to URL.
  • Image ID (required) — The ID of the image already uploaded to the Zalo OA if Image Source is set to Attachment ID.
  • Message Type (required) — The type of message to send, either 'Customer Service' (consultation) or 'Promotion'.

Output shape

a single JSON object containing the API response from Zalo OA after sending the message, paired with the input item index.

The response includes success or error details from the Zalo OA API. Errors related to invalid parameters or permissions will be included in this output. Pagination does not apply as the operation sends one message per input item.

Discussion