> For the complete documentation index, see [llms.txt](https://learning.contextqa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/quickstart.md).

# Run Your First AI Agent Evaluation

Connect an AI agent, build a reviewed evaluation project, select metrics and judges, and inspect the evidence from your first run.

> **Documentation owner:** [Deep Barot](https://contextqa.com/academy/) · **Last updated:** November 12, 2026

## Quick answer

To run an AI agent evaluation in ContextQA, connect the target agent, create a project, review generated personas and use cases, prepare test cases, and choose scoring criteria. Start an Evaluation run with a configured judge preset, then review each case’s evidence and reasoning before deciding whether the workflow passes.

## Key takeaways

* Start with one bounded business workflow and a small reviewed case set.
* Generated personas, use cases, and tests need review against the source requirements.
* A run requires a target agent and an applicable judge configuration.

## Before you start

Prepare access to [the evaluation workspace](https://ai.contextqa.com/dashboard), a test agent or endpoint, and a short description of one workflow. Include its allowed actions, required inputs, forbidden actions, success conditions, and fallback behavior. Use test accounts and disposable records for mutating workflows.

You can complete project, persona, use-case, test-case, and scoring design before a target exists. Follow [specification-to-test design](https://learning.contextqa.com/contextai-mcp/contextai-mcp/spec-to-tests.md), then return to connection setup when you need execution. A running agent is a prerequisite for the run, not for all earlier design work.

## 1. Connect the target

Open **Agents → New Agent**, choose the matching platform, and enter the connection details requested by that form. Use [Connect agents](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/connect-agents.md) to select the correct route. Check the intended environment before using a connection test: it may contact the agent or place a real call.

## 2. Create and describe the project

Open **Projects**, create a project, and select the appropriate testing modality where prompted. Open **QuickStart**. The guided sequence is **Upload Documents → Personas → Review Use Cases → Generate Tests**. Supply the relevant workflow description or supported requirements documents; remove unrelated material that could produce irrelevant scenarios.

A useful brief answers: Who is the user? What outcome do they need? Which inputs must be confirmed? Which systems may change? When must the agent escalate?

## 3. Review personas and use cases

Review generated personas for differences that matter: patience, familiarity, communication style, and willingness to correct mistakes. These are test conditions, not claims about real demographic groups.

On **Review Use Cases**, add steering guidance if necessary and choose **Analyze & Propose Use Cases**. Review the proposals and their metric assignments. Inspect explanations for skipped material. Choose **Confirm and Continue** when the selected coverage reflects the requirements. Skipping this stage should be a deliberate decision with coverage tracked elsewhere.

![QuickStart use-case review with steering guidance, analysis, and confirmation controls](https://4255556216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKlyaXxb76z3Dn47TrZkU%2Fuploads%2Fgit-blob-1c619a27016a31b478003a5291ae9247f3f14e85%2Fquickstart-use-cases.jpg?alt=media)

## 4. Generate and inspect cases

Generate tests for the selected use cases. Use dynamic cases for a simulated caller or user that adapts to the conversation; use static cases when you need prescribed user turns. Review the goal, inputs, expected outcome, and stopping conditions. Add explicit correction, fallback, and negative cases using [test design guidance](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/design-test-cases.md).

## 5. Configure scoring

Open **Metrics** and enable the criteria that establish success for this workflow. Add a custom rubric for business-specific requirements. Use [metrics and judges](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/metrics-and-judges.md) to separate semantic judgment from exact checks. Configure [verifier tools](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/verify-tool-actions.md) if the outcome depends on persisted state.

Before execution, confirm [backend write isolation and effective permissions](https://learning.contextqa.com/contextai-mcp/contextai-mcp/connections-and-safe-execution.md). Synthetic callers do not automatically make downstream operations read-only.

## 6. Start an Evaluation run

Open **Runs → New Run**. Select the agent, use **Evaluation**, choose the case scope, and confirm the judge configuration. The project preset applies unless overridden; the workspace default is the fallback. Without either a usable preset or explicit configuration, the run cannot start. Review the displayed estimate before starting.

The scope controls above describe the UI. MCP `start_run` accepts only project and agent IDs; it cannot take those filters or a per-run judge override. Use the [MCP reference](https://learning.contextqa.com/contextai-mcp/contextai-mcp.md) for automation.

## 7. Review the result

Open the completed run and inspect individual cases, metric outcomes, available conversation or audio evidence, and judge reasoning. The onboarding workflow also describes **All Results**, **By Metric**, and PDF or spreadsheet reporting. Verify which export options are available in your workspace.

Expected outcome: a reviewable evaluation of the selected workflow, including failed and inconclusive cases. Do not equate a successful run execution with a passing agent. Continue with [runs and regression](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/runs-and-regression.md) to establish a repeatable baseline.


---

# 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://learning.contextqa.com/ai-agent-testing/agent-evaluation/quickstart.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.
