# WhatsApp Chat Widget

You can add a WhatsApp widget like below for free from Whautomate:

<figure><img src="/files/PWqeQ21i6SUINUktHsud" alt=""><figcaption><p>WhatsApp Widget </p></figcaption></figure>

#### Instructions

* Copy the code block below
* Make the necessary modifications to the fields as necessary
  * action
  * name
  * division
  * photo
  * introduction
  * defaultMessage
  * buttonText
* Add the code to the end of body tag to pages of your preference or footer of your website to add it to all pages.

{% hint style="info" %}
Reach out to us at  <support@whautomate.com> for any further assistance or issues.
{% endhint %}

{% code overflow="wrap" fullWidth="true" %}

```markup
    <form id="general-support" class="wa-widget" action="6593505083" data-chat="general-support"></form>
    <script src="https://widget.whautomate.com/js/whatsapp-widget.min.js"></script>
    <script>
        var head = document.getElementsByTagName('HEAD')[0];
        var link = document.createElement('link');
        link.rel = 'stylesheet';
        link.type = 'text/css';
        link.href = 'https://widget.whautomate.com/css/whatsapp-widget.min.css';
        head.appendChild(link);
        var generalSupport = new WhatsAppWidget(document.getElementById('general-support'), {
            name: 'Whautomate',
            division: 'typically replies within few minutes',
            photo:'https://whautomate.com/wp-content/uploads/2023/06/Fav-92x92-1.png',
            introduction: 'Welcome to Whautomate. How can I help you today?',
            defaultMessage: 'Hello there!',
            buttonText: 'Start chat'
        });
        generalSupport.toggle()
    </script>
```

{% endcode %}


---

# 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://help.whautomate.com/product-guides/whatsapp-chat-widget.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.
