daring_tiger_58367
08/02/2025, 3:26 PMAI Evy
08/02/2025, 3:26 PMAI Evy
08/02/2025, 3:26 PMAI Evy
08/02/2025, 3:26 PMAI Evy
08/02/2025, 3:26 PMAI Evy
08/02/2025, 3:26 PMAI Evy
08/03/2025, 12:30 AMAI Evy
08/03/2025, 12:31 AMcall_analyzed webhook event includes a unique call_id that you can use as your primary identifier . Additionally, you can use the start_timestamp and end_timestamp fields to create composite unique identifiers [(2) ]() [(3) ]() .
Here's what's available in the call analysis webhook response:
json
{
"event_type": "call_analysis",
"call_analysis": {
// Analysis results object
}
}
[(1) ]()
The call object includes these unique identifiers:
json
{
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"start_timestamp": 1703302407333,
"end_timestamp": 1703302428855,
"call_analysis": {
"call_summary": "The agent called the user to ask question about his purchase inquiry...",
"custom_analysis_data": {}
}
}AI Evy
08/03/2025, 12:31 AMcall_id as the primary key for each Google Sheets row [(1) ]() [(2) ]() [(3) ]()
2. Create a composite key using call_id + start_timestamp for additional uniqueness [(2) ]() [(3) ]()
3. Check if the call_id already exists in your sheet before inserting new data
The community has noted that there are 3 different webhooks for each call, and the post call analysis variables are only stored in the call_analyzed event [(4) ]() . Since you're already filtering for call_analyzed events, using the call_id should provide the unique identifier you need to prevent overwrites.AI Evy
08/03/2025, 12:31 AMAI Evy
08/03/2025, 12:31 AMdaring_tiger_58367
08/03/2025, 1:13 AMAI Evy
08/03/2025, 1:13 AMAI Evy
08/03/2025, 1:14 AMjavascript
function handleIncomingWebhook(incomingData) {
// Check if the event type is 'call_analyzed'
if (incomingData.event === 'call_analyzed') {
// If it's 'call_analyzed', forward the data to Make.com
forwardToMake(incomingData) ;
} else {
// Log the unsupported event type for debugging or monitoring
Logger.log('Unsupported event received: ', incomingData) ;
}
}AI Evy
08/03/2025, 1:14 AMAI Evy
08/03/2025, 1:14 AMAI Evy
08/03/2025, 1:14 AMdaring_tiger_58367
08/03/2025, 1:31 AMAI Evy
08/03/2025, 1:31 AMAI Evy
08/03/2025, 1:32 AMcall_id in every webhook payload [(1) ]() . Instead of appending data to Google Sheets, use this ID to update specific rows:
json
{
"event": "call_ended",
"call": {
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"transcript": "...",
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736
}
}
Wait for call_analyzed Webhook Only
Retell AI sends three webhook events: call_started, call_ended, and call_analyzed . The community discussion shows that you should only process the call_analyzed event, which contains the complete call data including analysis [(2) ]() .
Webhook Timeout Considerations
Retell's webhook has a 10-second timeout and retries up to 3 times if no success status (2xx) is received [(1) ]() . If your Google Sheets operations are slow, this could cause duplicate webhook deliveries.
Alternative Approach: Use Get Call API
Instead of relying on webhooks, you can use Retell's Get Call API to fetch transcript data after the call ends, which eliminates concurrent execution issues entirely.
The core issue isn't N8N's webhook processing - it's that multiple Retell webhook events are competing to write data. Focus on using Retell's unique call_id to update specific rows rather than appending new ones.AI Evy
08/03/2025, 1:32 AMAI Evy
08/03/2025, 1:32 AMdaring_tiger_58367
08/03/2025, 1:42 AMAI Evy
08/03/2025, 1:42 AMAI Evy
08/03/2025, 1:42 AMAI Evy
08/03/2025, 1:42 AMAI Evy
08/03/2025, 1:42 AM