> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.jambonz.org/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.jambonz.org/_mcp/server.

# Post-call analysis

Post-call analysis turns every finished call into structured data. For each call, a model reads the transcript and
returns:

* a **summary** and the caller's **sentiment** (positive, neutral or negative)
* a verdict for each of your **success criteria**, with the turn that shows why
* the values of the **fields** you defined, such as an appointment time or a lead quality

The result appears on the call's page in [Calls](/agent-studio/calls), and can be posted to your own system as a
`call.analyzed` [webhook](#send-it-to-your-system).

Analysis runs on your Anthropic key, in your account, through **Tuning**. It is off for every agent until you turn it
on.

## Before you start

Analysis shares its key, token cap and terms with Tuning (the same key that powers Suggest in
[Simulations](/agent-studio/simulations)). A workspace owner sets this up once in **Settings > Tuning**:

1. **Turn on Tuning** and accept its terms. Agents with Analysis turned on send each finished call's whole transcript, not masked, to
   Anthropic. When the terms change, an owner must accept the updated terms before analysis runs again; until then,
   calls are skipped.
2. Add an **Anthropic API key**. Studio checks it with Anthropic when you save it and never shows it again.

Analysis is available only on Studios where Tuning is enabled on the host. Elsewhere, no analysis runs, and Try and
Rerun return a 403 error.

Under **Monthly token cap**, an owner sets the most tokens analysis may use in a calendar month (UTC). It is the same number as Tuning's cap, but analysis is counted separately from Tuning. Once it is reached,
calls are skipped until the next month. **Usage** shows **Analysis runs** and **Analysis tokens**.

If Anthropic rejects the saved key, analysis pauses for every agent until the key is replaced. Removing the key, or
turning Tuning off, stops analysis for every agent; each agent keeps its Analysis settings.

## Set it up on an agent

Open the agent's builder and choose **Analysis**. Changes apply after you publish; each call is analyzed with the
settings of the version that answered it.

If Tuning is off, its terms are not accepted or there is no key, a banner at the top says what is missing and links to
**Settings > Tuning**.

| Setting                | What it does                                                     |
| ---------------------- | ---------------------------------------------------------------- |
| **Analyze every call** | turns analysis on for this agent                                 |
| **Model**              | **Haiku 5.5 (faster, cheaper)** or **Sonnet 5.5 (more careful)** |
| **Summary**            | include a summary                                                |
| **Caller sentiment**   | include the caller's sentiment                                   |

### Success criteria

Add up to 10 criteria, each a sentence the model judges as pass, fail or unknown, for example "Agent confirmed the
full order back to the caller". Mark a criterion **Required** to make it count:

* if any required criterion fails, the call's **Success** is **Fail**
* if all required criteria pass, it is **Pass**
* if none fails but some are unknown, it is **Unknown**
* with no required criterion there is no verdict, and the call shows no **Success**
* optional criteria are shown but do not change the verdict

### Fields

Add up to 20 fields to extract from each call.

| Part               | What to set                                                                     |
| ------------------ | ------------------------------------------------------------------------------- |
| **Name**           | lowercase letters, digits and `_`, starting with a letter (up to 64 characters) |
| **Type**           | **Text**, **Number**, **Yes/No**, **One of a list** or **Date & time**          |
| **Description**    | what the model should look for                                                  |
| **Allowed values** | for **One of a list**: one to 20 values, each different                         |

If the model gives a value that doesn't fit the type you chose, that field is `null` in **fields** and has an entry
under **field_errors**. If the model doesn't find the field in the call, it is `null` with no error, and the card shows
**Not found**.

### Which calls are analyzed

Open **Options** at the bottom of the section.

| Option                                      | Default          |
| ------------------------------------------- | ---------------- |
| **Skip calls with fewer caller turns than** | 2 (from 0 to 20) |
| **Also analyze test calls and simulations** | off              |
| **Also analyze voicemail**                  | off              |

Calls that nobody answered, and calls of an agent that keeps no transcript, are never analyzed. Test calls made from
a draft are never analyzed either.

### Try it

**Try on the latest call** runs the draft settings once on the most recent call that has a transcript, looking only at the
agent's 20 most recent calls in the last 30 days. It usually takes under 15 seconds. The result is not saved and
nothing is sent to your webhook, but it is billed: its tokens count against the monthly cap and show in **Usage**.

## Read the result

Open a call in [Calls](/agent-studio/calls). The **Analysis** card shows the **Pass**, **Fail** or **Unknown**
verdict, the model and run number, the summary and sentiment, each criterion with its reason and a **Turn** link to the
turn that shows it, and the fields.

On a very long call only the last part of the transcript is analyzed, and the card says so.

A call that was not analyzed says why, for example **Not analyzed: fewer caller turns than this agent's analysis
setting requires.** A call whose analysis failed says **Analysis failed:** and the reason, such as **Anthropic rejected
the workspace key.** or **Anthropic didn't respond after 4 tries.**

**Rerun analysis** analyzes the call again, for example after you change a criterion. The new run replaces the old
one; Studio does not keep a history of runs. A workspace can rerun up to 200 times a day (UTC).

In the **Calls** list, the **Success** filter shows **Pass**, **Fail**, **Unknown** or **Not scored**, and the
**Success** column shows each call's verdict.

> **Note**
>
> The model's verdict is not deterministic: the same transcript can pass on one run and fail on the next. Write criteria
> that a person reading the transcript would judge the same way.

## Send it to your system

Turn on **Send call.analyzed to the result webhook** in the Analysis section. Studio then posts one extra request for
each analyzed call to the agent's [result webhook](/agent-studio/webhooks) URL, signed the same way, with
`x-studio-event: call.analyzed`. It is also sent for calls that were skipped or failed, so your system learns that
there is no result.

The switch needs a result webhook URL on the agent. Inbound agents have no result webhook yet.

`x-studio-delivery` is `<call id>:a:<run>`, so a rerun is delivered again. Retries, signature and delivery history are
the same as for `call.completed`.

```json
{
  "event": "call.analyzed",
  "call_id": "8f886402-796f-4637-813b-0cf01d7b82be",
  "agent": "<agent id>",
  "version": 4,
  "status": "done",
  "reason": null,
  "trigger": "call_end",
  "run": 1,
  "truncated": false,
  "success": "fail",
  "sentiment": "neutral",
  "summary": "The caller ordered one large margherita pizza for delivery.",
  "criteria": [
    {
      "id": "c1",
      "text": "Agent confirmed the full order back to the caller",
      "required": true,
      "result": "fail",
      "reason": "The agent did not read back the size and the customer name.",
      "evidence_turn": 7
    }
  ],
  "fields": { "pizza_size": "large", "delivery": true, "customer_name": "Maria Lopez" },
  "field_errors": {},
  "model": "claude-haiku-5-5",
  "analyzed_at": "2026-12-05T14:43:20.000Z"
}
```

| Field                      | Meaning                                                                       |
| -------------------------- | ----------------------------------------------------------------------------- |
| `status`                   | `done`, `skipped` or `failed`                                                 |
| `reason`                   | why it was skipped or failed; `null` when done                                |
| `trigger`                  | `call_end`, or `rerun` after **Rerun analysis**                               |
| `run`                      | 1 for the first analysis of the call, then 2, 3 and so on                     |
| `truncated`                | `true` when only the end of a long transcript was analyzed                    |
| `success`                  | `pass`, `fail` or `unknown`; `null` when not done or no criterion is required |
| `criteria[].result`        | `pass`, `fail` or `unknown`                                                   |
| `criteria[].evidence_turn` | the turn number that shows the result, or `null`                              |

The payload carries no transcript.

## Next

* [Calls](/agent-studio/calls): the Analysis card and the Success filter
* [Webhooks](/agent-studio/webhooks): signing, retries and delivery history