Live APIs (Beta)
Enable real-time, low-latency interaction with Convai AI characters through WebRTC-based Live APIs that support text, audio, and dynamic contextual communication.
Live APIs are available only on the Enterprise Plan.
Convai’s Live APIs enable real-time, dynamic interaction between users and AI characters through WebRTC. These APIs allow your applications to send and receive audio, text, and other contextual data, making conversations with AI characters seamless and responsive.
Once your characters are created, the Live APIs manage conversational input and contextual responses automatically, ensuring natural and consistent behavior across sessions.
With the Live APIs, you can:
Engage in live conversations — Send user text or voice inputs and receive contextual, natural replies in real time.
Retrieve responses in text and/or audio form — Power both text-based chat and voice dialogue experiences.
Use realtime models — Integrate with low-latency models (currently Google Realtime; OpenAI support coming soon) for high-speed conversational performance.
The Live APIs act as the bridge between your AI characters and users, enabling smooth, two-way communication across both text and voice channels — all in real time.
Where to start
Opening a session and every option you can configure on it
Creating a shared room with multiple character instances, routing turns, and updating the roster
Running a moderated room where several characters answer the same message, in one connection
The group-address command, its responses and error codes, and the turn-complete event
How a bot turn is delivered, which ordering you can rely on, and field presence rules
How speech, actions, and emotion are separated — and exactly what the server removes from the spoken response
Every message type at a glance
Messages you send
Messages you receive
Custom audio handling
Performance metrics and monitoring
Last updated
Was this helpful?