osama_76272
10/13/2025, 8:42 PMAI Evy
10/13/2025, 8:42 PMAI Evy
10/13/2025, 8:43 PMend_call function when the user mentions transferring to an operator [(1) ]() . This behavior suggests the agent is interpreting the transfer request as a signal to end the call.
The issue appears to be with your function calling configuration or prompt instructions. Based on the documentation, when implementing function calling with OpenAI models, the LLM will either give a tool call or a text response, but not both .
Here are potential causes and solutions:
1. Function Definition Issue
Your end_call function may be too broadly defined. The documentation shows that functions should have clear, specific parameters . Make sure your function definition includes a message parameter so the agent can deliver a proper goodbye before ending .
2. Prompt Instructions
Community discussions suggest structuring end call instructions clearly [(2) ]() :
- When the conversation comes to an end or the user says "bye": 1. Say "have a great rest of your day". 2. Use "end_call" tool to end the call
- Structuring with numbered steps usually helps
3. Transfer vs End Call Logic
The agent shouldn't end the call when a user requests a transfer. You may need to implement a separate transfer_call function instead of using end_call for transfer scenarios [(3) ]() .
4. Global vs Node-Specific Configuration
Consider whether you have end_call set as a global function when it should be node-specific, or vice versa [(2) ]() . You can also set max call duration and max silence duration as fallbackAI Evy
10/13/2025, 8:43 PMend_call when the conversation naturally concludes, not when transfers are requested.AI Evy
10/13/2025, 8:43 PMAI Evy
10/13/2025, 8:43 PM