# Embed Your AI Chatbot Widget

1. **Access Live Chat Widget page**

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

2. **Fill out the Required Settings**: Switch the toggle to the on position, enter the bot information, custom design details, quick links (optional) and starter questions (optional). Save your updates.

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

<figure><img src="/files/XgKgQpxh2E9XBHGz8q9e" alt="" width="563"><figcaption></figcaption></figure>

3. **Embed the Code**: Once you have filled out all the settings, locate and copy the embed code provided. Paste the code into the HTML of the desired webpage where you want the chat widget to appear.

<figure><img src="/files/yVcol4EqbcbsVgk38ZZk" alt="" width="563"><figcaption></figcaption></figure>

You can test the functionality of the Chatbot and preview the Widget by following the instructions in [this article](/ai-chatbot/test-your-ai-chatbot.md).


---

# 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.gleantap.com/ai-chatbot/embed-your-ai-chatbot-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.
