Chat Runtime
Vonative chat sessions use a two-layer architecture:- the Vonative API is the control plane
https://chat.vonative.comis the runtime plane
chat.vonative.com handles the live chat transport and streaming.
Connection model
Clients should not create chat runtime sessions directly from raw assistant or organization identifiers. Always bootstrap through the Vonative API first.
Frontend flow
- Start or resume a chat session through the Vonative API.
- Receive runtime connection details from the API.
- Send messages and receive live responses from
chat.vonative.com.
Runtime authentication
Use a short-lived runtime token issued by the Vonative API. Do not expose internal bridge secrets to browsers, mobile apps, or third-party developers. The runtime token should represent:- organization
- assistant or workflow
- session
- root session
- conversation mode
- expiry time
- optional channel metadata
Web client messaging
After bootstrap, the frontend connects directly tochat.vonative.com.
Recommended runtime routes:
File uploads
Web chat supports session-scoped attachments throughchat.vonative.com.
Upload first:
file: the uploaded file
attachment_ids when sending the message.
Supported web-chat uploads in the current runtime:
- images:
image/pngimage/jpegimage/webpimage/gif
- text-like files:
text/plaintext/markdowntext/csvtext/htmlapplication/jsonapplication/xmltext/xml
- document files converted to text in the Worker:
application/pdfapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
- images up to 5 MB
- text-like files up to 1 MB
- PDF and DOCX files up to 10 MB
- image uploads are passed to the model as image input on the next user turn
- text-like uploads are inlined as text context on the next user turn
- PDF and DOCX uploads are converted to markdown/text in the Worker and inlined on the next user turn
- attachment metadata is visible in the chat thread for the active session and preserved across resumed chat history
- XLSX/PPTX parsing
- arbitrary binary file understanding
Streaming responses
For live token-by-token rendering, use the stream endpoint.message_starttokentool_calltool_resultmessage_enddoneerror
- streamed assistant tokens
- tool execution updates when available
- final message text
- final usage and cost metadata if returned
Resuming a chat session
Resume should start from the Vonative API, not from the Worker directly.session_id.
Public developer integrations
For external developers, use the same pattern:- create or resume a session through the Vonative API
- receive
runtime_tokenandchat_runtime_url - connect directly to
chat.vonative.comfor live messaging
- organization validation in the API
- session lifecycle in the API
- billing settlement in the API
- live runtime transport in the Worker
Security model
Use two authentication layers:BRIDGE_SECRET is internal only and should be used only for trusted service-to-service communication.
CORS and browser support
chat.vonative.com should allow:
- your Vonative dashboard origin
- approved customer origins for embedded chat
AuthorizationandContent-Typeheadersmultipart/form-datauploads for attachments- long-lived streaming responses for SSE or equivalent streaming transport
Recommended division of responsibilities
Notes
- Chat-only mode is text-only. It does not publish mic audio or play TTS output.
- Chat runtime should be treated as the live execution surface, not the control plane.
- Resume creates a new live runtime connection while preserving a stable root conversation thread.

