# Adding the chat widget to your website

{% hint style="info" %}
A frontend web developer will need to complete these steps
{% endhint %}

{% hint style="warning" %}
It's strongly recommended to not use Google Tag Manager (GTM) to load our snippet as this is susceptible to being blocked by ad blockers and leads to slower widget loads.
{% endhint %}

1. Copy the snippet from our dashboard under Settings > Chat Agent
2. Insert the snippet inside the `head` tag on all pages of the website. This is usually done via a common `Header` component. Our script loads with the `defer` attribute so that it doesn't slow down any page loads.


---

# 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://docs.salesmonk.ai/setup/adding-the-chat-widget-to-your-website.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.
