https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'm facing a specific and frustrating problem when...
# ❓・ai-evy-support
d
@AI Evy I'm facing a specific and frustrating problem when trying to fetch the Transcript from Retell. N8N reports successful data insertion into Google Sheets. Initially, the sheet shows the correct data in the right rows and columns, but then some data suddenly vanishes despite logs confirming successful input. The data flashes into Google Sheets and then disappears, which likely indicates issues with concurrent executions overwriting each other. I've added a 5-second delay filter before transferring data to Google Sheets, but the problem continues. I am sending 9 concurrent call executions per minute with a Delay filter. Please advise on how to resolve this issue.
a
Thanks for tagging me @daring_tiger_58367. I'll look through relevant sources and get back to you shortly.
### Answer [(1) ]() , [(2) ]() , [(3) ]() , [(4) ](

▾

) , [(5) ](

▾

) , [(6) ]() , [(7) ]() , [(8) ]() , [(9) ]() Based on the available sources, there are several known issues with N8N and Google Sheets integration that could be causing your data to disappear: Webhook Credential Issues One user discovered that Retell AI only allows full data extraction one time with test webhook credentials . The issue was resolved by switching from N8N Test Webhook URL to N8N Production Webhook URL . Make sure you're using production credentials after your first test . Transcript Data Handling When working with transcripts, be aware that Retell AI sends multiple transcript updates as the speech recognition corrects itself over time [(6) ]() . The transcript is correcting itself overtime, and the system sends the latest update all the time, so you see the corrections . Every time something is sent, it's the full transcript . To handle these multiple transcripts, always let the latest one generate the response and drop the previous ones . Concurrent Execution Management Your suspicion about concurrent executions overwriting each other is likely correct. The sources show that handling multiple simultaneous calls can cause data conflicts. One user created a workflow for handling f
ailed transfers that includes adding caller information as custom fields and sending call summaries to N8N [(7) ]() . Recommended Solutions: 1. Switch to production webhook credentials if you're still using test credentials [(9) ]() 2. Implement proper handling for multiple transcript updates by using the latest response_id and not sending responses if they are stale [(6) ]() 3. Consider using Post-Call Analysis data extraction instead of real-time transcript processing, as this data comes in the call_analyzed webhook only [(8) ]() 4. Add unique identifiers to your data rows to prevent overwrites from concurrent executions The transcript data is available after call ends in the call response [(1) ]() [(2) ]() [(3) ]() , so you might want to fetch it using the Get Call API rather than relying on real-time webhook updates for better reliability.
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) [[3] Get Call](https://docs.retellai.com/api-references/get-call) [[4] Personalization with Google Sheets](

https://www.youtube.com/watch?v=A9H3a33gM2M▾

) [[5] Personalization with Google Sheets](

https://www.youtube.com/watch?v=A9H3a33gM2M▾

) [[6] Multiple Transcripts in Websocket](https://discord.com/channels/1186424376300679209/1252583093160902656) [[7] Discord message from @.7mile on 2025-07-16](https://discord.com/channels/1186424376300679209/1186462578310910112/1394833335779590254) [[8] How to filter for data from the transcript -> Googlesheet](https://discord.com/channels/1186424376300679209/1347654908324876378) [[9] Trying to extract data via Webhook to N8N to Google Sheets - Not working](https://discord.com/channels/1186424376300679209/1340125596889382983) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @daring_tiger_58367. I'll get back to you soon.
### Answer For preventing concurrent execution overwrites when using post-call analysis data, you can leverage unique identifiers that Retell AI provides in the webhook payload [(1) ]() . The
call_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:
Copy code
json
{
  "event_type": "call_analysis",
  "call_analysis": {
    // Analysis results object
  }
}
[(1) ]() The call object includes these unique identifiers:
Copy code
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": {}
  }
}
[(2) ]() , [(3) ]() For your N8N workflow, you can: 1. Use
call_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.
​ To learn more, see the sources I considered: [[1] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[2] Update Call](https://docs.retellai.com/api-references/update-call) [[3] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[4] Discord message from @keshav3 on 2025-01-30](https://discord.com/channels/1186424376300679209/1186462578310910112/1334444968156332126) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy @User It does not resolve the issue. The data flashes into Google Sheets and then disappears, which likely indicates issues with concurrent executions overwriting each other. I've added a 5-second delay filter before transferring data to Google Sheets, but the problem continues. I am sending 9 concurrent call executions per minute with a Delay filter. Please advise on how to resolve this issue.
a
Thanks for the follow-up, @daring_tiger_58367. I'll get back to you soon.
### Answer Based on your description of data flashing into Google Sheets and then disappearing with 9 concurrent executions, this is likely a race condition issue with concurrent webhook processing. Here are specific solutions from the community: Webhook Processing Issue The community has identified that Retell sends three webhooks during/after a call, and the "call_analyzed" one comes last [(1) ]() . When dealing with concurrent calls, you need to ensure your scenario is properly activated rather than using "run once" . Filtering Solution A community member solved a similar filtering issue by modifying the condition to use the "Text operator: Equal to (case insensitive) " instead of the default filter . This resolved the issue where call_analyzed webhooks were being blocked. Google Apps Script Workaround To prevent webhook conflicts, one community solution uses Google Apps Script to filter only call_analyzed events before they reach your automation platform [(2) ]() :
Copy code
javascript
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) ;
  }
}
Concurrency Considerations Pay-As-You-Go users are allocated 20 concurrent calls by default [(3) ]() . With 9 concurrent executions per minute, you're within the concurrency limit, but the rapid succession of webhook processing may be causing the overwrite issue . Recommended Approach 1. Implement the Google Apps Script filter to only process call_analyzed webhooks [(2) ]() 2. Use "Text operator: Equal to (case insensitive) " for your filtering conditions [(1) ]() 3. Ensure your N8N scenario is activated (not just "run once") 4. Consider processing webhooks sequentially rather than concurrently to prevent overwrites The 5-second delay isn't addressing the root cause - the issue is multiple webhook events competing to write to the same Google Sheets rows.
​ To learn more, see the sources I considered: [[1] Can't filter for "call_analyzed". Infos blocked between webhooks and Google Sheets scenario](https://discord.com/channels/1186424376300679209/1345451279589183590) [[2] Discord message from @sanava.ai on 2024-11-23](https://discord.com/channels/1186424376300679209/1186462578310910112/1309952257013579918) [[3] Understand concurrency & limits](https://docs.retellai.com/deploy/concurrency) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy There is no such option in N8N for webhooks to be executed sequentially rather than concurrently to prevent overwrites. Please advise.
a
Thanks for the follow-up, @daring_tiger_58367. I'll get back to you soon.
### Answer You're correct that N8N doesn't have built-in sequential webhook processing. For your concurrent execution issue with Google Sheets, here are Retell AI-specific solutions: Use Retell's Call ID for Row Management Retell AI provides a unique
call_id
in every webhook payload [(1) ]() . Instead of appending data to Google Sheets, use this ID to update specific rows:
Copy code
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.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Discord message from @gillo1755 on 2025-06-01](https://discord.com/channels/1186424376300679209/1186462578310910112/1378792133800230953) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy The key point is, I already have a filter node in N8N that only allows call_analyzed data through. Therefore, there's no way the two webhook events—call_started, and call_ended,—to compete for writing data, since only call_analyzed data is passed in my current workflow.
a
Thanks for the follow-up, @daring_tiger_58367. I'll get back to you soon.
### Answer
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.