Hello,
I am experiencing a critical issue where the Retell platform is not parsing the JSON output from my LLM. It is sending the entire raw JSON string to the text-to-speech engine, causing the agent to speak the code out loud.
I have confirmed this is a platform issue by doing the following:
The "Structured Output" toggle is enabled for my agent.
The behavior persists after a full browser cache clear.
The behavior persists on a brand new agent, ruling out a stuck configuration.
The behavior persists even with a minimal diagnostic prompt designed to eliminate any prompt complexity.
Here is the minimal prompt I used for the final test:
code
Code
You are a JSON generation engine. Your only job is to output a raw JSON object with two keys: "response" and "control_data". The "response" key contains the conversational text. The "control_data" key contains the system command {"end_call": boolean}. Never say the word "JSON" or any part of the control structure.
For the first turn, your output must be this exact JSON object:
{
"response": "This is a simple test. Does this work?",
"control_data": {
"end_call": false
}
}
The agent still speaks the entire JSON block. My LLM is GPT 4o fast #❓・bug-report@User