# Test Your AI Chatbot

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="/files/fr0NDEVzC7uhEArtrG91" 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="/files/i4fMy6lukpiTz87BsYPs" 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="/files/atpMtgZkA5LvJt1HQVeG" 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="/files/Gqb5RSaWmbRJ2NgfZw6K" 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="/files/mVNImi08Q0WY2SZuAQbg" alt="" width="563"><figcaption></figcaption></figure>

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

<figure><img src="/files/mXmi1SBo3hbPCyrDOE0O" 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: 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/test-your-ai-chatbot.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.
