@zehaan
Hello!
It sounds like you're experiencing a common issue where webhooks can sometimes trigger multiple times for a single event. This can happen due to various reasons such as network glitches, retries from the sending service, or issues with the receiving endpoint.
Here are some troubleshooting tips to help you ensure that your webhook only triggers once per request:
1. Check for Retries: Make sure that VAPI isn't configured to retry sending the webhook in case of failure or slow responses. If it is, adjust the retry settings to prevent multiple triggers.
2. Idempotency: Implement an idempotency check in your Make.com scenario. Store the unique identifiers of processed requests and check against this before processing new ones to prevent duplicates.
3. Response Time: Ensure that your webhook endpoint on Make.com is responding quickly enough. If the response is too slow, VAPI might consider it a timeout and retry.
4. Status Codes: Verify that your Make.com webhook is returning the correct HTTP status codes. A 200 OK status code should be returned to acknowledge successful receipt of the webhook without any issues.
5. Logs and Monitoring: Review the logs on both VAPI and Make.com to see if there are multiple requests being sent or if it's an issue with the scenario on Make.com.
6. Deduplication Logic: Add logic within your Make.com scenario to deduplicate events based on a unique attribute in the data payload.
7. Contact Support: If you've gone through these steps and the issue persists, it might be helpful to contact support for both VAPI and Make.com for further assistance.
If you need further assistance or have any more questions, feel free to ask. If your issue is resolved, let me know, and I can close this support ticket for you.