> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/source-code/example-of-sending-and-processing-a-poll.md).

# Example of sending and processing a Poll

### Creating polls as an alternative to interactive buttons in WhatsApp

Interactive buttons in WhatsApp are a very handy tool for working with customers. For the user, polls and interactive buttons are functionally similar. And the mechanism of working with a poll is very similar to that of buttons. We have prepared a simple and easy to understand source code for you to implement in your survey response integration or bot.

#### A detailed article on how to use polls as buttons in WhatsApp:

<https://support.whapi.cloud/help-desk/how-to/how-to-use-polls-as-buttons>

{% embed url="<https://github.com/Whapi-Cloud/whatsapp-api-send-poll-example>" %}
Simple and straightforward source code that you can use in your integration or survey response bot.
{% endembed %}
