> For the complete documentation index, see [llms.txt](https://help.gleantap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.gleantap.com/ai-chatbot/embed-your-ai-chatbot-widget.md).

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