Agents Go Idle When Calling Tool Functions Only To...
# support
a
I've been using the same agent for a few months now, and just recently when I started adding some more email tools in place (functions), the agent will say they are sending the e-mail and then wait as long as 90 seconds, before saying they sent something. (However nothing is sent) I have the agent drafting the breif email but I've had much greater success in the past. It seems agent voice stalls in general are happening more and more and more recently too. Anyone seeing this issue or have any ideas?
v
Thanks for sharing the details. When your agent calls a tool function (like sending email), Vapi expects a response from your server URL—if the server is slow or not configured, the agent may stall or fail to send the email. Could you confirm if your server URL is set and whether your server is receiving and responding to these function call requests? This will help narrow down whether the issue is with the server configuration or something else. Let me know, and I can suggest the next troubleshooting steps! Sources: - [Vapi docs Server Events](https://docs.vapi.ai/server-url/events) - [Vapi docs Default Tools](https://docs.vapi.ai/tools/default-tools) - [Discord report: Outbound call not executed](https://discord.com/channels/1211482211119796234/1372358449761091584)
a
Yes, I am getting the call info via an N8N webhook, processing and sending email via Postmark, and then completing the flow with a Respond To Webhook Node. Is there a specific thing the server is wanting to hear upon completion?
k
Set your email tool’s async to false, define clear start, delayed, and success messages, ensure the tool returns compact valid JSON with the correct toolCallId, and if delays persist, switch to GPT-4 Turbo.