> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user/ai-dashboard/test-your-ai-agent.md).

# Test your AI Agent

### Step 1: Ensure Training Is Complete

* Make sure your AI agent has already been trained with your files, documents, or data before proceeding to the test.​

### Step 2: Access the Playground

* Go to the "playground" section in your platform where you can test AI agents.​

### Step 3: Select Your AI Agent

* In the playground, you'll see a list of your AI agents.​
* Choose the specific agent you wish to test (e.g., "Support Agent").​

### Step 4: Manage File Selection

* If the agent is trained with multiple files:
  * To get answers from all files, select "none" for file selection.​
  * To get answers from a single file, choose the specific file you want.​

### Step 5: Set Instructions and Defaults

* You can add instructions for the agent, such as its name, response style, or company details.​
* Define what the agent should reply if it does not find an answer in your files.​

### Step 6: Test Responses

* Type a query in the test area (e.g., "hi" or a question from your documentation).​
* Review the reply given by the agent, noting that you will also see the credits charged for each interaction.​

### Step 7: Monitor Credit Usage

* Each test query will show the amount of credits consumed; check pricing with support or sales teams if needed.

{% embed url="<https://youtu.be/fewuySw_bvM>" %}


---

# 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://helpdocumentation.gitbook.io/user/ai-dashboard/test-your-ai-agent.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.
