https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hey can you tell me the issue related to function ...
# ❓・ai-evy-support
i
@AI Evy Hey can you tell me the issue related to function calling?? as I can see there is an unreasonable delay in the function calling like is this something related to backend deployed code? or something from the retell prompt?
a
Thanks for tagging me @immaculate_cheetah_77268. I'll look through relevant sources and get back to you shortly.
s/1186424376300679209/1393235393448513617) . ## Speech Behavior Configuration When setting up custom functions, you can configure speech behavior to manage how the agent handles delays [(4) ]() : - **Speak during execution**: Whether the agent speaks when the function is called - **Speak after execution**: Whether the agent continues talking after function completion These settings control the agent's behavior when users aren't talking during function call periods . The delays you're experiencing could be related to either your backend infrastructure, Retell's processing, or external factors (especially for transfers) . I'd recommend checking your function configuration and monitoring both your endpoint response times and any external services your functions interact with.
### Answer Based on the available sources, there are several documented issues related to function calling delays in Retell AI: ## Common Function Calling Delay Issues **Transfer Function Delays**: Users have reported significant delays specifically with transfer functions, where agents repeatedly say they are going to transfer and then hang for sometimes multiple minutes [(1) ]() . This appears to be related to the receiving side - transfers spin up a brand-new phone call to the target number, so if that number rings out, has IVR, or is slow to answer, the agent sits in silence until it connects . **General Function Call Delays**: There have been reports of delays exceeding 1 minute between when Retell logs the function call transition and when the actual HTTP request reaches the user's endpoint [(2) ]() . In one documented case, there was a gap of approximately 1 minute 40 seconds between Retell logging the node transition and the endpoint receiving the request . ## Potential Causes The delays can stem from different sources: 1. **Receiving Side Changes**: For transfers, delays often occur when something changes on the receiving side, like the carrier adding IVR, longer ring times, or routing delays [(1) ]() . 2. **Infrastructure Issues**: While user infrastructure may respond quickly once requests arrive, the delay can happen before the request reaches the user's endpoint [(2) ]() . 3. **Configuration Issues**: For outbound calls, delays in initial responses can sometimes be caused by configuration issues like having an empty
begin_message
parameter [(3) ](
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Serious delays with transfer_call function](https://discord.com/channels/1186424376300679209/1409758785026658345) [[2] Delay Between Function call and Request Dispatch is 1min+](https://discord.com/channels/1186424376300679209/1415750014793158776) [[3] Outbound Agent Initial Voice Delay](https://discord.com/channels/1186424376300679209/1393235393448513617) [[4] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​