Why I deployed my agent to cloud, I see agent gree...
# ask-ai
s
Why I deployed my agent to cloud, I see agent green status "running", but agent is not dispatched when I enter my ws url and token in hosted playground
t
Thanks for reaching out, Kostya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It sounds like you're encountering a situation where the agent shows a green "running" status but isn't dispatched in the hosted playground. This usually happens when the agent is set up for explicit dispatch, which is the case if an
agent_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