can i make a livekit session such that 2 agent joi...
# ask-ai
l
can i make a livekit session such that 2 agent joins the room and talks to each other??
t
Thanks for reaching out, Kalash. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes — you can have two agents join the same LiveKit room and talk to each other. To enable agent-to-agent audio: 1. Create the room with
RoomInputOptions
configured to include
PARTICIPANT_KIND_AGENT
. 2. Ensure both agents connect to the same room and have their audio/TTS configured so each can send and receive audio. 3. Agents appear as
AGENT
in the participant
kind
field, so your logic can treat them differently if needed. Would you like platform-specific sample code (server or client) or guidance for configuring TTS for the agents? Sources: How to Enable Agent-to-Agent Speech Detection in LiveKit | Rooms, participants, and tracks | LiveKit docs