> ## Documentation Index
> Fetch the complete documentation index at: https://omniloy.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Phrases

> System phrases and flow phrases the agent says

Phrases are the messages the agent says to the patient. There are two kinds: system phrases (tied to call events) and flow phrases (steps within the questionnaire).

## System phrases

They are tied to specific moments of the call. Each is optional; if a moment has no phrase, the agent improvises or skips it as appropriate.

| Event                  | Moment                                        |
| ---------------------- | --------------------------------------------- |
| `session.start`        | Welcome at the start of the call              |
| `session.identity`     | Patient identity confirmation                 |
| `session.purpose`      | Explanation of the call's purpose             |
| `session.teardown`     | Goodbye / close                               |
| `amd.result`           | Message when an answering machine is detected |
| `red_flag.reassurance` | Reassurance phrase on a red flag              |

The opening follows a fixed order: **welcome → consent → identity → purpose**. The **consent** message is organization-level and is not edited in the protocol.

Each system phrase can set whether the patient **may interrupt it**.

## Flow phrases

These are spoken steps within the questionnaire flow. Each flow phrase has:

* Its **text** (localizable per language).
* A **per-phrase interruption** toggle: whether the patient can cut in while it is spoken.
* At most **one** conditional rule, which must be `always` (real branching goes on a [decision node](/olivia/en/decisiones)).
