# WhatsApp JS

<figure><img src="https://codecanyon.img.customer.envatousercontent.com/files/426239546/WhatsApp%20Chat%20JS%20-%20JavaScript%20Plugin-590x300.png?auto=compress,format&#x26;q=80&#x26;fit=crop&#x26;crop=top&#x26;max-h=8000&#x26;max-w=590&#x26;s=7dfcac285d31e750894c61b207c8a332" alt="WhatsApp JS documentation by Ninja Team"><figcaption></figcaption></figure>

To apply this documentation, buy this plugin: [WhatsApp Chat Widget Button JS - JavaScript Plugin](https://1.envato.market/WhatsApp-JS)

### Video Documentation&#x20;

{% embed url="<https://youtu.be/5YHAMNZ0EAw>" %}


---

# 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://ninjateam.gitbook.io/whatsapp-for-wordpress/developer-zone/whatsapp-js.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.
