who3677
07/31/2025, 4:45 PMAI Evy
07/31/2025, 4:45 PMAI Evy
07/31/2025, 4:46 PM{{variable_name}}) rather than being replaced [(5) ]() .
Recommended solutions:
1. Ensure your webhook endpoint returns a 2xx status code within 10 seconds to prevent retries [(3) ]() [(4) ]()
2. Implement idempotency checks in your webhook handler to handle potential duplicates
3. For variables in short calls, consider using the call_analyzed webhook event instead of call_ended, as it provides the complete call analysis including all collected dynamic variables [(3) ](AI Evy
07/31/2025, 4:46 PMAI Evy
07/31/2025, 4:46 PMwho3677
07/31/2025, 4:47 PMwho3677
07/31/2025, 4:48 PMAI Evy
07/31/2025, 4:48 PMAI Evy
07/31/2025, 4:48 PMcall_analyzed event to get all the information in one webhook [(1) ]() .
The call_analyzed event is triggered when call analysis is complete and contains the full call data including the call_analysis object . This event includes all fields from the call object that would be in call_ended, plus the complete analysis data .
According to the webhook specification, you can set up your webhook endpoint to handle only the call_analyzed event [(2) ]() . In your webhook handler, you would filter for this specific event type:
javascript
app.post("/webhook", (req: Request, res: Response) => {
const {event, call} = req.body;
switch (event) {
case "call_analyzed":
console.log("Call analyzed event received", call.call_id) ;
break;
default:
console.log("Received an unknown event:", event) ;
}
// Acknowledge the receipt of the event
res.status(204) .send() ;
}) ;
The call_analyzed webhook contains the complete call object with all collected dynamic variables and the full call analysis, so you won't need the separate call_ended event [(1) ]() . This approach ensures you receive all the extracted text and variables in a single webhook after processing is complete .
You can configure this either at the account level through the dashboard's webhooks tab or at the agent level through the agent detail page [(2) ]() .AI Evy
07/31/2025, 4:48 PMAI Evy
07/31/2025, 4:48 PM