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

# Live calls

> Listen to a call in progress, tell the agent something only it hears, take the call over and hand it back

While a call is in progress it is in **Conversations → Live**. Open it to follow the transcript as it happens, and:

| | What it does |
| :- | :- |
| **Listen** | You hear the caller and the agent. Neither hears you. |
| **Tell the agent** | A note only the agent reads: "offer the 10% discount". It uses it from its next answer. |
| **Take over** | Phone calls only. The agent goes quiet and you talk to the caller with your microphone. **Hand back** gives the call back to the agent, which knows what was said. |
| **End** | Hangs up. |

If you take a call over and your connection drops, the agent has it back after four seconds: a caller is never left with nobody.

Members, admins and owners can do this; viewers cannot. Every time someone listens, tells the agent something, takes over, hands back or ends a call it is written to the [audit log](https://docs.lokutor.com/guides/team.md#audit-log), and the conversation says it was supervised. Whether callers must be told that someone may listen depends on your country; calls that are recorded already say so.

A call costs the same while you listen. While you have it, the agent does not speak and uses no model.

## API

`wss://api.lokutor.com/ws/live?conversation_id=…` with a key that can do everything, or that has `calls` and `conversations:read` ([What a key can do](https://docs.lokutor.com/authentication.md#what-a-key-can-do)); in a browser, a [ticket](https://docs.lokutor.com/authentication.md#short-lived-tickets). The call's id is in [`GET /v1/conversations`](https://docs.lokutor.com/api-reference/agents#conversations) from the moment it connects. A call that is not in progress answers `404`.

| You get | |
| :- | :- |
| Binary | One byte for who it is (`0` the caller, `1` the agent, `2` the person who has the call), then Int16 PCM, 8 kHz, mono |
| `{"type":"state", …}` | `transport`, `can_take_over`, `can_hang_up`, `listeners`, and `taken_by` while a person has the call |
| `{"type":"error","message":"…"}` | Why the call could not be taken over |
| `{"type":"ended"}` | The call is over |

| You send | |
| :- | :- |
| `{"type":"whisper","text":"…"}` | Up to 600 characters only the agent reads |
| `{"type":"take_over"}`, `{"type":"hand_back","text":"…"}` | The call to you, and back with what the agent should know |
| Binary | Your voice while you have the call: Int16 PCM, 8 kHz, mono |
| `{"type":"hang_up"}` | Ends the call |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.