create_poll
Create a poll in a Talk group conversation by providing the conversation token, question, and at least two options. The poll is announced automatically in the chat, with configurable result visibility and voting limits.
Instructions
Create a poll in a Talk conversation.
Polls can only be created in group or public conversations (not one-to-one). A chat message is automatically posted announcing the poll.
Args: token: The conversation token. Use list_conversations to find tokens. question: The poll question (max 32,000 characters). options: List of voting options (minimum 2 options required). Example: ["Yes", "No", "Maybe"] result_mode: 0 for public results (voters see results immediately after voting), 1 for hidden results (results shown only after poll is closed). Default: 0 (public). max_votes: Maximum number of options a user can vote for. 0 means unlimited (user can select all options). Default: 0.
Returns: JSON object with poll details: id, question, options, status, result_mode, max_votes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| options | Yes | ||
| question | Yes | ||
| max_votes | No | ||
| result_mode | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |