I’m using a LiveKit Cloud Agent with the Agent Embed Widget inside my desktop application.
The deployed agent uses Python AgentSession with openai.realtime.RealtimeModel (gpt-realtime-2). Voice conversations through the Embed Widget are already working.
I want my host application to do two things with the widget’s existing voice session:
- Receive the finalized user speech transcript and agent response transcript so I can display both in my application’s own conversation UI.
- Send a typed user message from my application’s text input into that same active agent session/context, so voice and typed input share one conversation.
While inspecting the widget, I can see transcription functionality being consumed internally, but I have not found a documented host-page callback/event API or an exposed LiveKit Room / session object.
Does the Cloud Agent Embed Widget expose a supported public JavaScript API for either of these?
- Subscribe to user and agent transcript events from the existing widget session
- Send typed messages into that same session/context
If yes, could you provide the API or a minimal example?
If the Embed Widget intentionally does not expose these capabilities, is the recommended approach to replace the widget with a custom LiveKit client while continuing to use the same deployed Cloud Agent?
I specifically want to avoid relying on undocumented widget internals.