Zalo OA icon

Zalo OA

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

Zalo OA → Gửi Tin Nhắn Danh Sách

AI-generated

Summary

Send a list message template to a specified Zalo OA user with customizable title and multiple list items, each including title, subtitle, image URL, and a default action URL.

Inputs

  • messageType — Type of message to send, selectable from Customer Service (cs), Transaction (transaction), or Promotion (promotion). Defaults to 'cs'.
  • userId (required) — The Zalo user ID of the message recipient.
  • title (required) — The main title displayed on the list message.
  • elements (required) — An array of list items composing the message. Each list item can include a title, subtitle, image URL, and a URL action when the item is clicked.

Output shape

a single JSON object with the Zalo API response for the send list message request for each input item.

The output contains the JSON response from the Zalo Official Account API corresponding to the list message send request. Errors from the API will be reflected in the response data.

Examples

Example 1: Send a promotional list message with multiple items to a user

Set messageType to 'promotion', provide userId, title for the list, and at least one element with title, subtitle, imageUrl, and defaultActionUrl.

Discussion