hey guys my agent is running on livekit cloud but ...
# agents
c
hey guys my agent is running on livekit cloud but whenever i try to test it in the sandbox it says "agent failed to join room" and idk why and neither does chatgpt
e
Share the complete error so i can check
Also share the code reference.
c
this the agent doesnt respond
e
This one is UI part. But i need to see code logic.
c
umm what file?
e
Did you take a reference from any livekit repository?
c
the quick starter lk app create \ --template agent-starter-python <my-app>; cd <my-app> template but its been vibe coded alot
and i swapped out cartesia for open ai realtime api
e
Okay give me some minutes so i can figure out the file that responsible for join agent in room.
c
i think its agent.py should i sent the whole file to you?
e
yes
c
agent.py
also id just like to test it in the livekit sandbox but id like to connect it to my website for permanent business use is that gonna create a problem
e
No, it not create problem.
share the front end (UI) reference repository
also make sure you are running both frontend and backend with correct livekit credentials.
c
i havnt done a front end its only from here
the web voice agent in the sandbox
e
okay, here i have to confirm few things as a configuration debuge in .env.local are you using correct livekit credentials as used in sandbox?(The sandbox web client must connect to the same LiveKit project)
check the room name is same as created by sendbox web client: ctx.log_context_fields = { "room": ctx.room.name, }
c
Empanada Empire - LiveKit Agent Connection failed: LivekitClient is not defined Connection Info: Room: empanada-room User: user-440
yeah heres the error i get
e
can you please share sandbox url?
bcz error said that your livekit sdk not loaded
c
e
share your python version
you just have to run the agent and use the correct .env credentials.
let me know if it's not work for you.
r
@curved-school-72506 I just checked your account and I see you have agent joining the room. So all is well now?
If you are still having an issue can yo provide a link to a session that failed: https://cloud.livekit.io/projects/p_/sessions