Setup incoming notifications in Zapier#
After this setup, Zap will be launched when a notification is received, to automate any actions related to receiving incoming notifications from WhatsApp.
You can receive incoming notifications using Webhook technology or HTTP API. The methods have pros and cons, you can choose the one that suits you best.
Table of contents#
1. Receiving incoming notifications with Webhook#
This method is based on Webhook technology.
Warning
This method works only on instances whose number has the format 7XXXXXXXXX
To activate the trigger for receiving incoming notifications in Zapier, direct a link to the Webhook server and set the desired types of incoming notifications. Before receiving incoming notifications, you need to configure the instance. The instance can be configured programmatically using the SetSettings method, or interactively in the personal account interface.
To get a link to the WebHook server, following steps:
-
Click on the trigger selection block
-
Select "WebHooks by Zapier" as the Zap script trigger in the new window
-
Set event type to "Catch Hook"
-
Move to the "Test" tab by double-clicking the "Continue" button
-
Copy the link from the "Webhook URL" field
-
Paste this link into the "Notification Sending Address (URL)" field on the instance page
-
Call sending notifications to the Webhook server for further customization of actions, for example, sending a message to the number to which the instance is linked
-
Click on the "Test Trigger" button and select the query that appears
2. Receiving incoming notifications with HTTP API#
This method receives notifications via HTTP API requests.
Warning
Due to Zapier's request rate limits, the delay between an incoming notification and a response may be between 1 and 2 minutes, depending on your Zapier account plan.
Before receiving incoming notifications, you need to configure the instance. The instance can be configured with the SetSettings method, or interactively in the console interface. Configuring incoming notifications using this method is as follows:
-
Click on the trigger selection block
-
Select "WebHooks by Zapier" as the Zap script trigger in the new window
-
Set event type to "Retrieve Poll"
-
Add a link to receive notifications in the URL field
-
Call sending notifications to the WebHook server for further customization of actions, for example, sending a message to the number to which the instance is linked
-
Click on the "Test Trigger" button and select the notification that appears
Before receiving the next notification, you must remove the processed notification at the end of the Zap script execution as follows:
-
Create an action with the "WebHooks by Zapier" app
-
Select "Custom Request" as the request type.
-
Выбрать в поле "Method" значение "DELETE"
-
Specify the URL for deleting a notification according to the documentation, adding the incoming notification's order number (
receptId
) after the slash