Create Interactive Polls with OpenClaw in Seconds
Getting a quick vote from your team often turns into a long thread of messages that are hard to track. If you are building automation, you want a way to trigger these polls without worrying about the underlying API differences of each chat platform.
Supported channels
Section titled “Supported channels”You can currently send polls to these platforms:
- WhatsApp (web channel)
- Discord
- MS Teams (Adaptive Cards)
If you prefer the command line, you can fire off a poll with a single command. Here are the examples for each channel:
# WhatsAppopenclaw message poll --target +15555550123 \ --poll-question "Lunch today?" --poll-option "Yes" --poll-option "No" --poll-option "Maybe"openclaw message poll --target 123456789@g.us \ --poll-question "Meeting time?" --poll-option "10am" --poll-option "2pm" --poll-option "4pm" --poll-multi
# Discordopenclaw message poll --channel discord --target channel:123456789 \ --poll-question "Snack?" --poll-option "Pizza" --poll-option "Sushi"openclaw message poll --channel discord --target channel:123456789 \ --poll-question "Plan?" --poll-option "A" --poll-option "B" --poll-duration-hours 48
# MS Teamsopenclaw message poll --channel msteams --target conversation:19:abc@thread.tacv2 \ --poll-question "Lunch?" --poll-option "Pizza" --poll-option "Sushi"Options:
--channel:whatsapp(default),discord, ormsteams--poll-multi: allow selecting multiple options--poll-duration-hours: Discord-only (defaults to 24 when omitted)
Gateway RPC
Section titled “Gateway RPC”For those building integrations, the poll method is available via the Gateway RPC.
Method: poll
Params:
to(string, required)question(string, required)options(string[], required)maxSelections(number, optional)durationHours(number, optional)channel(string, optional, default:whatsapp)idempotencyKey(string, required)
Channel differences
Section titled “Channel differences”Each platform handles polls differently, so keep these limits in mind:
- WhatsApp: 2-12 options,
maxSelectionsmust be within option count, ignoresdurationHours. - Discord: 2-10 options,
durationHoursclamped to 1-768 hours (default 24).maxSelections > 1enables multi-select; Discord does not support a strict selection count. - MS Teams
OpenClaw Expert
Still stuck?
If this page didn't answer your case, ask OpenClaw Expert for step-by-step guidance.