Skip to main content
Chat is in beta. It is enabled per account. While it is in beta, the chat endpoints and their response shape may change or be removed within /v1 without notice.
Chat lets you ask a question about a transcription and get the answer in the same response: a summary, the action items, the decisions made, or anything else the recording covers. Each chat is saved against its transcription, so you can add follow-up prompts and read the conversation back later.

Before you start

Mint an API key (see Authentication) and export it:
You also need the id of a transcription whose transcript is ready (has_transcription is true). See Retrieve and export to find one. The Python examples use the requests package (pip install requests).
If chat is not enabled for your account, every chat endpoint returns 403 with the error code chat_not_enabled, reads included.

1. Open a chat

Send a title and your first prompt. Vook opens the chat, answers the prompt, and returns the whole chat.
A successful request returns 201 with the chat:
Each request returns one complete answer as JSON. Answers can take a while on a long transcript, so give your HTTP client a generous timeout. The chat reads the transcript as it is when the chat opens. If you edit the transcript later, the existing chat keeps the earlier version: open a new chat to ask about the edited transcript.

2. Add a follow-up prompt

Send another prompt to the chat. The answer takes the earlier messages into account.
A successful request returns 201 with the full chat, your prompt and its answer appended:
The fields are the same as when you open a chat. A chat answers one prompt at a time. If you send a prompt while another one on the same chat is still being answered, the request returns 409 with the code chat_turn_in_progress. Wait until the chat’s turn_in_progress is false, then send it again.

3. List the chats of a transcription

Get every chat of a transcription. The list is not paginated. It does not include messages: read a chat to get them.
Chats belong to your account, so the list also includes chats opened in the Vook web app. You can read and continue them through the API. A chat opened in the web app may start with an assistant message. The list can also hold a chat titled Summary, created when you summarize the transcription.

4. Read a chat

Get a chat with all of its messages.
The fields are the same as when you open a chat.

If your connection drops

The answer keeps being produced after your connection closes, and it is saved to the chat. Recover it by reading the chat instead of sending the prompt again, which would ask the same question twice. On a follow-up prompt, you already have the chat id:
  1. Read the chat every few seconds until turn_in_progress is false.
  2. If your prompt and its answer are the last two messages, the turn completed.
  3. If they are missing, the turn failed. Send the prompt again.
When opening a chat, the response never reached you, so you do not have its id yet:
  1. List the chats of the transcription and find yours by title. Give each chat a distinct title so this match is reliable.
  2. If it is there, read it until turn_in_progress is false.
  3. If it does not appear after a while, opening the chat failed. Open it again.

Limits

Every message counts toward the chat length, including messages from the web app. The limit is checked before a prompt is answered, so a prompt accepted just under the limit still gets its answer.

Retention

A chat lives as long as its transcription. There is no endpoint to delete a single chat: when you delete the transcription, its chats are deleted with it. See Data retention.

Next steps

Errors and limits

Error codes, retry rules, and limits.

API Reference

Try every endpoint interactively in the playground.