how does agent dispatch works while connecting via...
# ask-ai
m
how does agent dispatch works while connecting via token when Roomconfiguartion not configured
t
Thanks for reaching out, Rajadurai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
When connecting via token without specifying a RoomConfiguration, agent dispatch uses automatic agent dispatch behavior. • If a participant connects and the room does not already exist, the room is created automatically. • An agent is then assigned to the room automatically, using the default agent worker (one that does not have an
agent_name
specified in its WorkerOptions). This means any available agent worker without a specific
agent_name
will be assigned to handle the new participant's room. If you want to control which agent is assigned, you would need to use explicit dispatch by setting
agent_name
in WorkerOptions and configuring RoomConfiguration in the token. Sources: Dispatching agents | LiveKit Docs | Agent dispatch | LiveKit Docs