Bot becomes unresponsive, no error logs Hi, I'm ex...
# agents
t
Bot becomes unresponsive, no error logs Hi, I'm experiencing this issue quite often when I'm on the phone and I have absolutely no clue how to debug/fix it. When calling my production bot sometimes it becomes unresponsive, meaning that no sound gets streamed anymore: no voice bot, no background sound, as if the bot left the room. I have the call ID if that can help:
SCL_XUP6Ve7mQtpp
I can provide as much information as you need, but I really need to fix this problem as it will eventually start pissing off my clients. Thanks!
f
QQ: Do you still see TTS metrics or LLM response being generated? I have seen similar issues, but it is challenging to find the cause: https://github.com/livekit/agents/issues/3434
t
Well actually yes, I even see the "usage summary" which is triggered with
ctx.add_shutdown_callback
f
You might want to remove the phone numbers. The summary info might come from the interactions before the silence. If I am reading it correctly, the user left when the agent generated response "Message: [Assistant] Très bien, je vais vous aider à prendre un rendez-vous."?
🙏 1
t
Well actually I didn't leave, that's the problem ^^" It was a test call done by myself
f
I see. Can you point me to where the agent stops responding in those logs?
t
Just after my last answer "Si si"
f
In that case, I think the call was ended, most likely due to "Participant left: PA_sfNUoNexEAWD". The agent wasn't being unresponsive.
If you go to the Livekit dashboard, open the session logs, you might see some additional info about the session.
I don't know which agent SDK you are using. There is one config parameter called ``close_on_disconnect`` https://github.com/livekit/agents/blob/0542ea22ed205229e527abdcc563a99550350afe/examples/warm-transfer/warm_transfer.py#L126 that might solve the problem.
t
I'm using Python's agents SDK, v1.2.11. Btw, I experienced another problem starting 1.2.9, that I will detail in another thread.
If you go to the Livekit dashboard, open the session logs, you might see some additional info about the session.
There seems to be a problem, as the last session logs I have are from 7.40am today (although hundreds of calls have been made all day long)
I don't know which agent SDK you are using. There is one config parameter called ``close_on_disconnect`
I'm not sure to understand how this could help, would you mind to elaborate? What seems weird is that even though the log says I left the room, I was actually still in the call, just... alone there 🙃
f
Could you check the telephony section? I haven't used it before, but it might be there. The cause of the disconnection might be external (like internet or twillo).
t
Same result on telephony section. Last call at 7.40
f
You might want to change the filter settings.
t
yep, but same problem, still no call after 7:40
Actually this "auto refresh" never worked on my end 😅
f
hmm, that doesn't sound right.
close_on_disconnect
closes the session/room if participant disconnects, and by default it is True.
t
Ok, so no need to set it explicitly then?
f
Setting it to False should keep the agent on the line if the user disconnects.
I would say try to set it to False first to see if it solves the problem.
t
Ok, thanks, I will try and keep you posted !