Agent hanging up right after function call
# support
g
Hey all. Occasionally, the agent immediately hangs up the call right after running a certain function. The function call itself always goes through, but the call is immediately terminated. Some help on this would be very appreciated. Call IDs in which this happened: b2f0ae73-caa5-486a-8f4f-e33ef66951b3 e3eb2eef-88c6-4ce4-b62b-d910f3885fe8 1cc2a2c4-8347-4958-8f90-69bb07e97d4f Assistant ID: 9535f006-c1b4-4fa4-8914-faed0576287f Let me know what else is needed to solve this issue. Thanks.
v
message has been deleted
@Gabriel C I'm here to help you with the issue you're experiencing. It sounds like there might be a problem with the assistant configuration or a specific function that's causing the call to terminate. To assist you further, I'll need to know which function is being called when the call gets disconnected. Could you please provide the name of the function or describe the action being performed right before the call ends?
You can continue this conversation by mentioning me in the message.
s
@Shubham Bajaj can you please look into it?
s
Hey @Gabriel C I hope you returning the response in expected format, because as per logs " Tool call result not found for checkAvailability" tool call.
Copy code
json
{
    "results": [
        {
            "toolCallId": "X",
            "result": "Y"
        }
    ]
}
Also please recreate the first two calls.
g
The result for this particular function takes more or less 60 seconds to be returned, and the hang ups occurred immediately after function call
You mean to recreate the issue?
s
not issue the calls.
Hey as checked your tool call didn't returned any response, please confirm the response format of your tool call.
g
you mean to try again and see if it still occurs?
s
yes but before that confirm your response strucutre please.
g
The response takes around 60 seconds to return - the hang ups occurred immediately, w/o time for the response to even arrive
s
Hey share the other call id as well.
Hey just confirmed, your calls had hang issue because 11labs delayed the response, and for more check the logs below:- 15:30:54:585 ElevenLabs (Websocket #2) Pushing 62... "It should just take a minute for me to check his availability." 15:30:59:049 11labs: audio received
You can try another voice provider such as cartesia.
g
Oh, really? So there's not much to be done aside from switching the voice provider in this case?
s
Yes, because of 5 seconds timeout it hanged.
g
I see - no way to increase the timeout threshold either?
s
yes even if eben make sense
g
so sorry, what do you mean by that?
h
@Shubham Bajaj my webhook responses don’t work at all
Even w that format
s
hey @howwy please create a separate issue for it.
Yes no way to increase timeout.
Closing this issue, it was becase of 11labs voice output timeout.
g
I see - Maybe look into allowing that in the future Either way, thank you so much @Shubham Bajaj for figuring this one out!
s
Sure buddy, will let you know.
2 Views