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

# Add your first metric

> Create a metric and attach it to a run, end to end.

A metric only does something once it's attached to a run. There are two ways to get started: use one of Coval's built-in metrics, or create your own.

## Use a built-in metric

Every run lets you pick which metrics to track — you don't have to create anything first.

**1. Launch an evaluation**

Open **Simulated** in the sidebar and start a run as usual (agent, persona, test set). See [Simulated Conversations](https://docs.coval.ai/concepts/simulations/overview.md#launching-simulated-conversations).

**2. Choose metrics to track**

In the launch panel, pick one or more built-in metrics — for example **Latency**, **End Reason**, or **Transcript Sentiment**. Not sure which? See [Choose a metric](https://docs.coval.ai/concepts/metrics/choose-a-metric.md).

**3. Read the results**

When the run finishes, open it from the Simulated Conversations page (see [Runs & Schedules](https://docs.coval.ai/concepts/runs/overview.md)). Each simulation shows a metric card with its score; click into a simulation to see the score explained against the transcript.

## Create your own metric

When the built-ins don't capture your exact success criteria, author a custom metric. The most common starting point is a **Text LLM Judge** asking a yes/no question about the transcript.

![Creating an LLM judge metric](https://mintcdn.com/coval-2e18a559/oV9yhNYQnCi_NB6G/images/metrics/create-llm-judge-light.gif?s=dbfcf7ef35a64eccacc69ffa9c03846f)

**1. Open Metrics and add a new one**

Go to **Metrics** in the sidebar and click **Create Metric**.

**2. Pick a metric type**

Choose the type that fits what you're measuring. For a yes/no check, pick **Text LLM Judge**. If the question requires investigating conversation and execution evidence, select [Agentic mode](https://docs.coval.ai/concepts/metrics/judge-modes.md#agentic-mode) when you configure the judge. For a precise numeric rule over conversation data, choose [Custom SQL](https://docs.coval.ai/concepts/metrics/sql-metrics.md). Browse all types in the [Metric Library](https://docs.coval.ai/concepts/metrics/overview.md#the-metric-library).

**3. Configure it**

Give the metric a name and supply what that type needs — a prompt for an LLM judge, a pattern for a regex check, or a threshold for a numeric metric. For prompts, follow [Write judge prompts](https://docs.coval.ai/concepts/metrics/writing-judge-prompts.md).

```
Given the transcript, did the assistant confirm the appointment date and time
before ending the call?

Return YES if the assistant restated both the date and the time and the user
acknowledged them. Return NO otherwise.
```

**4. Test and refine**

Open the metric and click **Test Metric** to run it against real transcripts and check how often it returns YES vs. NO. Tighten the wording until results are consistent. The strongest signal here is [human review](https://docs.coval.ai/concepts/metrics/human-review/human-review).

**5. Attach it to a run**

Save the metric, then select it when you launch your next evaluation — exactly like a built-in. Its scores appear alongside the others in the run results.

## Where to go next

> [card] [Choose a metric](https://docs.coval.ai/concepts/metrics/choose-a-metric.md)
>
> Find the right metric for what you want to measure.

> [card] [Write judge prompts](https://docs.coval.ai/concepts/metrics/writing-judge-prompts.md)
>
> Make your LLM-judge metrics reliable.

> [card] [Configure metrics](https://docs.coval.ai/concepts/metrics/configuring-metrics.md)
>
> Template variables, transcript scope, trace context, thresholds.

> [card] [Metric Library](https://docs.coval.ai/concepts/metrics/types/deterministic.md)
>
> Every metric type, in depth.


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