Haptik

Understand how to integrate Haptik with CleverTap for WhatsApp communication

🚧

Support For Integration

This integration is completed by Haptik, and they are dedicated to maintaining and enhancing it. The CleverTap and Haptik integration has undergone stringent testing to ensure seamless functionality. For any questions or issues, contact Haptik for support and resolution.

Introduction

CleverTap users can now leverage the following WhatsApp capabilities of Haptik to communicate the following with their customers.

  • Sending just-in-time offers to customers to drive purchases
  • Gathering feedback on the services
  • Keeping customers informed and more

Prerequisites for Integration

The following are the prerequisites:

  • You must have a WhatsApp add-on enabled on the Clevertap account in addition to the basic or essentials price plan.
  • Ensure that WhatsApp onboarding for the phone number to be used with CleverTap is completed.
  • You must have Haptik's WhatsApp Business API

Integrate Haptik with CleverTap

This process involves the following three steps:

  1. Find Haptik Credentials
  2. Configure CleverTap Dashboard
  3. Set up CleverTap callbacks in Haptik

Find Haptik Credentials

We recommend that you keep the Callback URL and Token details handy before starting with the configuration on the CleverTap dashboard:

To find these credentials:

  1. Navigate to your Haptik Conversation Studio platform.
  2. Open your bot account.
  3. Navigate to Business Manager > Channels > Platform Deployments.
  4. Select CleverTap from the Platform drop-down.

Copy the credentials for configuring the CleverTap dashboard:

  • Callback URL
  • Token
2552

Haptik Credentials

Configure CleverTap Dashboard

To configure the CleverTap dashboard:

  1. Navigate to Settings > Channels > WhatsApp > WhatsApp Connect from the CleverTap dashboard.
  2. Click + Add Provider and Log in to Facebook.
Provider Setup

Provider Setup

  1. Enter the following details:
FieldDescription
ProviderSelect Other (Generic) from the dropdown list.
NicknameEnter the nickname as Haptik or Haptik <10 digit phone number> for easy reference.
WhatsApp Business NumberEnter your phone number onboarded to WhatsApp API by Haptik.
Request TypeEnsure the Request Type is Post
HTTP EndpointPaste the Callback URL from Haptik's Platform Deployments tab as illustrated in the previous step.

Ensure that the URL is in HTTPS format, i.e, your URL must begin with https://.
HeadersClick Header > and then Enter the Key name as Token and paste the token value copied from Haptik's Platform Deployments tab, as illustrated in the previous step.

📘

Callback URL

While pasting the Callback URL from the Haptik dashboard to the CleverTap dashboard, ensure that the URL is in HTTPS format, i.e your URL must begin with https://.

  1. Select the Mark this as default checkbox to make this service provider the default provider to send a WhatsApp message.
  2. To send an automatic reply to users who message on WhatsApp but are not tracked on the CleverTap dashboard, select the Set auto-reply for users not tracked on CleverTap checkbox.
  3. (Optional) You can set the Maximum Concurrent API requests anywhere between 30 to 1000 requests. Consider your requirement and the provider's limitations to define this value.
  4. Click Save to save the details.

Set Up CleverTap Callbacks in Haptik

To set up the CleverTap callbacks:

  1. Copy the Delivery Report Callback URL from the CleverTap dashboard. You can find the Callback URLs under the Provider Setup page ( Settings > Channels > WhatsApp > Haptik)
938

Configure Callbacks

  1. Paste the callback URL:
    a. Open your Haptik bot account > navigate to Business Manager > Channels > Platform Deployments.
    b. Paste the callback URL under the CleverTap Webhook URL as illustrated in the following image.
2552

Configure Callbacks

Finding Template Details

You need to replicate the details of your pre-approved templates on CleverTap. To find the details of your pre-approved templates on Haptik, navigate to the Template section from the Haptik dashboard, as shown below.

1314

Find Template Details

The Green dot indicates the approved templates. You can replicate these pre-approved templates in CleverTap to start sending campaigns. Refer to the section below to understand how to add templates in CleverTap.

Adding Message Template

To create WhatsApp campaigns, you must have pre-approved WhatsApp message templates saved in the CleverTap dashboard. To add the message templates:

  1. Navigate to Settings > Channels > WhatsApp > WhatsApp Connect > _Provider Nickname from the CleverTap dashboard.
  2. Select the Templates option, and click +Template.
2174

Create a New Template

  1. Enter the template name in the Namespace field.
  2. Choose the type of template header (Text or Media). For Media headers, you can use Image, Video, Document, and Location.
  3. You can choose to use the Limited Time Offer template for your message. For more information, refer to Limited Time Offer Template..
  4. Enter the message content.
  5. Select Footer to add a footer text and a button (Quick Reply or a Call To Action).
  6. Select the Language in which you want to display the message.
Define Template Content for Haptik

Define Template Content

  1. Click Save Template.

Testing a Message Template

You can send a test message using the saved templates from the CleverTap dashboard as follows:

  1. Right-click the ellipsis below the template.
  2. Click Send Test.
  3. Select the test profiles or manually enter the mobile number to whom you want to send the test message and click Send Test.
1304

Test a Message Template

The success or failure response is displayed on the dashboard. If the message is not delivered, you can copy the response payload and share it with the Haptik team to debug the issue, as shown in the following figure:

728

Validate the Test Response

Create Campaign

To create a WhatsApp campaign using Haptik as the provider, refer to Create a WhatsApp Campaign for detailed instructions.

Creating a Journey

To create a WhatsApp journey using Haptik as the provider, refer to Create a WhatsApp Journey for detailed instructions.