WhatsApp Webhook help

Hi, I created a webhook when I receive a message on WhatsApp, then I put the message in a table in Ertable and send the response on WhatsApp.
The whole process works great.
But for some reason it sends the response 3 times and generates an error.
I have no idea why the webhook works 3-4 times in a message.
When I disconnect the last action of sending the response, I see that the webhook only runs once.

Hi @rrbbtalnorth,

First off, welcome to Pipedream! Happy to have you.

May I confirm my understanding:

  • You have created a workflow with HTTP Webhook trigger
  • The HTTP Webhook trigger endpoint is called by WhatsApp
  • The issue is there’re 3 events generated for each message on Whatsapp right?

Yes, you got it right

When I tried to remove Airtable from the scenario, and was left with only Webhook and WhatsApp,
So for some reason WhatsApp sent the message 100 times, until I stopped the scenario

May I ask how do you register Pipedream webhook into Whatsapp? I think this part on Whatsapp might be the issue, since Pipedream will emits event for every webhook call it received.

I’ve also added a ticket here to implement a builtin source for Whatsapp: [TRIGGER] WhatsApp Business - New Message source · Issue #5213 · PipedreamHQ/pipedream · GitHub. After this is implemented, you’ll be able to use the source out-of-the-box instead of registering the webhook manually.

Kindly subscribe to the ticket to be noticed when this landed!

Normal web trigger not good enough?

I connected the Webhook to WhatsApp

Pipedream source has the feature to deduplicate the event based on a field. So maybe with a source this issue should not occur for you.

I would appreciate it if you could explain to me what software it is

Hello @rrbbtalnorth, you can read through this document to understand Pipedream source Sources

Hi, for the benefit of the readers, the continuation of the discussion in this post, I have attached there the solution that suited me.