Is it possible to create surveys using OpenWA? #890
|
Background: I collect free food from supermarkets and share them with peoples. I ask them if they come to collect and use the survey functionality for that: Will you come?
[ ] 👍
[ ] 👎 |
Answered by
rmyndharis
Jul 24, 2026
Replies: 2 comments
|
Hi @rorar — yes, OpenWA supports this natively. What you're describing maps to a WhatsApp poll, exposed via the For your use case: {
"chatId": "<recipient-group-or-contact-id>",
"name": "Will you come?",
"options": ["Yes 👍", "No 👎"],
"allowMultipleAnswers": false
}curl -X POST "$BASE/api/sessions/my-session/messages/send-poll" \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{ "chatId": "<id>", "name": "Will you come?", "options": ["Yes 👍", "No 👎"] }'Recipients tap an option to vote and the result tallies automatically inside WhatsApp — no need for the markdown A few notes:
Full reference: |
0 replies
Answer selected by
rorar
|
Thank you :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @rorar — yes, OpenWA supports this natively. What you're describing maps to a WhatsApp poll, exposed via the
POST /api/sessions/:sessionId/messages/send-pollendpoint.For your use case:
{ "chatId": "<recipient-group-or-contact-id>", "name": "Will you come?", "options": ["Yes 👍", "No 👎"], "allowMultipleAnswers": false }Recipients tap an option to vote and the result tallies automatically inside WhatsApp — no need for the markdown
[ ]checkbox style, which isn't …