mrearthbound
08/14/2025, 6:38 PMAI Evy
08/14/2025, 6:38 PMAI Evy
08/14/2025, 6:38 PM{{variable_name}} syntax in prompts, begin messages, tool descriptions, and other parts of your agent configuration [(2) ]() .
Post-Call Analysis:
Post-call analysis automatically analyzes customer conversations after they have ended [(3) ]() . You can extract Text (String) data which provides detailed textual information like call summaries, action items, or key discussion points . This analysis is available after the call ends and you can subscribe to the call_analyzed webhook event type to receive it once ready [(4) ]() .
Key Differences:
1. **Timing**: Extract Dynamic Variables work during the call, while post-call analysis happens after the call ends [(1) ]() [(3) ]()
2. **Usage**: Dynamic variables can be used immediately in the conversation flow, while post-call analysis is for review and insights [(2) ]() [(3) ]()
3. **Access**: Dynamic variables are accessible via {{variable_name}} syntax during the calAI Evy
08/14/2025, 6:38 PMAI Evy
08/14/2025, 6:38 PMAI Evy
08/14/2025, 6:38 PMmrearthbound
08/14/2025, 11:10 PMAI Evy
08/14/2025, 11:10 PMAI Evy
08/14/2025, 11:10 PM{{variable_name}} = SomeValue where it's always true) , as this doesn't give the function a chance to extract the variable .
2. Use a proper extraction-based condition - Try setting your transition condition to something like "when the phone number is extracted" rather than an equation that's always true .
3. Consider starting fresh - If you imported your agent from a sample, the sample agents may have incorrect configurations that cause this issue . Creating a new agent from scratch rather than modifying an imported sample has resolved this problem for other users .
4. Verify your custom function setup - Ensure your custom function endpoint is properly configured and returns a response with status code 200-299 [(2) ]() . The function result is capped at 15,000 characters and will be converted to string before sending to the LLM .
If the problem persists, you may want to check your function's implementation and ensure it's not getting stuck in a loop due to improper response handling.AI Evy
08/14/2025, 11:10 PMAI Evy
08/14/2025, 11:10 PMmrearthbound
08/14/2025, 11:17 PMAI Evy
08/14/2025, 11:17 PMAI Evy
08/14/2025, 11:17 PMAI Evy
08/14/2025, 11:17 PMcustom_analysis_data object in webhooks is populated through post-call analysis fields that you define, not through dynamic variables extracted during the call [(1) ]() [(2) ]() .
The custom_analysis_data appears in the call_analysis object when you receive the call_analyzed webhook event [(1) ]() [(3) ]() . However, the sources indicate that currently there isn't a direct way to add dynamic variables that were extracted during the call to this field [(4) ]() .
From the community discussions, it appears that:
1. Dynamic variables extracted during state transitions are not automatically included in the custom_analysis_data field
2. Post-call analysis fields are what populate the custom_analysis_data object, but these are analyzed after the call ends rather than being the variables you extracted during the call [(5) ]()
3. The Retell AI team has acknowledged this limitation and added it to their roadmap to provide better visibility for extracted variables in webhooks [(4) ]()
Currently, if you need access to extracted dynamic variables, you would need to access them through the transcript_with_tool_calls property in the webhook payload, where the variables from previous states are stored as JSON edge arguments [(5) ]() .
For now, the custom_analysis_data field is specifically for post-call analysisAI Evy
08/14/2025, 11:17 PMAI Evy
08/14/2025, 11:17 PM