> ## 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.

# Monitor answer quality

> Track reviewed Voiceflow answer-quality results in an external monitoring platform while preserving criterion versions and scoring coverage.

Use this workflow when you have approved support-policy facts, permission to review conversations and a monitoring connection. The CX owner defines and checks the judgment; the developer exports the approved labels; the monitoring owner builds the view.

The example checks a fictional returns policy and exports **24 judgments**, including four unassessed cases. It does not claim that connecting Datadog automatically exports Voiceflow Evaluations or conversation content.

## Before you begin

- A bounded conversation set and the policy version that applied to it.
- Reviewed judgments from people or a verified evaluator. For Voiceflow's native setup and historical scoring, follow [Check support-policy answers](/docs/guides/studio/monitoring/check-support-policy).
- A connected destination. The worked path uses [Datadog Logs](/docs/guides/integrations/datadog/overview#connecting-datadog) and the [CX worked examples](/docs/examples/monitoring/cx-guides.zip).

## Create a useful quality signal

### 1. Define the question and evidence

Start with one failure that matters to the customer. The example uses this rubric, named `return-policy-v1`:

```text
Policy: unused items may be returned within 30 days of delivery.
After 30 days, offer specialist review without promising eligibility.

Pass: policy claims and the proposed next action match these facts.
Fail: the answer contradicts a fact or promises an ineligible return.
Not assessed: the question is inapplicable or required evidence is missing.
```

Assess the actual response, relevant policy facts and tool result. A fluency or friendliness score cannot establish policy correctness. Version the criterion when its meaning changes.

### 2. Check the judge before scaling

Have a reviewer label a small set containing a correct answer, a policy contradiction and an insufficient-evidence case. Compare an automated evaluator with those labels before using it across production traffic. For example, a guaranteed 60-day return contradicts this policy; a case without the relevant response stays unassessed.

Review disagreements and refine the rubric. If scoring only a sample, record how it was selected and keep that population consistent. Add a random sample alongside flagged failures so the review does not silently become a failure-only rate. Additional model scoring may incur cost.

### 3. Export judgments with their identity

Ask the developer or review owner to map approved results into `quality.json`. The example contract requires the common project/review/Environment/release/channel fields, an opaque `cx_conversation_id`, and:

| Field | Example | Purpose |
| --- | --- | --- |
| `cx_kind` | `quality` | Separates judgments from business outcomes. |
| `cx_criterion` | `return-policy-v1` | Identifies the exact rubric. |
| `cx_verdict` | `pass`, `fail`, `not_assessed` | Retains missing or inapplicable assessments. |
| `cx_evidence_ref` | `judgment-017` | Maps to an authorized result and its reasoning. |
| `event_id` | A stable assessment ID | Keeps one immutable assessment per conversation and criterion in this review. |

The example publisher rejects a second judgment for the same conversation/criterion in one review file, even with a new event ID. Use a new review ID for corrected judgments; your source system must preserve this rule across exports.

These are your export fields, not native Evaluation API paths. Preserve the original result and access checks in its source system. Keep raw answers and reasoning there unless your team separately approves their export.

### 4. Publish and inspect the quality view

From the extracted examples' `cx` directory, validate the fictional file locally:

```bash
node publish.mjs quality.json
```

After the developer checks server-held Datadog settings and approved data, add `--send` to submit to the staging destination. In **Logs → Explorer**, use:

```text
service:voiceflow-agent env:staging @cx_environment:main @cx_project_id:northstar @cx_review_id:"returns-after" @cx_kind:quality @cx_criterion:"return-policy-v1"
```

Use unique conversation counts, adding a string facet for `cx_conversation_id` if needed: pass rate is `pass / (pass + fail)`, and assessment coverage is `(pass + fail) / all selected conversations`. The sample yields **16 / 20 = 80% pass**, **20 / 24 = 83.3% assessed**, with four failures and four unassessed cases. Do not turn unassessed cases into failures or passes.

## Turn the finding into a review

Open a failed assessment through `cx_evidence_ref`. Compare the actual answer with the policy and tool evidence. Record whether the problem was missing Knowledge, incorrect reasoning, a failed action or the criterion itself. Follow [cross-system investigation](/docs/guides/integrations/monitoring/investigate-cross-system-failures) when a tool or destination contributed.

The workflow is complete when the monitoring view matches the source counts and a reviewer can reproduce a specific failure. A high pass rate alone does not establish that the customer's task completed.

## Troubleshoot the scores

### The score changes after a rubric edit

Keep different criterion versions out of the same comparison.

Use a new criterion ID for changed meaning. Re-score a bounded shared sample under both versions if you need to understand the difference. Do not report a new rubric's higher score as an agent improvement. Keep batch costs and source-result retention visible to the review owner.

### Only the bad conversations were assessed

Separate diagnostic selection from a representative quality measure.

Flagged cases help diagnose failures but do not estimate the overall pass rate. Keep the flagged view and representative sample separate, show each selection rule, and report coverage. Consult [online evaluation guidance](https://langfuse.com/docs/evaluation/get-started/online) when choosing sampling and assessment targets in your destination.
