is it possible for me to hookup and existing agent...
# agents
b
is it possible for me to hookup and existing agent to a sandbox ui? I create an agent but I have no clue how I can connect it to a specific sandbox
j
use the same url, key and secret in agent, you should be able to connect to the agent via sandbox app
b
you mean
LIVEKIT_URL
,
LIVEKIT_API_KEY
and
LIVEKIT_API_SECRET
? But i’ve got multiple agents in my livekit project
g
we're actively working on adding support for
agent_name
in the sandbox creation so that you can perform an explicit dispatch, but it's not available at the moment. until then, we recommend copying https://github.com/livekit-examples/agent-starter-react and deploying it to something like vercel. you can modify the
createParticipantToken
method to add a dispatch to the token
🙏 1
b
Thanks for clarifying that @gifted-family-53487 so does this mean at the moment the sandbox connects to one random agent that is connected to LiveKit Server? Or how does that currently work?
g
it will dispatch only an unnamed agent. if you set an
agent_name
on your worker, then it is eligible only for explicit dispatch and thus won't join a sandbox room today