Skip to main content

Integrating Wati with Klaviyo

Summary

Connect Wati with Klaviyo to automate WhatsApp messaging and send chatbot data to Klaviyo. You can use this integration to trigger WhatsApp messages from Klaviyo flows or send information collected through Wati Chatbots to Klaviyo for segmentation and automation.

Note: This integration requires active Wati and Klaviyo subscriptions.

Instructions

Use case 1: Send WhatsApp messages from Klaviyo

You can use Klaviyo Flows to trigger WhatsApp template messages through Wati APIs.

Set up WhatsApp messaging

  • Click Create Flow.

  • Select Start from Scratch and enter a name for your flow.

  • Set the Trigger that starts the flow.

    • For example, to send a confirmation message when someone subscribes to a newsletter, select When someone is added to Newsletter.

  • From the left sidebar, drag and drop a Webhook action into the flow.

  • Enter a name for the webhook.

Configure the Wati API

  • Log in to your Wati account.

  • Go to Connectors > API > API Docs.

  • Find the /api/v1/sendTemplateMessages endpoint.

  • Click Try it Out.

  • Update the request body:

    • Replace template_name with the name of your WhatsApp template message.

    • Replace broadcast_name with a name that identifies messages sent from Klaviyo, such as Klaviyo registration confirmation.

    • Replace whatsappNumber with {{ person.phone_number|default:'' }}.

    • If your template includes variables, add them as JSON.

For example:

{
"template_name": "registration_confirmation",
"broadcast_name": "Klaviyo registration confirmation",
"receivers": [
{
"whatsappNumber": "{{ person.phone_number|default:'' }}",
"customParams": [
{
"name": "name",
"value": "{{ person.first_name|default:'' }}"
},
{
"name": "number",
"value": "{{ person.phone_number|default:'' }}"
}
]
}
]
}

  • Click Execute.

    The request returns a failure because the phone number used for the test is invalid. This is expected.

  • Copy the Request URL from Wati and paste it into the Destination URL field in Klaviyo.

  • Copy the request body from Wati and paste it into the JSON Body field in Klaviyo.

  • In Klaviyo, click View profile & event properties to find additional variable values, such as {{ person.first_name|default:'' }}.

  • Under Headers, enter:

    • Key: Authorization

    • Value: Your Wati Access Token

  • Save the webhook.

  • Change the webhook status from Draft to Live.

  • In the top-right corner, click Update action statuses to activate the flow.

Your Klaviyo flow can now trigger WhatsApp template messages through Wati.

Use case 2: Send Wati Chatbot data to Klaviyo

Wati Pro and Business plan users can collect information from customers through Wati Chatbots and send it to Klaviyo for automation and segmentation.

Set up chatbot data sharing

  • Create a chatbot in Wati Chatbot Builder.

  • Add a Webhook node to the chatbot flow.

  • Configure an API call to Klaviyo's Update Profile or Create Event API to store the collected data.

  • Configure the chatbot to collect the information you need.

For example, your chatbot can collect:

  • Email

  • Address

  • Customer Satisfaction (CSAT) feedback

Once the information is collected, the chatbot sends the data to Klaviyo, where you can use it for future automation and segmentation.

Other ways to connect Wati and Klaviyo

You can also connect Wati and Klaviyo using third-party automation tools:

  • Zapier: Automate workflows between Wati and Klaviyo.

  • Pabbly Connect: Sync data between Wati and Klaviyo using automated workflows.

Frequently Asked Questions (FAQs)

Integration Overview

1. What can I use the Wati and Klaviyo integration for?

You can use the Wati and Klaviyo integration to trigger WhatsApp template messages from Klaviyo Flows or send information collected through Wati Chatbots to Klaviyo for automation and segmentation.

The integration requires active Wati and Klaviyo subscriptions.

Sending WhatsApp Messages from Klaviyo

2. How can I send WhatsApp template messages from Klaviyo?

You can use Klaviyo Flows to trigger WhatsApp template messages through Wati APIs. Set up a Klaviyo Flow with a Webhook action and configure it to use the Wati /api/v1/sendTemplateMessages endpoint.

3. Which Wati API endpoint should I use to send WhatsApp template messages from Klaviyo?

Use the /api/v1/sendTemplateMessages endpoint in Wati. You can find it under Connectors > API > API Docs in your Wati account.

4. What information do I need to configure in the Wati API request?

In the Wati API request body:

  • Replace template_name with the name of your WhatsApp template message.

  • Replace broadcast_name with a name that identifies messages sent from Klaviyo.

  • Replace whatsappNumber with {{ person.phone_number|default:'' }}.

  • If your WhatsApp template includes variables, add them as JSON.

5. Why does the Wati API test return a failure when I click Execute?

The Wati API test returns a failure because the phone number used for the test is invalid. This failure is expected.

6. What Wati information do I need to add to the Klaviyo webhook?

In the Klaviyo webhook, add the following Wati information:

  • Destination URL: The Request URL from Wati.

  • JSON Body: The request body from Wati.

  • Authorization header: Your Wati Access Token.

Save the webhook, change its status from Draft to Live, and click Update action statuses in Klaviyo to activate the flow.

Sending Wati Chatbot Data to Klaviyo

7. Who can send Wati Chatbot data to Klaviyo?

Wati Pro and Business plan users can collect information through Wati Chatbots and send it to Klaviyo for automation and segmentation.

8. How can I send Wati Chatbot data to Klaviyo?

Create a chatbot in Wati Chatbot Builder, add a Webhook node to the chatbot flow, and configure an API call to Klaviyo's Update Profile or Create Event API.

You can configure the chatbot to collect information such as email, address, and Customer Satisfaction (CSAT) feedback. Once collected, the data is sent to Klaviyo for future automation and segmentation.

Other Integration Options

9. Which third-party tools can connect Wati and Klaviyo?

You can use Zapier to automate workflows between Wati and Klaviyo or Pabbly Connect to sync data between the two platforms using automated workflows.

Did this answer your question?