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

# Alert on CX regressions

> Configure external monitoring alerts for Voiceflow CX regressions with stable definitions, sample and coverage guards, actionable routing and recovery checks.

Start with a defined CX measure, comparable complete windows and an owner who will investigate its alert. This guide adds an external monitor and verifies its notification and recovery path.

The fictional returns review falls from **80% to 60% resolution** across two 20-conversation eligible populations. That is a **20 percentage-point** change to investigate, not proof that release `r2` caused it.

## Before you begin

- Complete [resolution tracking](/docs/guides/integrations/monitoring/track-resolution-and-escalation) or choose another explicitly defined measure.
- Keep project, Environment, intent, channel, timezone and classification rule comparable. Follow [native release review](/docs/guides/studio/monitoring/review-release-performance) for Voiceflow's release timeline and review controls.
- Have an approved notification destination, incident owner and recovery action. Use a staging monitor for this test.
- The [CX worked examples](/docs/examples/monitoring/cx-guides.zip) include `summaries.json`, with one reviewed aggregate per complete window.

## Build an actionable monitor

### 1. Choose the condition and evidence threshold

Write the operational decision first: who acts, which conversations they inspect, and whether the response is investigation, a configuration fix or a reviewed rollback.

For the demonstration only, alert when a complete review has resolution below **70%**, at least **20 eligible conversations**, and outcome coverage of at least **95%**. Choose production thresholds from your own workload and acceptable risk; these small fixture counts are not statistical assurance or recommended defaults.

Keep a separate telemetry/coverage check. Missing or unclassified data should not appear as a healthy resolution rate.

### 2. Produce one complete-window summary

Have the review/export owner reconcile the source conversation set before supplying the aggregate. The worked after-window snapshot includes:

```json
{
  "cx_review_id": "returns-after",
  "cx_window_start": "2026-11-19T00:00:00Z",
  "cx_window_end": "2026-11-20T00:00:00Z",
  "cx_conversation_count": 24,
  "cx_eligible_count": 20,
  "cx_resolved_count": 12,
  "cx_resolution_rate": 60,
  "cx_outcome_coverage": 100
}
```

This is the metric portion, not a complete publishable record. `summaries.json` includes the required IDs and common context. Validate it with `node publish.mjs summaries.json`; the developer adds `--send` only after checking approved data and server-held Datadog settings.

In a recurring implementation, the developer owns scheduling, complete-window selection and reliable delivery. Use an immutable review ID for each window/revision and filter to the intended current snapshot; reusing the same ID with changing values makes retries ambiguous.

### 3. Create the signal monitor

Open a submitted summary log in Datadog. Define `cx_eligible_count` as an integer facet, and `cx_outcome_coverage` and `cx_resolution_rate` as numeric measures. Numerical range filters require a numeric field definition. See [facet and measure setup](https://docs.datadoghq.com/logs/explorer/facets/).

Then open **Monitors → New Monitor → Logs**. For the staging signal test, use:

```text
service:voiceflow-agent env:staging @cx_environment:main @cx_project_id:northstar @cx_kind:summary @cx_review_id:"returns-after" @cx_eligible_count:>=20 @cx_outcome_coverage:>=95
```

Select the average of `cx_resolution_rate` and alert below **70**; the query is scoped to one immutable snapshot, so identical delivery retries do not change the value. Do not average different review windows to create an overall resolution rate.

### 4. Guard coverage and delivery

Create two additional Logs monitors for the same project/summary stream, without the signal's sample or coverage filters:

| Monitor | Measure and condition |
| --- | --- |
| Incomplete outcomes | `cx_outcome_coverage` below **95**. An incomplete window stays visible. |
| Missing export | Summary-log count below **1** over the expected export interval plus allowed delivery delay. Start ungrouped for one stream. |

Configure missing-data behavior explicitly: Datadog log monitors do not enter NO DATA by default. Only [indexed Standard Tier logs](https://docs.datadoghq.com/monitors/types/log/) participate. Route export/coverage problems separately from a measured outcome regression.

### 5. Route an alert someone can investigate

In the notification, name the measure, review/window, project/Environment, threshold and owner. Include the saved query and the [conversation investigation workflow](/docs/guides/integrations/monitoring/investigate-cross-system-failures). Use a permitted dashboard link, not customer text or credentials.

Separate severe immediate failures from slower quality/outcome reviews. Group by useful low-cardinality dimensions such as Environment or channel; do not create an alert group per customer, conversation or request ID.

### 6. Test alert, missing data and recovery

Use the staged 60% review to trigger the demonstration threshold, and verify the notification reaches its owner. Validate `alert-cases.json` with the publisher, then send its fictional low-coverage and healthy snapshots to the same staging destination. For the coverage test, select review `returns-low-coverage`: its 75% coverage should trigger the coverage monitor and fail the signal guard. For the missing-export test, use a separate test review with no submitted summary and wait for the configured interval and delay.

For this isolated fixed-review test, change the signal monitor's review filter from `returns-after` to `returns-healthy` to exercise recovery above 70%, then restore it. In a real recurring monitor, verify recovery using a later valid healthy window. Confirm both notifications and record the response procedure before enabling production routing.

## Record the alert contract

Retain the metric/rubric version, window definition, minimum sample, coverage guard, missing-data rule, notification owner and runbook. When a release or label definition changes, re-check those inputs before interpreting the trend.

Continue the investigation in the source conversations. Lower cost, fewer hand-offs or a higher score can still hide an unsuccessful customer experience.

## Troubleshoot noisy alerts

### A quiet channel pages the team

Distinguish low traffic from a broken export.

Set the expected cadence and minimum volume for that channel. Monitor the exporter/queue independently of customer volume. A zero-event period cannot by itself establish that the agent or channel is down.

### A release comparison changes after re-scoring

Check criterion version and cohort membership before attributing the movement.

Keep unchanged definitions and comparable complete windows. If judgments or source mappings were corrected, issue a new review revision and update the query intentionally. Preserve the earlier snapshot for audit; do not blend both versions into one result.
