Pabbly is one of the best automation & integration tools that allows you to automate API Campaigns easily.

Here, we'll tell you how you can connect Pabbly with AiSensy to automate API-based campaigns on WhatsApp👇

How Pabbly Works!

Pabbly acts as an intermediate between two applications, transferring data from one app into another. Basically, it works on triggers & actions. A trigger on one app will lead to an action on the other app.

Here are some trigger examples for better understanding-

1. A customer purchases something from your store.

2. A person books an appointment.

3. A person makes a payment.

Here are the actions that you might want to follow:

1. Deliver notification on WhatsApp for the same event

2. Add the person to your AiSensy contacts

3. Add the person to your CRM.

and much more...

Let's understand this with an example of how you can connect an Application like Hubspot to WhatsApp Campaigns via API with Pabbly.

Steps to send WhatsApp API Campaigns using Pabbly

  1. Go to Pabbly Connect & create a "Workflow"

Untitled design   2022 01 20t163445.598

The first step is creating a Workflow. Here, you'll connect your CRM or other software with AiSensy's WhatsApp Campaigns and create sequences to automate API campaigns.

2. Choose App name & select Trigger Event

Untitled design   2022 02 16t150243.385

Next, choose the application you want to connect to & select a trigger event.

Triggers are basically events based on which a user will be sent an API Campaign. For Example, if the user signs up on your platform, a welcome message will be sent.

Press 'Connect' Add your Airmeet API Key to link your Airmeet with Pabbly.

3. WhatsApp API Campaign in AiSensy App

Untitled design   2022 01 20t183623.578

Go to Campaign & create an API Campaign. The image on the left shows a sample Campaign created.

You need to pick a pre-approved WhatsApp template Message & create a Campaign Name.

Don't forget to "Set Live" the Campaign before adding it to the JSON Body.

4. Setting up Actions

Untitled design   2022 02 01t161817.008

In this step, you'll be setting actions for the Trigger.

  • Find & select "AiSensy" in 'Choose App'

  • Set 'Send Template Message' as Action Event.

After this, click 'connect' & Copy paste the API Key from AiSensy App to here.

5. Copy Paste API Key

Untitled design   2022 02 01t162209.030

After choosing the Action, click 'Connect' & copy-paste the API key from the manage section in AiSensy App.

6. Add Campaign Information

Untitled design   2022 02 16t153119.996

Here, add your Campaign name exactly as it shows on AiSensy Campaign Page.

Add the name & Mobile Number of the user along with their country code.

7. Add Source & Tags

Untitled design   2022 02 16t154243.242

In the source, add the name of the app you're connecting with AiSensy, which in this case is Airtable!

Next, map the tags as shown in the image to the right. Separate each tag with a ','

8. Add Parameters & Attributes

Untitled design   2022 02 16t171621.290

Here, map the template parameters. Make sure to separate each parameter with a ',' comma.

Next, map the attributes between '{}' curved brackets and separate each attribute with a comma ','

9. Save & send test Request

Untitled design   2022 02 16t181725.187

Last, save and send a test request to check whether the Campaign is all set or not.

If all goes well, you'll get a success message. If there are errors, you'll receive an 'error message' mentioning the reason for failure.

Revise the campaign & check for underlying errors.

If the error still persists, you can connect with our customer support team for further help.

Things to remember!

  • Optional fields are not necessary for the request payload.

  • The medial URL provided in the media object should be publically accessible, otherwise, the request will be rejected.

  • The length of the template params array should be equal to the number of params required in the campaign whose name is provided in the campaign name field. Otherwise, the request will be rejected.

  • Tags should be created in your project before using them. It can be done by anyone with manager level access.

  • If a tag doesn't exist in your project, the campaign WILL fail. The same goes for Attribute.

  • Only add media if your message contains a media file. Otherwise, ignore it!

  • Attributes should be added to the project before using them. It can be done by anyone with manager level access.

  • If an attribute doesn't exist in your project, it will be ignored.

Did this answer your question?