> For the complete documentation index, see [llms.txt](https://docs.livecaller.io/livecaller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.livecaller.io/livecaller/services/online-chat/chat-integration.md).

# Chat Integration

First, log in to the LiveCaller administration panel. In the sidebar on the left, scroll all the way down until **My Widgets** appears. Once there, you can view existing widgets or create a new one.

<figure><img src="/files/PGA8KKOO3ZvbySYjiZq2" alt=""><figcaption></figcaption></figure>

To create a new widget, you need to:

* Assign a name to the widget (e.g., “Support Main Site”) – this helps you easily identify which site it is for.
* Specify the site/domain (Link) where the widget should operate.

Then, go to the configuration page, where you:

* Select the functionality (Live Chat / Voice Call)
* Set the visual appearance (color, position, etc.)
* Optionally configure a **Pre-Chat Survey** to collect user information

Finally, click the **Save** button.

***

LiveCaller provides you with a special script that needs to be placed on your website. This code is generated directly on the widget page.

<figure><img src="/files/3k9Dke0hKNg9gomLCYwQ" alt=""><figcaption></figcaption></figure>

***

#### How to add a widget to a website?

The script must be placed on every page where the widget should appear. It is recommended to insert the code just before the `</body>` tag to avoid interfering with page loading.

<figure><img src="/files/fTQKrTzCnkdji5h6aFCe" alt=""><figcaption></figcaption></figure>

***

After inserting the script, the LiveCaller widget should appear on the page.

<figure><img src="/files/PUS9QGNEzirEB9af1f3D" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.livecaller.io/livecaller/services/online-chat/chat-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
