> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.bitbybit.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Evaluate answers with AI Tests

> Run independent questions against the active agent, then review each answer and AI judge result.

Use **AI Tests** for repeatable, independent customer questions. Use [Playground](https://knowledge.bitbybit.studio/ai-studio/test-your-ai-agent-in-playground.md) when you need a multi-turn conversation.

> [!NOTE]
>
> AI Tests uses the **Active agent** selected when the run starts. An inactive agent open in the editor is not automatically the test target.

> [!WARNING]
>
> AI Tests simulates some actions, but not every connected tool is guaranteed to be isolated. A passing result does not prove that an order, payment, message, customer update, or automation completed.

**1. Create a test case**

1. Open **AI Studio > AI Tests** and select **Add new test case**.
2. Enter the test case name and optional description.
3. Add a **Customer question** and a specific **Expected answer or behavior**.
4. Add an approved customer profile only when the question requires customer context.
5. Select **Create test case**.

   ![Create test case form in AI Tests](https://mintcdn.com/asmaraku/2xYPAFMCKLkd3W4b/images/ai-studio/ai-tests-create-test-case.png?fit=max\&auto=format\&n=2xYPAFMCKLkd3W4b\&q=85\&s=5481f3e4fc9ff1071e624890705c9a3b)

**2. Add representative questions**

Select **Add new item** for each question. Include a normal request, an exception, missing information, and a request that should be handed to a person.

**3. Run the test**

1. Confirm the intended agent is active.
2. Select **Run test**.
3. Wait for the server-side run to finish. While it runs, question editing is unavailable.

**4. Review the results**

Check the pass summary and each question's **Last result**.

![Test case page with the pass summary and Last result for each question](https://mintcdn.com/asmaraku/2xYPAFMCKLkd3W4b/images/ai-studio/ai-tests-run-summary.png?fit=max\&auto=format\&n=2xYPAFMCKLkd3W4b\&q=85\&s=be7a8d9275a9bdab99166b34e990366f)

Open a question and compare **Customer asked**, **Expected answer or behavior**, **AI answered**, and **AI judge**.

![Question result showing the customer question, expected answer, AI answer, and AI judge note](https://mintcdn.com/asmaraku/2xYPAFMCKLkd3W4b/images/ai-studio/ai-tests-question-result.png?fit=max\&auto=format\&n=2xYPAFMCKLkd3W4b\&q=85\&s=5f3e3ff49e40717745b7fce4e643fa5f)

> [accordion] Understand the result labels
>
> * **Passed:** the evaluated answer met the written expectation.
> * **Needs attention:** the answer may be incomplete or only partially match.
> * **Failed:** the answer materially conflicts with the expectation.
> * **Couldn't run:** no completed result was available to score.
> * **Not run:** the question has no result yet.

> [accordion] Improve and repeat
>
> 1. Decide whether the problem is the answer, knowledge, instructions, or expected result.
> 2. Correct the appropriate configuration or test question.
> 3. Confirm the intended agent is still active, then run the test again.
> 4. Verify any consequential action separately before relying on it.

> [accordion] Troubleshooting and test history
>
> * **Run test is unavailable:** add a question or wait for the current run to finish.
> * **The wrong agent was tested:** check which agent was active when the run started.
> * **A run did not finish:** inspect the error and available results before selecting **Run again**.
> * Deleting a test case or question also deletes its run history. Review the confirmation before removal.

## Related articles

* [Test a multi-turn conversation in Playground](https://knowledge.bitbybit.studio/ai-studio/test-your-ai-agent-in-playground.md)
* [Configure AI agent skills](https://knowledge.bitbybit.studio/ai-studio/how-to-setup-skillset-in-ai-studio.md)
* [Activate and route your AI agent](https://knowledge.bitbybit.studio/ai-studio/getting-started-with-your-ai-agent.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.