https://retellai.com/?utm_source=discord&utm_medium=seo logo
Agent says transfer function JSON information out ...
# ❓・bug-report
s
I got an error where the agent goes to transfer the user, but instead of calling the transfer function, it instead says what I assume is the behind the scenes function JSON structure out loud to the caller. This is what happened: Agent: Okay, I’m not able to help with that directly. Are you okay if I transfer you to a service advisor now? 0:21 User: Yes. 0:27 Agent: {"execution_message":"Just a heads-up — if the advisor isn’t able to pick up right away, they’re likely helping other customers. Please leave a voicemail, and they’ll return your call as soon as they’re available.","transfer_destination_number":"+16174542933","transfer_number_extension":null} Just a heads-up — if the advisor isn’t able to pick up right away, they’re likely helping other customers. Please leave a voicemail, and they’ll return your call as soon as they’re available. Call ID: call_30d3aa3fc456deadc3a5666d66f.
s
make sure the agent is calling the transfer function, not describing it
c
which model are you using?
some models don't have the best tool calls
s
This one is using GPT 5.1. Does that model struggle with tool calling?
Since it's a call flow agent and I'm using a transfer node, I don't have a lot of control over how it's called. Would adding more specific instruction to the Global Prompt reduce this risk?
s
yes add specific instruction