Zalo Poll icon

Zalo Poll

Quản bình chọn Zalo

Poll → Tạo bình chọn

AI-generated

Summary

Create a poll in a specified Zalo group chat with customizable question, options, and voting settings.

Inputs

  • ID Nhóm (required) — The ID of the group where the poll will be created (works only for groups).
  • Chủ đề bình chọn (required) — The question or topic of the poll.
  • Kiểu nhập lựa chọn (required) — Determines how poll options are input: as a list of separate entries or a single comma-separated string.
  • Các lựa chọn (required) — The poll options. Input method depends on the chosen "Kiểu nhập lựa chọn": either multiple distinct option entries or a single comma-separated string.
  • Thời hạn bình chọn — Optional expiration datetime for the poll; leave empty if no expiry is desired.
  • Ghim lên đầu trò chuyện — Boolean to decide if the poll should be pinned to the top of the chat.
  • Chọn nhiều phương án (required) — Boolean indicating if participants are allowed to select multiple options.
  • Có thể thêm phương án (required) — Boolean indicating if participants can add new options to the poll.
  • Ẩn kết quả khi chưa bình chọn (required) — Boolean to hide poll results until a participant votes.
  • Ẩn người bình chọn (required) — Boolean to keep voter identities anonymous from other participants.

Output shape

a list containing one item with a JSON object indicating success status and the API response data for the created poll

Returns an array with one JSON object per input item processed. On success, includes keys: 'success' (true), 'response' (poll creation response), 'groupId', and the original poll parameters submitted. Errors are either thrown or returned per item if 'Continue On Fail' is enabled.

Examples

Example 1: Creating a basic poll with three options in a group, allowing multiple choices and anonymous voting, with no expiry.

Group ID set with a valid group identifier, question set, options entered as a list or comma-separated text, allowMultiChoices: true, isAnonymous: true.

Links

Discussion