How to automate API campaigns using Pabbly?

How to automate API campaigns using Pabbly?

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 FlexiWaba 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, Picture 

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


2. Choose App name & select Trigger Event 

Untitled design   2022 02 16t150243.385, Picture 

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 FlexiWaba App 

Untitled design   2022 01 20t183623.578, Picture 

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, Picture 

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

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

  • Set 'Send Template Message' as Action Event. 

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

 

5. Copy Paste API Key 

Untitled design   2022 02 01t162209.030, Picture 

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


6. Add Campaign Information 

Untitled design   2022 02 16t153119.996, Picture 

Here, add your Campaign name exactly as it shows on FlexiWaba 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, Picture 

In the source, add the name of the app you're connecting with FlexiWabA, 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, Picture 

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 

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. 

    • Related Articles

    • API Documentation

      Running an API in Postman is a straightforward process, but it becomes even more useful when you need to include custom headers and a specific JSON request body. In this guide, we'll walk you through the steps to run the WABA API using Postman with a ...
    • How to use API Calls Request feature in Chatbot Flows?

      1. Create a New Flow Go to Flow Builder and click Create Flow to create the flow for your WhatsApp Chatbot. 2. Select API Request from the Content Block 3. API Request Configuration Follow the below steps to configure API Requests: 1. URL Specify the ...
    • How to Create Ecommerce WhatsApp Chatbot using Flow Builder?

      For creating a simple Chatbot for an Ecommerce website. Follow the steps below: 1. Unlock Flow Builder The very first step you need to do is request the Alendei Team to Unlock the Flow Builder. 2. Create a New Flow Now, go to Flow Builder and click ...
    • How to create WooCommerce Secret API Keys?

      Here are the steps you need to follow to generate the WooCommerce Secret API keys: 1. Go to WooCommerce Dashboard & reach the 'All Users' page First, go to your WooCommerce Admin Dashboard & under Users, pick all users. 2. 'Add New' user Next, ...
    • STOP-LIGHT DOCUMENTATION for Template API

      STOP-LIGHT DOCUMENTATION The released documentation covers how to use APIs to send templates directly from the Marketing panel. POST https://connect.api-wa.co/project-apis/v1/project/{project_id}/messages PARAMETER Project_id : XXX AUTH ...