> 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

Seamlessly embed the AI chat widget on your website by customizing the settings and inserting the provided code into your HTML.

1. **Access Live Chat Widget page**

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FKR9eluaZp0EaqycVWFsQ%2Funnamed%20(10).png?alt=media&amp;token=fa972fe6-c734-484f-8c4a-2bf888c7bf1e" 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="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2F1QsDvsWA5hIwymE7OumB%2FScreenshot%202024-10-30%20at%203.07.01%20PM.png?alt=media&amp;token=e0604c2c-ef93-4549-aadc-9ee31ed68291" alt=""><figcaption></figcaption></figure>

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FkUmJSS4OaI1A8XWad6rO%2FScreenshot%202024-10-30%20at%204.17.21%20PM.png?alt=media&amp;token=cd5550a7-5954-4dae-a713-38f3eb1be122" 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="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FDNx2iCN5KQMnCaXR9EJT%2FScreenshot%202024-10-30%20at%204.21.41%20PM.png?alt=media&amp;token=5328dc15-0fbe-4a41-afe4-361fe645fb05" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.gleantap.com/ai-chatbot/embed-your-ai-chatbot-widget.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
