Twilio Webhook triggers twice and creates duplicate Google Sheets rows & SMS

:bullseye: What is your goal?

I want to receive an incoming call webhook from Twilio, check if the phone number already exists in Google Sheets, and if not, add a single row and send a single Twilio SMS

:thinking: What is the problem?

Every time someone calls my Twilio number, Make receives multiple execution bundles (ringing status updates). Even after adding a Google Sheets Search Rows module, the scenario still executes twice, creating duplicate rows in Google Sheets and sending the SMS twice.

:test_tube: What have you tried so far?

I tried filtering by CallStatus (completed or ringing), but it either blocks everything or lets both requests through. I also tried adding a Search Rows module before adding a row, but the filter with (Total number of bundles = 0) didn’t prevent the duplicate execution.

:camera_with_flash: Screenshots: scenario setup, module configuration, errors

The multiple bundles come from Twilio, not your scenario. Twilio fires the webhook once per call status event, so one call can hit it 3 or 4 times (queued, ringing, in-progress, completed). Also check the Twilio console: if both ‘A call comes in’ and ‘Call status changes’ point at the same Make webhook URL, you get double hits for sure. Keep only one.

Filtering on CallStatus is unreliable because that value keeps changing during the call. The stable key is CallSid, the same on every webhook of one call. Build the dedupe around it.

A Make Data Store works well here. Search it for the CallSid right after the webhook. If nothing is found, add the CallSid as a new record and continue to your Add Row and SMS. If it is found, stop the route there.

One thing that quietly breaks this setup: two bundles can arrive almost at the same moment and both pass the ‘not found’ check before either writes the row. That is why your Search Rows filter did not stop the duplicates. Turn on Sequential processing in scenario settings so bundles run one at a time, and the race disappears.

Also, when Search Rows finds nothing the route stops right there, so your ‘total bundles = 0’ filter after it never ran at all.

Twilio fires multiple webhooks for a single call across different status transitions like ringing, answered, and completed, which triggers Make.com multiple times if your webhook listener accepts all events. To fix this, add a filter right after your Twilio webhook module where `CallStatus` equals ‘completed’, and use the unique `CallSid` as a lookup key rather than just searching by phone number. Let me know if your Twilio webhook is currently set up to send status callbacks for every event and I can outline the exact filter setup right here.

hey, twilio sends multiple webhooks for different call events at almost the same time. to fix this easily, turn on sequential processing in ur scenario settings so runs happen one by one instead of together. also use the unique CallSid with a make data store or search rows before adding to google sheets so duplicate triggers get blocked right away. hope this helps.

If the Sheets row is saved but the SMS fails, how does the next run tell whether that caller still needs a text?

Your Twilio screenshot has a URL only under “A call comes in”. The fallback URL and “Call status changes” are empty, so the second run is not a status callback. If your “completed” filter was the one that blocked everything, this is why.

The Date values in your two rows are 3 seconds apart. In the scenario History, open each run, click the bubble on the Webhook module and compare the CallSid. If it’s the same in both, Twilio sent one call twice, and KrazyDev’s Data Store check on CallSid stops it. If it’s different, they are two separate calls, and your phone number check has to catch it.

In both cases, turn on “Process data in order” in Scenario settings, as KrazyDev and Zubbaria said. By default Make runs webhooks in parallel, so two runs can both search before either adds the row: Scenario settings - Help Center

Also, your sheet shows the numbers without a +, but Twilio sends From with one. If Search Rows looks for From as it comes, it may never match.

I haven’t tested this with Twilio myself. Is the CallSid the same in both runs?

Quick tip: Twilio fires a separate webhook for each call status, so stop it at the door. First, in the Twilio console, open your number’s Voice settings and set the status callback to only the “completed” event, or put a filter right after the webhook with CallStatus equal to completed. Second, add a Search Rows module with the phone number column as the filter, and set “Table contains headers” correctly. Third, put a Google Sheets filter after it with Total number of bundles equal to 0, and make sure the Search Rows output is set to return all rows. Fourth, to catch near-simultaneous runs, turn on “Sequential processing” in scenario settings so two runs can’t check the sheet at the same moment. I build small automations like this. Happy to share how I’d set it up for your case.

Thanks for the clear breakdown and the tip on Sequential processing!

Actually, I dropped Twilio because in France I can only get local 09 numbers on it, which don’t let me send SMS messages—so I’m trying to build a simpler setup using a regular phone number instead.Here is an overview of what I want my bot to do from start to finish:

  1. When someone calls the number and gets no answer (missed call), the bot automatically sends them a first follow-up SMS and logs their phone number, the date, and an initial status (SMS envoyé) in Google Sheets without creating duplicate rows.

  2. When the caller replies by SMS, the bot passes their message to OpenAI (gpt-4o-mini), which holds a natural two-way conversation by asking one short question at a time to collect 4 specific pieces of information.

  3. As the conversation progresses, the bot extracts the answers, updates the matching row in Google Sheets, and automatically sends OpenAI’s next question back by SMS until all 4 pieces of information are filled in.

Right now, I’m testing on my own phone number and haven’t got the SMS part working yet because I haven’t found a working gateway for it.

Could this workflow only work with Twilio, or do you know of other solutions or gateways that can catch missed calls + two-way SMS and send SMS replies from Make?

There is sendSMS and ClickSend as well.