How to setup API Campaigns

3 min. readlast update: 07.16.2024

WhatsApp allows businesses to send pre-approved template messages as notifications to users once the business goes live on WhatsApp Business API. These notifications can be account update, payment update, shipping update etc.

AiSensy offers businesses an easy gateway to send notifications and track performance through campaigns. Businesses can even broadcast messages apart from automating them.

In this article, we’re going to see how to send automated messages to users through AiSensy in 3 simple steps.

Pre-requisites

1. Verified WhatsApp Business API

2. At least one pre-approved template message

3. Tools to make HTTP/S request (We’ll be using Postman in this article).

 

STEP 1: Create an API campaign

If you haven’t registered for AiSensy, Sign up today.

Go to AiSensy -> Login -> Create a new project or open your existing project -> Campaigns -> Launch campaign -> Select API campaign -> Create your new campaign –> Set your campaign live

There you go, you have created your first API campaign.

STEP 2: Copy API key

Go to AiSensy –> Open your project –> Go to manage page –> Copy API key

We’ll be using this key while sending notifications. The key must be stored privately for security reasons. You can always regenerate this key.

 

STEP 3: Send notification to user

We’ll use the campaign's name and key from previous steps. To avoid the hassle of configuring messages on the business end, The API is designed to receive the parameters’ values to be filled in templates before sending them to users.

Refer this doc to learn more about the API fields.

Let’s send our first notification.

An API key is the secret key used for authentication while requesting our APIs. Please write to us at support@aisensy.com if you require assistance in API integrations with the Subject: Need Assistance in API Integrations.

 

 

How are WhatsApp Broadcast and API Campaign different?

WhatsApp API Campaign: In this, you choose a fixed pre-approved template message for a particular event that is being triggered by the user. Now, every time users trigger the event, they receive that particular template message automatically through APIs.

Example – Abandoned Cart message for e-Commerce stores, Payment Confirmation message for every successful payment etc.

WhatsApp Broadcast Campaign: In this, you have the liberty to choose a message type from Pre-approved Template Message and Regular Message. Let’s suppose you choose a template message.

Now, you configure the dynamic values of the template message, choose the audience you want to send the message to and shoot the campaign. Hence, this is done manually and not through APIs.

Example – Event reminder message to all the participants, Offer Message to all the Active Users through a Regular Message etc.

 

 

 

Was this article helpful?