Tubussie
02/25/2026, 5:07 PMAI Evy
02/25/2026, 5:07 PMAI Evy
02/25/2026, 5:07 PManalysis_successful_prompt field on your agent. [(1) ]()
This prompt defines the criteria the system uses to evaluate whether the interaction was successful. For example, the default prompt is:
> "The agent finished the task and the call was complete without being cutoff."
You can customize this prompt to match your own success criteria. [(2) ]() To update it:
- In the Dashboard: Navigate to the agent's Post-Call Data Extraction section and edit the prompt that evaluates whether a call or chat was successful.
- Via API: Use the analysis_successful_prompt field when updating your chat agent. [(1) ]()
After updating the prompt, you can rerun the analysis to regenerate results based on your revised criteria. [(2) ]()
Note: When you rerun analysis, the system always uses the prompts from the latest draft version of the agent—even if the chat was originally handled by an older published version.AI Evy
02/25/2026, 5:07 PMAI Evy
02/25/2026, 5:07 PMTubussie
02/25/2026, 5:09 PMAI Evy
02/25/2026, 5:09 PMAI Evy
02/25/2026, 5:09 PManalysis_successful_prompt (which determines whether a chat is marked "successful" or "unsuccessful") does not control whether post-call/chat data extraction works.
Post-call analysis will still run and extract data (Boolean, Text, Number, Selector fields) regardless of the success determination. [(1) ]() The "chat successful" field is just one of the built-in analysis categories—it doesn't gate or prevent other data extraction from occurring.
However, there is one important note: Retell AI will not populate custom post-call analysis fields for calls/chats that were not connected or where no conversation took place. So if there's no actual conversation, extraction won't run—but that's unrelated to the success/unsuccessful determination.
In short:
- "Chat successful" prompt → determines the success/failure label only
- Data extraction → runs independently as long as a conversation occurredAI Evy
02/25/2026, 5:09 PMAI Evy
02/25/2026, 5:09 PMTubussie
02/25/2026, 5:09 PMAI Evy
02/25/2026, 5:09 PMAI Evy
02/25/2026, 5:10 PMpost_chat_analysis_model? (Options include gpt-4.1-mini, gpt-4.1, etc.) [(3) ]()
- Can you share a chat_id where extraction failed?
If you're seeing the JSON parsing error specifically, try changing your post-chat analysis model to GPT 4.1 or GPT 4.1 mini. [(2) ]()AI Evy
02/25/2026, 5:10 PMAI Evy
02/25/2026, 5:10 PMTubussie
02/25/2026, 5:12 PMAI Evy
02/25/2026, 5:12 PMAI Evy
02/25/2026, 5:12 PMgpt-4.1-mini, specific chat ID) , the available sources don't contain specific troubleshooting steps for this exact scenario.
However, here are a few things to verify:
1. Check your post_call_analysis_data configuration
Ensure you have properly defined the extraction fields on your agent. The post_call_analysis_data field should contain your custom extraction definitions with the correct type, name, and description. [(1) ]() [(2) ]() [(3) ]()
2. Verify the analysis model setting
Confirm post_call_analysis_model is set correctly—`gpt-4.1-mini` is a valid option.
3. Try rerunning the analysis
You can rerun post-call/chat analysis from the dashboard to regenerate results.
Since the sources I have access to don't cover the specific case where extraction silently fails with no error message despite a valid conversation, I'd recommend:
- Check out these potentially useful sources: [Post Call Analysis Overview]() , [Update Chat Agent]() , [Rerun Post-Call/Chat Analysis]()
Would you like me to try to answer generally based on my knowledge, or would you prefer to reach out to Retell support with your specific chat ID for investigation?AI Evy
02/25/2026, 5:12 PMAI Evy
02/25/2026, 5:12 PMTubussie
02/25/2026, 5:16 PMAI Evy
02/25/2026, 5:16 PMAI Evy
02/25/2026, 5:16 PMpost_chat_analysis_data (not post_call_analysis_data) . [(1) ]() [(2) ]()
Here's what to verify for your Chat Agent:
1. Confirm your extraction fields are configured correctly
The post_chat_analysis_data field should be set on your chat agent with proper definitions: [(1) ]()
json
"post_chat_analysis_data": [
{
"type": "string",
"name": "customer_name",
"description": "The name of the customer.",
"examples": [
"John Doe",
"Jane Smith"
]
}
]
2. Check data storage settings
One Discord user discovered that having data storage disabled prevented post-call analysis from working. When they disabled the "opt out of recording" setting, analysis started working. [(3) ]()
Check your data_storage_setting field—if it's set to basic_attributes_only, transcripts won't be stored and analysis may not run properly. [(1) ]() [(2) ]()
3. Try rerunning the analysis
From the dashboard, you can rerun post-chat analysis to regenerate results. [(4) ]()
If none of these resolve the issue, I'd recommend reaching out to Retell support with your chat ID (chat_fc2935ce5a3e32defc7a5f26f97) for direct investigation.AI Evy
02/25/2026, 5:16 PMAI Evy
02/25/2026, 5:16 PM