https://retellai.com/?utm_source=discord&utm_medium=seo logo
what is wrong with this prompt
# ❓・ai-evy-support
a
Thanks for tagging me @carlo_98907. I'll look through relevant sources and get back to you shortly.
### Answer Based on the Retell AI documentation and community discussions, there are several potential issues with your prompt approach: Configuration Issues: First, ensure you've properly configured the end call tool. You need to add the End Call Tool to your agent and define specific conditions for termination [(1) ]() . The documentation suggests including conditions like: "If the user says 'thank you', 'goodbye', or 'bye', use the end_call tool to terminate the conversation" . Common Problems: 1. **Function Definition**: Make sure the
end_call
function is properly defined in your tools. For single/multi prompt agents, this should be configured in the tools section [(1) ]() [(2) ]() . 2. **Model Behavior**: Some users report that agents sometimes verbally announce the function call instead of executing it silently [(3) ]() [(4) ]() . This can happen when the model outputs something like "functions.end_call_26({execution_message: "Gracias por tu tiempo..."}) " instead of just calling the function [(3) ]() . Recommended Fixes: 1. **Add Response Guidelines**: Include instructions like "When calling a tool / function, DO NOT mix the tool name in your response" [(4) ]() . 2. **Use Natural Triggers**: Instead of commanding immediate execution, use natural conversation cues that trigger the function. For example: "If the user says 'thank you' to end the c
all" [(1) ]() . 3. **Test with Simulation**: Always test using simulation and verify via logs afterward [(2) ]() . Better Prompt Structure: Rather than commanding immediate execution, structure your prompt to recognize natural end-of-conversation signals and then use the end_call tool appropriately. The agent needs to make the decision to call the function based on conversational context, not direct commands.
​ To learn more, see the sources I considered: [[1] End call](https://docs.retellai.com/build/single-multi-prompt/end-call) [[2] End Call Function Doesn’t Work](https://discord.com/channels/1186424376300679209/1356072431994933399) [[3] Discord message from @juanfgx on 2025-08-17](https://discord.com/channels/1186424376300679209/1294891368505937952/1406667947602083981) [[4] issue with end_call](https://discord.com/channels/1186424376300679209/1239737188531306639) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.