astonishing-salesclerk-9701
11/29/2025, 8:20 PMtall-airline-16756
11/29/2025, 8:20 PMtall-airline-16756
11/29/2025, 8:21 PMagent_name to the @server.rtc_session decorator:
@server.rtc_session(agent_name="my-telephony-agent")
async def my_agent(ctx: JobContext):
# agent logic
Node.js
• Set agentName in `WorkerOptions`:
const opts = new WorkerOptions({
agentName: "test-agent",
});
After setting the agent name, automatic dispatch is disabled. To dispatch the agent explicitly, use one of these methods:
• SIP dispatch rules via room_config.agents
• Access tokens containing a RoomConfiguration with RoomAgentDispatch
• API calls to AgentDispatchService
Make sure the agent name matches exactly between the agent definition and whatever dispatch configuration you use. Would you like an example of dispatch via access token, SIP rule, or the API?
Sources: Agents telephony integration | LiveKit docs | Agent dispatch | LiveKit docs | server-sdk-js | livekit/livekit_composite | DeepWiki | SIP troubleshooting guide | LiveKit docs