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

# Performance monitoring

> Track latency, containment, and ASR accuracy – use dashboards and Wren for deep insights.

Monitor key metrics like response latency, containment rate, and ASR accuracy. Use dashboards for overview data and Wren for deep sampling across 500+ conversations to identify root causes of performance issues.

> [!TIP]
>
> Ask [Wren](https://docs.poly.ai/wren/analyze.md) to investigate performance issues at scale. Its **deep sampling** analyzes up to 500 conversations per query, helping you quickly identify root causes behind metrics like high handoff rates, low containment, or latency spikes – without manually reviewing individual calls.

## Quick reference

| I need to... | Where to go |
| - | - |
| Check overall performance | **Analytics > Dashboards** |
| Find slow responses | **Analytics > Conversations > Voice** → filter by latency |
| Debug ASR accuracy | **Analytics > Conversations > Voice** → Diagnosis → check transcription |
| Find knowledge gaps | **Analytics > Dashboards** → unhandled queries |
| Check function errors | **Analytics > Conversations > Voice** → filter by errors |
| Track version performance | Run an [experiment](https://docs.poly.ai/testing/experiments.md), then filter **Analytics** dashboards by **Experiment** |

## Key metrics

### Response latency

Time from when the user stops speaking to when the agent starts responding. Target: under 2 seconds.

**Common causes of high latency:** slow function execution, external API delays, complex knowledge retrieval, overly complex prompts.

### Containment rate

Percentage of calls handled without [human handoff](https://docs.poly.ai/voice-channel/handoffs.md). Target varies by use case (typically 60-90%). The inverse, handoff rate, is the primary metric for the [human-in-the-loop](https://docs.poly.ai/glossary/introduction.md#hitl-human-in-the-loop) portion of the agent's traffic.

**Common causes of low containment:** knowledge gaps, complex queries, caller preference for humans, technical errors.

### ASR accuracy

How accurately the agent transcribes what the caller says. Target: above 95% word accuracy.

**Common causes of low accuracy:** background noise, strong accents, uncommon words or jargon, poor phone connection.

## Monitoring tools

### Dashboards

Go to **Analytics > Dashboards** for high-level metrics: call volume, average duration, handoff rate, top intents, and performance trends. Filter by date range, environment, variant, or version.

### Conversation Review

Go to **Analytics > Conversations > Voice** to drill into individual calls. Search, filter, listen to recordings, review transcriptions, and toggle layers in the **Diagnosis** toggle group on the Transcription tab for technical details (function logs, knowledge retrieval, LLM prompts, timing breakdown).

### Wren

Ask [Wren](https://docs.poly.ai/wren/analyze.md) for deeper investigation. Its **deep sampling** capability analyzes up to 500 conversations per query, surfacing patterns across your data that would take hours to find manually. Launch it directly from dashboard charts using the **Generate insights** button, or open Wren and ask questions like *"Why are calls failing containment this week?"* or *"What do low-PolyScore calls have in common?"*

### Simulation tests

Use [test sets](https://docs.poly.ai/testing/simulation-tests.md) for automated regression testing and version comparison. Run them before publishing a Branch.

## Diagnosing common issues

### High latency

1. Filter **Analytics > Conversations > Voice** by high latency
2. Open **Diagnosis** → check the timing breakdown
3. Identify the bottleneck: function execution, knowledge retrieval, LLM generation, or TTS

**Fixes:** optimize slow functions, cache common audio phrases, switch to a faster TTS provider, simplify knowledge sources, add [delay controls](https://docs.poly.ai/tools/delay-control.md).

### Low ASR accuracy

1. Review transcriptions in Conversation Review
2. Compare to audio recordings
3. Look for patterns (specific words, accents, noise)

**Fixes:** add custom vocabulary, adjust ASR sensitivity, add clarification prompts for ambiguous input.

### Knowledge gaps

1. Check **Analytics > Dashboards** → unhandled queries
2. Review common questions without answers in Conversation Review
3. Use [Wren's deep sampling](https://docs.poly.ai/wren/analyze.md) to identify gaps at scale – try: *"What questions are we not handling well?"* or *"Where does the agent give incorrect or incomplete answers?"*

**Fixes:** add missing topics to [FAQs](https://docs.poly.ai/knowledge/faqs/introduction.md), add [Sources](https://docs.poly.ai/knowledge/sources/introduction.md) sources, improve topic descriptions for better retrieval.

### Function errors

1. Filter **Analytics > Conversations > Voice** by errors
2. Review **Diagnosis** → function logs

**Fixes:** fix code, update API credentials, add error handling and retries, add logging with `conv.log` for better debugging.

### High handoff rate

1. Check **Analytics > Dashboards** → handoff metrics
2. Review handoff reasons for patterns
3. Ask [Wren](https://docs.poly.ai/wren/analyze.md): *"What are the top 5 reasons conversations are transferred to a human agent?"* – deep sampling gives you a percentage breakdown across hundreds of calls

**Fixes:** add knowledge for common handoff reasons, adjust handoff rules, add self-service options before handoff.

## Optimization quick wins

| Area | Quick wins |
| - | - |
| **Latency** | Cache common audio, switch to Cartesia TTS, use Turbo interaction mode, optimize slow functions |
| **ASR** | Add custom vocabulary, use clarification prompts, enable noise cancellation |
| **Containment** | Add missing knowledge, improve handoff rules, clarify agent capabilities upfront |
| **Quality** | Fix pronunciations, improve response clarity, test with real users |

## Debugging toolkit

All debugging tools available in Agent Studio:

| Tool | Purpose | Where to find it |
| - | - | - |
| [Diagnosis layers](https://docs.poly.ai/analytics/conversations/diagnosis.md) | Inspect tool calls, knowledge retrieval, LLM prompts, and latency per turn | **Analytics > Conversations > Voice** → select a call → Transcription tab → Diagnosis |
| [`conv.log`](https://docs.poly.ai/tools/classes/conv-log) | Add structured logging (info, warning, error) from Python functions | Function code → appears in Diagnosis |
| [`conv.log_api_response()`](https://docs.poly.ai/tools/classes/conv-object#log_api_response) | Log full HTTP responses from API integrations for debugging | Function code → appears in Diagnosis |
| [Simulation tests](https://docs.poly.ai/testing/simulation-tests.md) | Automated regression testing across versions | **Testing** |
| [Alerts API](https://docs.poly.ai/api-reference/alerts/introduction.md) | Automated alerts for latency, errors, and call volume anomalies | API configuration |
| [Wren](https://docs.poly.ai/wren/analyze.md) | AI-powered analysis across up to 500 conversations | **Wren** |
| [Dashboards](https://docs.poly.ai/analytics/dashboards/introduction.md) | High-level metrics: call volume, latency, handoff rates, containment | **Analytics > Dashboards** |

## Related pages

* [Analyze conversations](https://docs.poly.ai/wren/analyze.md) – AI-powered conversation analysis with deep sampling
* [Health checks](https://docs.poly.ai/learn/maintain/health-checks.md) – proactive monitoring routines
* [QA and analytics](https://docs.poly.ai/learn/maintain/qa-analytics.md) – daily dashboard and conversation review workflows
* [Function maintenance](https://docs.poly.ai/learn/maintain/tool-maintenance.md) – debugging and optimizing functions
* [Alerts API](https://docs.poly.ai/api-reference/alerts/introduction.md) – automated alerts for latency, errors, and call volume
