I understand how frustrating it can be when the user is in the room but the agent isn’t showing up. Let’s walk through a few common reasons this might happen:
•
Agent Dispatch Failure: Sometimes, the agent might not be dispatched properly because of delays in token generation or network hiccups. It’s a good idea to make sure the token is pre-generated and that the agent is dispatched at the same time the user joins the room.
•
Worker Availability: If there aren’t enough agent workers running, the agent won’t be able to join. Double-check that you have enough agent instances active, and if needed, consider setting up auto-scaling to keep things running smoothly.
•
Timeouts: The agent needs to connect within 10 seconds of being dispatched. If there’s high latency or the agent is far from the LiveKit server, timeouts can happen. Deploying agents closer to the server can help reduce this delay.
•
Room Configuration: It’s important that the room token has the right configuration for agent dispatch. Sometimes incorrect settings here can block the agent from joining.
It’s a great idea to check your logs for any timeout messages or errors related to agent dispatch. If you’d like, I’m here to help you with specific troubleshooting steps or any configuration tweaks you might need. Just let me know!
Sources:
Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... |
Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki |
Server-Side SDKs & Authentication | livekit/livekit_composite | DeepWiki |
Web and mobile frontends | LiveKit Docs