I've deployed my agent to the Livekit cloud but it...
# cloud
g
I've deployed my agent to the Livekit cloud but it isn't joining my frontend react app even though I am generating the tokens and joining the generated rooms.
a
I had the same issue. I couldn't figure out the exact bug but the work around I ended us using was scanning for empty rooms and doing a manual dispatch to empty rooms
g
ok I'll def implement it. I asked ChatGPT and it also had a similar sentiment about using a manual dispatch to an empty room.
c
see if you have provided the agent name in the worker options ? if so use the same name to dispatch the agent The agent will only only then join the room If you want the agent to respond to any dispatch, then remove the agent name from the worker options Check : https://github.com/livekit/livekit_composite/blob/396efeaf/livekit-examples/node-agents-examples/packages/sip--make-a-call/src/make-call.ts https://github.com/livekit/livekit_composite/blob/396efeaf/livekit/agents-playground/src/pages/api/token.ts Check the doc for dispatch : https://docs.livekit.io/agents/worker/agent-dispatch/#dispatching-agents