> For the complete documentation index, see [llms.txt](https://docs.concurrence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.concurrence.com/developer-guide/platform-api/safety/output-checks.md). Agents can also search and read this documentation through its [MCP server](https://docs.concurrence.com/~gitbook/mcp).

# Output Checks

Which reply checks run on a voice call, how a workspace and a service set each one, what each check does to a reply, and how to prove the setting before launch.

Output checks review what the agent is about to say. A check that stops a reply replaces it with a short correction line. This page lists every check, how a workspace and a service set each one, and the voice families and text behavior each check applies to. For the wider safety picture, see [Reply Checks](https://docs.concurrence.com/operations-and-safety/runtime-safety#reply-checks).

## Settings

Every output check is a setting. Each one resolves in three layers, key by key:

1. **Platform default.** The value listed in the table below.
2. **Workspace default.** `PUT /v1/{workspace_id}/settings/safety` with an `output_checks` block. It applies to every service in the workspace that does not set the key itself. It needs the `Workspace.update` permission (admin or owner).
3. **Service override.** The service's `output_checks` block on create or update. It needs the `Service.update` permission.

A block names only the keys it sets. A key it leaves out inherits from the layer below. Any key can be set to `off` at either layer, which turns that check off.

| Key                    | What it stops                                                                                                                  | Modes                 | Platform default |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------------------- | ---------------- |
| `dosing_or_med_change` | A reply that gives dosing or medication-change advice                                                                          | `cut`, `count`, `off` | `cut`            |
| `diagnosis`            | A reply that says what is wrong with the caller, or that a symptom needs no care                                               | `cut`, `count`, `off` | `cut`            |
| `phi_unverified`       | A reply that reads patient record details to a caller who has not verified                                                     | `cut`, `off`          | `off`            |
| `false_confirmation`   | A reply that says a booking, cancellation, move, message, or other action is done when no matching write succeeded on the call | `cut`, `count`, `off` | `cut`            |
| `dispatch_promise`     | A reply that says emergency help is called, sent, or on the way                                                                | `cut`, `count`, `off` | `cut`            |
| `blocklisted_number`   | A reply that speaks a phone number on the platform's never-give-out list                                                       | `cut`, `off`          | `cut`            |
| `misspelled_word`      | A reply that spells back, letter by letter, a word close to but not the one the caller just said                               | `cut`, `off`          | `cut`            |

`cut` stops the reply and plays the correction. `count` lets the reply play and counts the check in metrics. `off` lets the reply play.

`blocklisted_number` `off` only lets the agent say a listed number. The platform does not dial a listed number or save it as a transfer destination, whatever this setting is.

### Read the effective value

`GET /v1/{workspace_id}/services/{service_id}/safety` returns every key with the value the service's calls run and its `source`:

* `platform`: the platform default.
* `workspace`: the workspace default.
* `service`: the service's own setting.

`GET /v1/{workspace_id}/settings/safety` returns what a service that sets nothing runs.

A service read (`GET /v1/{workspace_id}/services/{service_id}`) returns the effective values the service's calls run. Use the safety endpoint to see where each value comes from.

### Writes

* A workspace `PUT` replaces the workspace block. `{}` clears it.
* A service create stores a value only when it differs from what the service would inherit: the workspace default, or the platform default where the workspace sets none. A create that keeps `cut` under a workspace `off` stores it. A create that names the inherited value stores nothing, so the key keeps following the workspace.
* A service update replaces the service block with the keys it names. Send only the keys you mean to set: a key you send is stored at service level and stops following the workspace default, even if it is the value the service already runs. A key sent as `{}` is not stored. `null` clears it, so every key inherits. Omitting `output_checks` keeps what is stored.
* An unknown key or mode is refused with a 422.
* A stored block that cannot be read names nothing, so every key inherits.

Every change to a key is audited, with the actor and the old and new value:

* service changes as `service.output_checks.<key>.update`.
* workspace changes as `workspace.safety.output_checks.<key>.update`.

A new value of `off` records that the check was turned off.

Platform patient reads also refuse until the caller verifies, whatever `phi_unverified` says. See [Caller Verification](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent.md#caller-verification) for `platform_caller_verification`.

## How the checks decide

The first five checks are decided by a model that reads the reply sentence by sentence. The blocked phone number and misspelled word checks are lookups with no model. A number is on the list or it is not, and a number that only resembles a listed one is let through.

Whether a booking or message claim is true is decided from the writes that succeeded on the call, not by the model. A claim with no matching write is a false confirmation. A write whose outcome is unknown backs no claim.

When a service or its workspace sets a check to `count` or `off`, the model is asked only about the checks still on, so a check turned off never hides another problem in the same sentence. A `count` check the model still finds is counted, and the sentence plays. A service with every check at its platform default is checked exactly as before.

## What the caller hears

A stopped reply is replaced by a fixed correction line in English or Spanish. A service cannot change the wording.

| Check                       | Correction, in meaning                                                                                                                                                       |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Dosing or medication change | The agent cannot advise on medications or doses and the caller should ask a doctor or pharmacist.                                                                            |
| Diagnosis                   | The agent cannot say what is causing the symptom, a clinician should look at it, and the agent offers help getting an appointment.                                           |
| `phi_unverified`            | The agent asks for the caller's full name and date of birth. On a service that does not verify callers, the line says the agent cannot share anything from a patient record. |
| False confirmation          | The agent cannot confirm the action is done yet and will check first.                                                                                                        |
| Emergency dispatch promise  | The agent cannot contact emergency services and the caller should hang up and call the emergency number.                                                                     |
| Blocked phone number        | The agent has no confirmed number for that and offers a transfer.                                                                                                            |

After the person describes an emergency, the correction is the emergency line for that call instead of the check's own line. On its next turn the agent is told what was cut and what the caller heard in its place.

## Applies to

| Runtime                | Model-based checks               | Number lookup                             | What the caller hears before a stop                                                              |
| ---------------------- | -------------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------ |
| Platform-managed voice | Yes                              | Yes                                       | The first sentence waits briefly for the verdict. Later sentences play only after their verdict. |
| `gpt_realtime`         | Yes, on the streaming transcript | Yes                                       | Part or all of a sentence can play before the stop lands.                                        |
| `gpt_live`             | Yes                              | Yes                                       | Audio waits for the verdict, and the correction plays as a prepared clip.                        |
| Text                   | No                               | Logged only, the reply is sent as written | Not applicable.                                                                                  |

`phi_unverified` applies to every voice family and not to text. Voice families outside the three rows above run the same checker, and this page does not state their timing.

## When a verdict is late

A verdict that arrives late or fails releases the sentence unchecked, and the call continues. Once the caller has described an emergency, a late or failed verdict withholds the sentence instead. Treat output checks as a safety net, not a guarantee, and test your wording.

## Prove it

Use a separate test workspace with synthetic data only. Output checks run on voice, so a simulation or a text conversation cannot prove them. Use a browser test call on a voice service.

1. Read `GET /v1/{workspace_id}/services/{service_id}/safety` and confirm `phi_unverified` is `cut`, with the `source` you expect.
2. Start a voice test call without verifying. Ask the agent to read details from a patient record.
3. A pass: the agent does not read the details. The caller hears the verification request, or the "cannot share anything from a patient record" line on a service that does not verify callers.
4. Verify as the test caller, then ask again. A pass: the agent can answer from the record.
5. Set the mode to `off`, repeat step 2, and confirm the check does not stop the reply. Platform patient reads still refuse before verification.
6. Ask the agent to give a medication dose. A pass: the caller hears the dosing correction, unless the service or its workspace sets `dosing_or_med_change` to `count` or `off`.

A model check can miss a phrasing or stop a correct reply. Run each step more than once, and with Spanish wording if you serve Spanish callers.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.concurrence.com/developer-guide/platform-api/safety/output-checks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
