Hi Convai team and community,
I’m building a medical VR therapy application (TherapyVR) using Unity 6 + Meta Quest 2 standalone + Convai SDK v4.1.0. My AI assistant “Delia” guides patients through cognitive and motor therapy exercises.
My setup:
-
ConvaiCharacter+IConvaiCharacterAgentfor sending triggers -
IConvaiRoomConnectionService+IEventHubsubscribed toSessionStateChangedevents -
I write the connection state to Firebase Firestore so a web therapist dashboard can see if Delia is connected in real time
What I want to do: I have a web-based therapist interface (HTML/JS + Firebase) that controls the VR session remotely. I want to add a button that allows the therapist to manually connect or disconnect the Convai AI assistant without restarting the Unity application.
The flow would be:
-
Therapist clicks “Connect AI” in the web dashboard
-
Firebase receives the command
-
Unity calls a connect method on the Convai SDK
-
SessionStateChangedfires withConnected→ Firebase updated → dashboard shows AI as active
My question: Does IConvaiRoomConnectionService expose public Connect() / Disconnect() (or ConnectAsync() / DisconnectAsync()) methods that I can call programmatically at runtime?
I can see CurrentState and IsConnected properties, and I subscribe to SessionStateChanged via IEventHub, but I haven’t found a documented way to trigger a connection or disconnection manually.
If direct connect/disconnect is not available, would enabling/disabling the ConvaiCharacter component achieve the same effect safely?
Thanks in advance!