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