How to end the call automatically after sending a ...
# support
t
I’ve seen AI in VAPI batch calls sometimes wait for a response before ending, even when told to hang up after sending a text. I can help fix this so calls end immediately after the SMS goes out. We can adjust the AI prompt or handle call termination directly via the API for reliability. Quick question: are you sending the “end call” instruction through the AI output or triggering it from the API? @Mistermanu#000
m
Im using telling the AI to use the endCall tool riggt after sending a text, so just prompt
t
Got it @Mistermanu#000 when endCall is triggered inside normal dialogue, VAPI sometimes waits for a user response. I can help restructure your prompt so the tool call is executed as a system-level action, not part of the conversation. We can also enforce an immediate hang-up by firing the end call from your API right after the SMS event. If you share your current prompt format, I can show you the exact fix.
m
well I could end the call programmatically but some users may want this to happen and some won't, the only way to know is to read the prompt, which is impractical. Ideally it would just use the endCall tool as per the prompt instructions. How could it be defined better so that it works through prompting?