WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

💬 **CHATTING** · Send Poll

AI-generated

Summary

Send a poll message to a specified WhatsApp chat via the WhatGHL API, allowing recipients to vote on predefined options.

Inputs

  • Session Mode — Choose how WhatGHL selects the sender session: Auto (default backend selection), By Session Name (specific WAHA session), or Select Session (pick from API key sessions).
  • Session — Required if 'Select Session' mode chosen; select from available sessions for the API key.
  • Session Name — Required if 'By Session Name' mode chosen; specify WAHA session name (e.g., Session1-0da2bdfd).
  • Chat ID (required) — Destination WhatsApp chat identifier where the poll will be sent.
  • Poll Name (required) — Title or question of the poll shown to recipients.
  • Poll Options (required) — Poll answer options as a JSON array string (e.g., ["Yes","No","Maybe"]) or CSV string (e.g., "Yes,No,Maybe"). Must contain 2 to 12 unique options.
  • Allow Multiple Answers — Boolean flag to allow recipients to select more than one option; defaults to false.

Output shape

a single JSON object returned by the WhatGHL API representing the result of the send poll action

The node returns the API response JSON under json field paired with the input item. The poll options input is normalized from string or array formats before sending. Throws errors if required inputs are missing or invalid (e.g., missing chatId, pollName, or invalid pollOptions length). Requires valid WhatGHL credentials (baseUrl and apiKey). Session selection parameters control which WhatsApp session sends the poll.

Links

Discussion