This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.
If I have multiple participants in the same room and the agent responds, does that message go to all participants?
Or do I need separate rooms for each user?
Yes, audio published by the agent is received by all other participants in the room.
If you need 1:1 interaction with the agent, you would need separate rooms for each user.
To distinguish between participants in a multi-participant room:
room.local_participant is the agent itself
room.remote_participants gives you all other participants
See this example for sending messages to remote participants: