best-battery-56004
10/10/2025, 7:36 PMtall-airline-16756
10/10/2025, 7:36 PMtall-airline-16756
10/10/2025, 7:38 PMagent_name in the WorkerOptions configuration. This will disable automatic dispatch globally for that agent worker.
2. Then, use the AgentDispatchService API to explicitly dispatch agents to the rooms you want. For example:
# Explicitly dispatch to a specific room
await lkapi.agent_dispatch.create_dispatch(
api.CreateAgentDispatchRequest(
agent_name="selective-agent",
room="specific-room",
metadata="my_metadata"
)
)
Just a quick note: automatic dispatch is a global setting for each agent worker, so it can’t be turned off for some rooms while staying on for others. If you want more room-specific control, you might consider running separate agent workers with different settings or adding some application logic to manage explicit dispatch.
Please don’t hesitate to reach out if you’d like me to walk you through this setup or if you have any other questions. I’m here to help!
Sources: Agent dispatch | LiveKit Docs | livekit-protocol/livekit/protocol/room.pyi | SIP dispatch rule | LiveKit Docs | Agents telephony integration | LiveKit Docs