# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.whapi.cloud/help-desk/source-code/example-of-sending-and-processing-a-poll.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
