https://retellai.com/?utm_source=discord&utm_medium=seo logo
My ai agent takes so long between triggering funct...
# ❓・ai-evy-support
b
@AI Evy My ai agent takes so long between triggering functions that it just feels like its ignoring your responses when in reality it is just triggering the function on the backend. What can I do about that?
a
Thanks for tagging me @byredyre. I'll look through relevant sources and get back to you shortly.
### Answer When your agent triggers a function that takes time to execute, you have configuration options to keep the conversation flowing instead of creating awkward silence [(1) ]() . In your function configuration, you should: 1. Set "Wait for Result" to OFF - This allows the agent to continue the conversation without waiting for the function to complete . 2. Set "Speak During Execution" to ON - This enables the agent to say something while the function runs in the background . However, note that "Speak During Execution" will use a static message that you define . If you need the agent to continue taking orders or having a dynamic conversation (not just a static message) , this approach has limitations . For longer-running functions where you want more natural conversation flow, consider returning instructive status messages from your function. For example, you could return something like
{"message": "processing your request, let me continue helping you with..."}
to guide the agent's next response [(2) ]() . The key is configuring your custom function's execution settings in the dashboard to prevent the agent from staying silent during backend processing [(3) ]() [(1) ]() .
​ To learn more, see the sources I considered: [[1] Call function and wait](https://discord.com/channels/1186424376300679209/1406073007272759497) [[2] Discord message from @0xluffyb on 2025-03-10](https://discord.com/channels/1186424376300679209/1186462578310910112/1348518845798940704) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.