https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why when I change the agent version from version 0...
# ❓・ai-evy-support
t
@AI Evy Why when I change the agent version from version 0 to version 2, does the post chat data extraction stop working
a
Thanks for tagging me @Tubussie. I'll look through relevant sources and get back to you shortly.
### Answer When you switch between agent versions, each version maintains its own independent configuration, including the
post_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:
Copy code
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.
​ To learn more, see the sources I considered: [[1] Get Chat Agent Versions](https://docs.retellai.com/api-references/get-chat-agent-versions) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @Tubussie. I'll get back to you soon.
### Answer --- It looks like you're following up on the previous answer. Is there something specific you'd like me to clarify or help with further regarding the post chat data extraction issue when switching agent versions? If you're still experiencing the problem, here are a few next steps you could try: 1. Compare version configurations using the Get Chat Agent Versions API to see exactly what differs between version 0 and version 2 [(1) ]() 2. Check these specific fields in both versions: -
post_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.
​ To learn more, see the sources I considered: [[1] Get Chat Agent Versions](https://docs.retellai.com/api-references/get-chat-agent-versions) [[2] Get Chat Agent](https://docs.retellai.com/api-references/get-chat-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.