### Answer
Based on the available sources, here's what's happening with your post-call analysis data:
The post-call analysis fields are populated after the call ends, and Retell AI does not populate custom post-call analysis fields for non-connected calls and calls where no conversation happened [(1) ](
) . Additionally, when using post-call data analysis with a list of variables to extract, the LLM will try to fill the variables, but there's no guarantee all fields will be populated [(2) ](
) .
This explains why you're receiving null data initially—the post-call analysis hasn't been completed yet when the first webhook event fires.
To solve your Supabase update issue, you should:
1.
Check for field existence before using the data [(1) ](
) —this is explicitly recommended in the documentation
2.
Use an UPSERT operation in Supabase instead of INSERT, which will update existing records with the same ID rather than throwing an error
3.
Handle the webhook events properly by checking if post-call analysis data exists before attempting to store it, or design your database schema to allow updates to the same record
The typical flow is:
- First webhook: Call data with null/missing post-call analysis fields
- Second webhook (after analysis completes) : Same call ID but now with populated post-call analysis fields
Your Supabase schema should accommodate this by using the call ID as a primary key and allowing updates to overwrite the initial null values with the completed analysis data.