Chat
The AI chat: sessions, history, personas, single-persona replies (SSE), the Round Table multi-persona reply (SSE), the chairman analysis, and voice features.
Get the chairman's analysis
An analysis of one chat session, named by `session_id`.
Get chat history
The messages of one chat session.
List chat personas
The AI personas the person can talk to.
Ask several personas (stream)
Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ 'kind': 'persona' | 'provider', 'id': '...' }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.
Ask a question (stream)
Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.
Delete a chat session
Deletes a chat session.
List chat sessions
The person's chat sessions.
Rename or pin a chat session
Renames a chat session, pins it or unpins it.
Start a chat session
Starts a new chat session.
Create speech for a reply
Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.
Get voice options
Which voice features are on for this patient: `enabled` (spoken replies), `personaIds` that have a voice, `dictate` (voice input), `agent` (live voice calls).
Start a voice call
Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.