Cannot run the AI agent

I can run my AI agent locally, however, after I deployed it to Livkit and after I launch it on web page, the agent cannot be boot up and keep wait. How can I find the problem

In free tier, you might experience that since agent will go to sleep mode if it’s been unused. But once agent connects it will be quick to join in subsequent sessions. Check the status of deployed agent in Livekit cloud (pending or running)

Another possibility, is if you have a named agent (by default, the starter agent is called my-agent, agent-starter-python/src/agent.py at main · livekit-examples/agent-starter-python · GitHub), you will need to explicitly dispatch that agent: Agent dispatch | LiveKit Documentation

For example, if you use our agent-starter-embed, GitHub - livekit-examples/agent-starter-embed: Embeddable AI voice assistant button built with LiveKit · GitHub which is most similar to your use case, the built-in token server (used for testing) will include the agent name as part of the token, so the agent is dispatched: agent-starter-embed/app/api/connection-details/route.ts at main · livekit-examples/agent-starter-embed · GitHub