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

# Evaluation webhook events

> Subscribe to transcript and batch evaluation results. Interpret evaluation status, retries, attempts and batch identifiers in project webhooks.

Evaluation webhooks report the outcomes of evaluations run against transcripts. Configure them on the project's endpoint in **Settings → Monitoring** (or **Settings → Webhooks** before monitoring is enabled). They use that endpoint's signing secret; follow [request verification](/docs/api-reference/webhooks/overview#receiving-events) before processing a payload.

## Choose an event

| Event | What it establishes |
| --- | --- |
| [`runtime.session.end`](/docs/api-reference/webhooks/session-lifecycle#runtime-session-end) | The conversation ended and its logs and duration were written. Evaluations can still be pending. |
| [`transcript.evaluated`](#transcript-evaluated) | Every evaluation queued when the session ended has run once. Some results can still be `retrying`. |
| [`transcript.evaluation.completed`](#transcript-evaluation-completed) | One evaluation finished one run against one transcript, including a later result from an automatic retry. |
| [`transcript.evaluation.batch.completed`](#transcript-evaluation-batch-completed) | A batch started from the app or API finished its queued work. Check its status and counts for incomplete results. |

Webhook delivery is not ordered. Do not require the session event, transcript summary, individual results or batch event to arrive in a particular sequence. A later successful retry sends another per-evaluation event; it does **not** send a second `transcript.evaluated` summary.

## Subscribe to evaluation events

Choose **Listen for specific events** in **Settings → Monitoring** (or **Settings → Webhooks** before monitoring is enabled), then select the events you need under **Evaluation events**:

- **Transcript evaluated** — `transcript.evaluated`.
- **Evaluation completed** — `transcript.evaluation.completed`.
- **Evaluation batch completed** — `transcript.evaluation.batch.completed`.

Wait for **Saved**. None of these three events is included in **Listen for all events**. Selecting a category or individual event is an explicit subscription. Allow up to 60 seconds for a subscription change to reach the evaluation sender's cache.

## Envelope and transcript identifiers

Each JSON payload below includes all fields for that event. The IDs and evaluation results are illustrative.

| Field | Meaning |
| --- | --- |
| `type` | Event discriminator. Route to the matching payload contract below. |
| `data` | The event-specific object. |
| `time` | Event dispatch time in Unix milliseconds. |
| `resource` | Project endpoint identifier: `project-{projectID}`. |

The two transcript events share `data.transcriptID`, `data.sessionID`, `data.projectID` and `data.environmentID`, all strings. `data.projectEnvironmentID` is also present and is a string or `null`. Use the returned identifiers to correlate records; do not infer an Environment alias from an ID. `endedAt`, `evaluatedAt`, `startedAt` and `completedAt` are Unix milliseconds.

## Evaluation result shapes

Every evaluation entry has `evaluationID`, `name`, `type` and `status`. Its `type` is `boolean`, `number`, `string` or `option`. The status selects the remaining fields:

| `status` | Additional fields | Interpretation |
| --- | --- | --- |
| `succeeded` | `value` and `reason` | `value` is a boolean, number or string; `reason` is a string explaining the result. |
| `retrying` | None | The evaluation will run again automatically. This is not a successful result or a terminal failure. |
| `failed` | `error` | The run failed with `bad_request`, `exceeds_context_window`, `invalid_llm_response` or `internal_error`. |

`retrying` and `failed` entries do not contain `value` or `reason`; a succeeded entry does not contain `error`.

| `trigger` | What started this run |
| --- | --- |
| `session` | The session ended. |
| `ui` | A batch was started from the app. |
| `api` | The public API, MCP or a single synchronous evaluation run. |
| `retry` | An automatic retry or fallback retry job. |

The transcript summary always has `trigger: "session"`. A batch completion has `ui` or `api`; a per-evaluation event can have any of the four values.

## `transcript.evaluated`

Sent once for an ended session after every evaluation queued at session end has run once. `evaluations` contains all those outcomes, including retrying or failed entries. If no evaluations were queued, the event is sent with `evaluations: []`. `endedAt` records the session end; `evaluatedAt` records when the summary was produced.

```json
{
  "type": "transcript.evaluated",
  "data": {
    "transcriptID": "66a000000000000000000004",
    "sessionID": "66a000000000000000000004",
    "projectID": "66a000000000000000000001",
    "environmentID": "66a000000000000000000002",
    "projectEnvironmentID": "66a000000000000000000003",
    "trigger": "session",
    "endedAt": 1796313600000,
    "evaluatedAt": 1796313660000,
    "evaluations": [
      {"evaluationID":"66a000000000000000000005","name":"Customer satisfied","type":"boolean","status":"succeeded","value":true,"reason":"The customer confirmed the answer helped."},
      {"evaluationID":"66a000000000000000000006","name":"Conversation summary","type":"string","status":"retrying"},
      {"evaluationID":"66a000000000000000000007","name":"Resolution","type":"option","status":"failed","error":"exceeds_context_window"}
    ]
  },
  "time": 1796313660010,
  "resource": "project-66a000000000000000000001"
}
```

Creating or enabling an evaluation does not itself produce this event or evaluate historical transcripts. Start an eligible new session or explicitly queue existing transcripts.

## `transcript.evaluation.completed`

Sent each time one evaluation finishes running on one transcript, regardless of what started it. `evaluation` uses one of the result shapes above. `evaluatedAt` records this run's result time.

`attempt` is the number of stored failures for this evaluation/transcript pair plus one: the first run has attempt `1`. It is not the webhook delivery-attempt count. `batchID` is a string when the run belongs to a tracked batch, otherwise `null`.

This example is the later successful retry of Conversation summary from the preceding transcript summary. It does not cause that summary to be sent again.

```json
{
  "type": "transcript.evaluation.completed",
  "data": {
    "transcriptID": "66a000000000000000000004",
    "sessionID": "66a000000000000000000004",
    "projectID": "66a000000000000000000001",
    "environmentID": "66a000000000000000000002",
    "projectEnvironmentID": "66a000000000000000000003",
    "trigger": "retry",
    "attempt": 2,
    "batchID": null,
    "evaluatedAt": 1796313720000,
    "evaluation": {"evaluationID":"66a000000000000000000006","name":"Conversation summary","type":"string","status":"succeeded","value":"The customer received an answer to their support question.","reason":"The transcript contains a resolved support exchange."}
  },
  "time": 1796313720010,
  "resource": "project-66a000000000000000000001"
}
```

## `transcript.evaluation.batch.completed`

Sent once when the queued work for an app- or API-started batch has finished. The batch has `batchID`, `projectID`, `trigger`, `status`, `evaluationIDs`, `startedAt`, `completedAt` and `counts`. `evaluationIDs` lists the string IDs requested for that batch. A batch spans transcripts and does not have one shared session or Environment identifier.

| Batch `status` | Meaning |
| --- | --- |
| `succeeded` | At least one evaluation succeeded and none was retrying, failed or skipped. |
| `partial` | At least one succeeded and at least one was retrying, failed or skipped. |
| `failed` | No evaluation succeeded. |

`counts.transcripts` counts queued transcripts. The other counts describe evaluation runs: `succeeded`, `retrying`, `failed` and `skipped`. Skipped work includes work held back by queue throttling or work that never ran, such as a deleted transcript. These counts describe the batch completion, not the eventual outcome of later retries.

The following independent example is an API batch of three evaluations across two transcripts: six evaluation runs in total.

```json
{
  "type": "transcript.evaluation.batch.completed",
  "data": {
    "batchID": "8b7da2c2-66a4-4bc7-86aa-6f44a75a11f1",
    "projectID": "66a000000000000000000001",
    "trigger": "api",
    "status": "partial",
    "evaluationIDs": ["66a000000000000000000005","66a000000000000000000006","66a000000000000000000007"],
    "startedAt": 1796313800000,
    "completedAt": 1796313860000,
    "counts": {"transcripts":2,"succeeded":4,"retrying":1,"failed":1,"skipped":0}
  },
  "time": 1796313860010,
  "resource": "project-66a000000000000000000001"
}
```

### Correlate a queued batch

For the direct analytics endpoint [`POST /v1/transcript-evaluation/queue`](/docs/api-reference/transcript-evaluation/batch-run-transcript-evaluations#batch-completion-tracking), retain the optional `batchID` returned in the queue response. It is omitted when nothing was queued. Match it to `data.batchID` on the batch event and on its per-evaluation events.

The current Platform API's [Queue evaluation runs](/docs/api-reference/resources/evaluation#queue-evaluation-runs-post-v1-stable-evaluation-queue-runs) response returns counts and an optional warning; it does not currently expose this `batchID`. Preserve the response contract for the endpoint you actually call.

## Delivery limits

Do not treat these notifications as an ordered or exhaustive audit log. Evaluation execution can succeed even if webhook sending fails. A worker crash before sending, a failed queue operation at session end, or an incomplete service rollout can leave a notification missing. Losing the batch tracker can lose its completion notification without cancelling the evaluations.

Use [Transcripts](/docs/documentation/measure/transcripts) and the [evaluation reference](/docs/api-reference/resources/evaluation) to inspect stored outcomes when a notification is missing. Keep later per-evaluation retry results separate from the once-per-session summary and the batch's original completion counts.
