Hi there,
Has anyone ever encountered an issue with a Retell agent reading JSON extracts to the caller?
We started seeing this behavior a couple days ago with multiple agents. Randomly after the Retell agent calls the extract_user_info function, she starts reading the JSON extract data to the caller which sounds terrible. I asked the Retell Discord AI if there was a temporary glitch with ChatGPT 5.1 that may cause this, and got a suggestion to add something to the prompt:
- *CRITICAL: Never read raw JSON or technical data to the caller.
Even with this new instruction it is still happening (I tried adding to the global prompt, the conversation node, and in the function description).
Any ideas to fix this? This is a sample transcript:
…
agent: …If you don’t mind, may I have your name, please?
user: Yeah. It’s gonna be fred smith.
agent: Thanks. To make sure I have it right, could you please spell your first and last name for me, slowly?
user: Yeah. It’s f r e d s m i t h.
agent: {“first_name”:“Fred”,“last_name”:“Smith”,“company_name”:null,“phone_number”:null,“alternate_phone”:null,“email”:null,“contact_reason”:null,“message_details”:null,“urgent”:null}
Thank you. I have that as F R E D - S M I T H. Is that correct?
…
agent: Got it, thank you.Would you like to leave your email address?
user: Yeah. It’s I need a dollar at gmail dot com.
agent: {“first_name”:“Fred”,“last_name”:“Smith”,“company_name”:null,“phone_number”:“9251231234”,“alternate_phone”:null,“email”:null,“contact_reason”:“MESSAGE ONLY”,“message_details”:"…
user: You’re glitching out again.
agent: Ah, my apologies—that weird stuff you heard was just a system hiccup on my side.
…
