WapiZap Message icon

WapiZap Message

Send WhatsApp messages - Text, images, videos, audio, documents, and more

Send Poll

AI-generated

Summary

Send a WhatsApp poll message using the WapiZap instance.

Inputs

  • apiVersion — API version to use: 'v2' (recommended) or 'v1'. Default is 'v2'.
  • instanceName (required) — Name of the WapiZap instance that will send the poll.
  • to (required) — Recipient phone number (including country code) to which the poll will be sent.
  • pollQuestion (required) — Text of the poll question.
  • pollOptions (required) — Comma‑separated list of poll options (e.g., 'Option 1, Option 2, Option 3').
  • selectableCount — Maximum number of options a respondent can select. Default is 1.
  • additionalOptions.delay — Delay in milliseconds before sending the poll. Default is 0.
  • additionalOptions.fileName — Custom file name for documents (not used for polls). Default is empty string.

Output shape

Array of items, each containing the JSON response from the WhatsApp API (typically includes message ID and status).

If the node is configured to continue on failure, errors are returned as items with an error field.

Examples

Example 1: Send a simple poll asking for a favorite fruit.

Set Instance Name to 'my-instance', To to '5511999998888', Poll Question to 'What is your favorite fruit?', Poll Options to 'Apple, Banana, Orange', Selectable Count to 1.

Discussion