Skip to content
Proud to collaborate with Microsoft for Startups

wasender.messages.send_poll ​

Send a poll message

Send a poll via POST /send-message.

Inputs:

  • cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
  • to: str — recipient (phone number, group JID, or channel ID).
  • question: str — the poll question text.
  • options: list — list of poll option strings.
  • multi_select: bool (optional) — allow selecting more than one option.

Outputs (terminal state_data):

  • message_id: str — provider-assigned ID of the sent message.
  • status: str — send status string.
  • to: str — echoed recipient.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-wasender
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Cloud connection holding the Wasender credential
tostringYes—Recipient — phone number, group JID, or channel ID
questionstringYes—The poll question text
optionslistYes—List of poll option strings
multi_selectbooleanNo—Allow selecting more than one option

Output Schema ​

FieldTypeRequiredDefaultDescription
message_idstringNo——
statusstringNo——
tostringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerintegerNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "wasender.messages.send_poll",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "to": "value",
    "question": "value",
    "options": "value"
  }
}