> 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/test-your-ai-chatbot.md).

# Test Your AI Chatbot

Before enabling your Chatbot or embedding the widget on your website, you can test the AI Agent's ability to respond to customers using the knowledge you've provided.

1. **Click the 'Test AI Agent' Button**: the 'Test AI Agent' button can be found on any tab of the Configure AI screen.

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FG2c1S9TqbBBSOddsu9Sy%2FScreenshot%202024-10-30%20at%203.34.53%20PM.png?alt=media&amp;token=3be4dfc1-7e16-42ad-8a1e-95b3971fd512" alt="" width="375"><figcaption></figcaption></figure>

2. **Ask Questions or Send Messages**: A new page will open, allowing you to interact with the AI Agent. You can ask any questions or send messages to see how the AI Agent will respond.&#x20;

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FBuszVGv0Z8eVvarShDPD%2FScreenshot%202024-10-30%20at%203.38.31%20PM.png?alt=media&amp;token=8550b0eb-27df-45ba-8bf4-58736d4a3c0f" alt="" width="563"><figcaption></figcaption></figure>

## Test Your AI Chatbot Widget

Follow these steps to test how the Chatbot Widget will function on your website.

1. **Navicate to the Chatbot Widget page**

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FMHh4h5m5S4Jka0z0hBS8%2Funnamed%20(10).png?alt=media&amp;token=a092e5ca-b01c-4135-9bc1-0e7e0cfe5005" alt=""><figcaption></figcaption></figure>

2. **Preview the Chatbot Widget:** Open the preview page by clicking 'Click here to preview' and a new page will open.

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FbIjac7YEUsLu2hWyLoJr%2FScreenshot%202024-10-30%20at%203.54.04%20PM.png?alt=media&amp;token=6e49c50a-a3b0-485f-8211-84136341c737" alt=""><figcaption></figcaption></figure>

3. **Enter the URL or click the icon at the bottom right of the screen:** Enter the URL to preview the Widget on your website. Or, preview the Widget from this page by clicking the icon.&#x20;

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FL2RHjHfI5O8wnuuSVb0k%2FScreenshot%202024-10-30%20at%204.03.04%20PM.png?alt=media&amp;token=27a1e45c-ff44-4986-bf00-68e0b38d0f6a" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2F3wLyCSYgHZGjE2YKvY9h%2FScreenshot%202024-10-30%20at%203.59.55%20PM.png?alt=media&amp;token=2975fb0a-51c5-4c22-b2c2-c5461ee78e68" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2Fu0sIDwwuDiYYlSJJlk6u%2FScreenshot%202024-10-30%20at%204.06.19%20PM.png?alt=media&amp;token=a1e2e2c1-a201-4942-aa52-0ef5a7095916" alt="" width="563"><figcaption></figcaption></figure>

For instructions on adding custom links and starter questions to your Widget, follow [this link](/ai-chatbot/embed-your-ai-chatbot-widget.md).&#x20;


---

# 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/test-your-ai-chatbot.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.
