Is it possible to run livekit server as common roo...
# ask-ai
p
Is it possible to run livekit server as common room where multiple clients can join and talk to each other ?
t
Thanks for reaching out, mithun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes. LiveKit is built around “rooms” where multiple participants join and talk in real time. You can create a room (or let it auto-create on first join), then each client connects, publishes audio/video, and subscribes to others. If helpful, I can share quick steps for generating access tokens and joining a shared room from your client. For an overview, see Rooms, participants, and tracks in the docs: https://docs.livekit.io/home/get-started/api-primitives/ Sources: LiveKit Server Platform | livekit/livekit_composite | DeepWiki | Rooms, participants, and tracks | LiveKit docs | Core Platform Architecture & Authentication | livekit/livekit_composite | D... | Server-Side SDKs & Authentication | livekit/livekit_composite | DeepWiki | Connecting to LiveKit | LiveKit docs
p
can a participant switch seamlessly between room having normal users and a room containing a voice agent ?
t
It sounds like you’re asking if a user can move between a “normal” room and one with a voice agent without friction. Yes—there are a couple ways to do this: • Move them between rooms: Use the server-side MoveParticipant API to transfer the user from Room A to Room B. This cleanly removes them from the source and joins them to the destination. Managing participants • Keep them in one room and bring the agent to them: Dispatch an agent participant into the user’s current room via token room config/agent dispatch. • Mirror them into another room: Use ForwardParticipant to share the user’s tracks into the agent room while they remain in the original room. Managing participants Which flow do you mean by “seamlessly”—a server-driven move, keeping the user in place and summoning the agent, or mirroring their media to the agent room? Sources: Rooms, participants, and tracks | LiveKit docs | Core Platform Architecture & Authentication | livekit/livekit_composite | D... | Managing participants | LiveKit docs | Server-Side SDKs & Authentication | livekit/livekit_composite | DeepWiki
p
My user need to talk to voice assistant (ai agent) directly at times, other times he need switch to the common room - talking to other participants (human).
t
It sounds like your user needs a smooth toggle between a private AI chat and a group room. You can do this a few ways: • Move the user between rooms: Use MoveParticipant to transfer them between the AI room and the common room. Single presence, clean handoff. Managing participants • Keep them in the common room and bring the agent: Dispatch an agent into the user’s current room when needed (via token room config/agent dispatch). Agent dispatch • Let the agent hear the user without moving them: Use ForwardParticipant to mirror the user’s tracks into the agent room while they remain in the common room. Managing participants Which flow fits your UX best—full move, summon the agent, or mirroring? I can share exact API examples for the one you choose. Sources: Managing participants | LiveKit docs | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | Agent dispatch | LiveKit Docs | Core Platform Architecture & Authentication | livekit/livekit_composite | D... | Rooms, participants, and tracks | LiveKit docs