Scope of this guide. This guide covers building and iterating on individual metric definitions — naming, typing, setting triggers, and optimising via the feedback loop. For configuring project-level success criteria — pass/fail thresholds, AND/OR logic across multiple metrics, and which metrics determine overall evaluation success — see Rubric Configuration.
Prerequisites
Before building, clarify exactly what you are tracking. Understand the terminology used during monitoring:- Main Agent: Your AI agent (the one being tested).
- Testing Agent: The simulated user interacting with your agent.
Step 1: Metric Definition
Navigate to the Metrics section and select Create Metric.- Name & Type: Give your metric a descriptive name (e.g.,
Correct End Call by Main Agent). Select the Metric Type (usually Binary for pass/fail checks). - Success Impact: Toggle Add to rubric rule to include this metric in your project’s call-success rubric. Only metrics in the rubric contribute to a call’s pass/fail outcome — fine-tune the threshold afterwards under Settings → Rubric.
- Description (The Prompt): Write a natural language description of what constitutes success.
The toggle above marks this individual metric as critical. To configure project-level success criteria — defining pass/fail thresholds, combining multiple metrics with AND/OR logic, and controlling which metrics determine overall evaluation success — see Rubric Configuration.
Step 2: Set Triggers
Define when the metric should run under the Evaluation Trigger section.- Always: Runs on every call (default).
- Custom: Use logic to run metrics only in specific scenarios (e.g.,
return Trueonly if the agent is attempting to book an appointment).
Step 3: Initial Validation (Test Metric)
Before saving, validate your logic immediately within the builder.1
Click Test Metric
Navigate to the test section within the metric builder.
2
Select Call IDs
Select a few past Call IDs from the list to test against.
3
Run the Test
Run the test to see if the metric passes/fails as expected on historical data.
4
Create Metric
If satisfied with the results, click Create Metric to save.
Step 4: The Feedback Loop (Observability)
This is the most critical step for accuracy. You must “teach” the metric by providing ground-truth data.1
Navigate to Observability
Go to the Observability tab in your dashboard.
2
Run Metric on Calls
Select a batch of calls and run your new metric on them with the help of Re-evaluate Metrics button in top right.
3
Review Results
Look for false positives or false negatives in the metric results.
4
Provide Feedback
For calls where the metric verdict was incorrect:
- Click on the call
- Click on 👎🏻 next to the metric of concern
- Write an Explanation: In the feedback box, detail why the metric was wrong
- Click Add to Lab
Best Practice: Repeat this process for at least 6 calls to create a robust dataset for optimization.
Step 5: Optimization (Labs)
Once you have annotated data (feedback), use the Labs feature to auto-optimize the metric.1
Navigate to Labs
Navigate to Labs and select your metric.
2
Review Current Performance
You will see your annotated examples and the current “Overall Score” against your human feedback.
3
Auto Improve
Click Auto Improve.The system will use your feedback and explanations to rewrite the metric’s internal logic/prompt to handle the edge cases you identified.
4
Verify & Save
- Review the View Changes (once optimization is complete) screen to see the old vs. new logic
- Check the new score (e.g., improving from 0/6 to 6/6)
- Click Save to push the optimized metric to production
Summary of Workflow
The complete workflow for building high-fidelity metrics follows this iterative process:- Draft: Create a basic description and logic.
- Test: Run on historical calls.
- Annotate: Correct mistakes manually and explain the why.
- Optimize: Use “Auto Improve” to let the system refine the prompt based on your annotations.
Next Steps
- Learn about custom metrics
- Explore predefined metrics
- Set up instruction following metric
- Use Metric Lab to optimize your metrics