Zalo Poll icon

Zalo Poll

Quản bình chọn Zalo

Poll → Tạo bình chọn

AI-generated

Overview

This node allows users to create a poll within a Zalo group chat. It is useful for gathering opinions or votes from group members on a specific question. Users can define the poll question, options, and various settings such as allowing multiple choices, adding new options, hiding results until voting, and anonymity. For example, a team leader can create a poll to decide on a meeting time or a group admin can gather feedback on an event.

Use Case Examples

  1. Create a poll in a Zalo group to decide on a meeting date with options like 'Monday', 'Tuesday', and 'Wednesday'.
  2. Create a poll asking for favorite project ideas with the ability for participants to add new options.

Properties

Name Meaning
ID Nhóm The ID of the Zalo group where the poll will be created. This is required and only works with groups.
Chủ đề bình chọn The question or topic of the poll to be asked.
Kiểu nhập lựa chọn The input type for poll options, either as a list of separate entries or a single text string with options separated by commas.
Các lựa chọn The poll options entered as separate entries when 'list' input type is selected.
Các lựa chọn The poll options entered as a comma-separated string when 'text' input type is selected.
Thời hạn bình chọn The expiration date and time of the poll. Leave empty if no expiration.
Ghim lên đầu trò chuyện Whether to pin the poll to the top of the chat.
Chọn nhiều phương án Allow participants to select multiple options in the poll.
Có thể thêm phương án Allow participants to add new options to the poll.
Ẩn kết quả khi chưa bình chọn Hide poll results from participants until they have voted.
Ẩn người bình chọn Make the poll anonymous so participants cannot see who voted for what.

Output

JSON

  • success - Indicates if the poll creation was successful.
  • response - The response data returned from the Zalo API after creating the poll.
  • groupId - The ID of the group where the poll was created.
  • createPollData - The data used to create the poll, including question, options, and settings.

Dependencies

  • Zalo API credentials including cookie, IMEI, and user agent for authentication

Troubleshooting

  • Ensure valid Zalo API credentials are provided; missing or invalid credentials will cause initialization failure.
  • Input validation errors such as missing poll options or question will throw errors; ensure at least one option is provided.
  • If the API instance is not initialized, the node will throw an error; verify credentials and network connectivity.

Discussion