Tubussie
02/25/2026, 1:32 PMAI Evy
02/25/2026, 1:32 PMAI Evy
02/25/2026, 1:35 PMpost_chat_analysis_data settings. [(1) ]()
Here are the most likely reasons post chat data extraction stopped working after switching from version 0 to version 2:
1. **Different post_chat_analysis_data configuration**: Each version stores its own post_chat_analysis_data array. Version 2 may not have the same extraction fields configured as version 0.
2. **Response engine version mismatch**: The response_engine object includes a version field that ties to a specific Retell LLM version. If version 2 of your agent points to a different LLM version, the extraction behavior may differ.
3. **Webhook configuration differences**: Each version can have different webhook_url and webhook_events settings. Ensure version 2 has chat_analyzed included in webhook_events if you're relying on webhooks for post-chat analysis.
To troubleshoot:
- Use the Get Chat Agent Versions endpoint to compare the post_chat_analysis_data, post_chat_analysis_model, and webhook_events fields between version 0 and version 2.
- Verify the response_engine.version matches the LLM configuration you expect.
You can retrieve all versions with:
javascript
const chatAgentResponses = await client.chatAgent.getVersions('YOUR_AGENT_ID') ;
console.log(chatAgentResponses) ;
Compare the configurations side-by-side to identify what's different in version 2.AI Evy
02/25/2026, 1:35 PMAI Evy
02/25/2026, 1:35 PMAI Evy
02/25/2026, 1:38 PMAI Evy
02/25/2026, 1:39 PMpost_chat_analysis_data — the extraction fields defined
- post_chat_analysis_model — the model used for analysis
- webhook_events — ensure chat_analyzed is included if using webhooks
3. Retrieve a specific version using the optional version query parameter with the Get Chat Agent endpoint to inspect version 2 directly [(2) ]()
Let me know what specific aspect you'd like help with, and I can dig deeper.AI Evy
02/25/2026, 1:39 PMAI Evy
02/25/2026, 1:39 PM