https://retellai.com/?utm_source=discord&utm_medium=seo logo
Webhook not delivering Post-Call Analysis variable...
# ❓・bug-report
h
I’ve set up an agent with Post-Call Analysis fields for User_Name, User_Email, and Fitness_Goal. The agent-level webhook is working, but the payload only includes call_started and basic call metadata not the extracted fields. Can you confirm: Are Post-Call variables sent in any webhook (e.g., call_ended, call_completed)? If not, is there a way to include them via webhook or API? Does upgrading to GPT-4o enable webhook delivery of these fields? I’m integrating with Make.com and need to push call summaries and variables into Google Sheets. Thanks.
j
I'm not an expert but I literally just went through this issue and I can say that yes, the post call variables are included in the webhook payload. if you add the trigger to a new workflow in ghl and then make a call (of course make sure to set that webhook url in retell), you can see the entire payload data and your variables should be there (mine were). unfortunately I had some issues with getting them to post to the contact, but after like 2 hours I finally got that to work. hope that helps
f
Post Call Anaylsis variables are only sent in the call_analzyed hook and only there if the model was able to extract them successfully.
h
Aha, that's what I needed to know. I was not looking for the right hook. Thanks!
p
@AI Evy Does postcall analysis prompt support the injected variables?
a
Thanks for tagging me @ph7jack. I'll look through relevant sources and get back to you shortly.
### Answer Dynamic variables can be used in various parts of the agent configuration including prompts, begin messages, tool call descriptions, and other settings [(1) ]() . However, based on the available documentation, there is no explicit confirmation that post-call analysis prompts support dynamic variables. For post-call analysis, you can extract data in boolean, text, number, or selector formats [(2) ]() , and access the results through the dashboard, webhook (call_analysis event) , or API [(3) ]() . If you need to capture variables during the call, you may want to consider using tool calls to collect the data as it comes in [(4) ]() . I should note that if you need a general answer about using dynamic variables with post-call analysis, I can provide that if you'd like. Just let me know!
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) [[3] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[4] Capturing and exporting dynamic variables](https://discord.com/channels/1186424376300679209/1299863990805204993) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.