steep-painter-26910
10/22/2025, 5:00 PMtall-airline-16756
10/22/2025, 5:00 PMtall-airline-16756
10/22/2025, 5:03 PMagent_name is specified in the WorkerOptions. I totally understand how this can be a bit confusing!
Here’s a friendly step-by-step to help you get this sorted out:
1. First, take a look at your playground settings to see if an agent_name is configured. If it is, you have two options:
◦ Simply remove the agent_name to let the system handle dispatch automatically.
◦ Or, if you prefer explicit dispatch, you can use the AgentDispatch.createDispatch API or set the RoomConfiguration with the agent definition in your access token.
1. Next, double-check that your environment variables (LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET) are all correctly set — this often makes a big difference.
2. Finally, it’s a good idea to peek at the agent logs for any errors. You can do this by running the diagnostic command: lk agent logs --id <agent-id> --log-type=deploy.
If you’d like, I’m here to help! Just let me know whether you have an agent_name configured or if you spot any error messages in the logs, and we can work through it together.
Sources: Community & Support | livekit/livekit_composite | DeepWiki | README.md | examples/agent_dispatch.py | src/components/playground/Playground.tsx | livekit-agents/livekit/agents/worker.py