Skip to content

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
  2. Receiving incoming notifications with HTTP API

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:

  1. Click on the trigger selection block

    Image. Create a trigger

  2. Select "WebHooks by Zapier" as the Zap script trigger in the new window

    Image. Choose "WebHooks by Zapier"

  3. Set event type to "Catch Hook"

    Image. Choose "Catch Hook"

  4. Move to the "Test" tab by double-clicking the "Continue" button

  5. Copy the link from the "Webhook URL" field

    Image. Copy the link

  6. Paste this link into the "Notification Sending Address (URL)" field on the instance page

    Image. Add link on the instance page

  7. 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

  8. Click on the "Test Trigger" button and select the query that appears

    Image. Choose the query

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:

  1. Click on the trigger selection block

    Image. Create a trigger

  2. Select "WebHooks by Zapier" as the Zap script trigger in the new window

    Image. Choose "WebHooks by Zapier"

  3. Set event type to "Retrieve Poll"

    Set event type to "Retrieve Poll"

  4. Add a link to receive notifications in the URL field

    Image. Add url for receiving notifications

  5. 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

  6. Click on the "Test Trigger" button and select the notification that appears

    Image of request selection

Before receiving the next notification, you must remove the processed notification at the end of the Zap script execution as follows:

  1. Create an action with the "WebHooks by Zapier" app

    Image. Action block selection

  2. Select "Custom Request" as the request type.

    Image. Select action

  3. Выбрать в поле "Method" значение "DELETE"

    Image. Selecting the method type

  4. Specify the URL for deleting a notification according to the documentation, adding the incoming notification's order number (receptId) after the slash

    Image: Adding a link and receiptId