Summary
Want to automatically add contacts from a Klaviyo form to Wati? While there's no direct plugin for this, you can achieve it using Klaviyo's new tool, Napkin.io. This guide walks you through setting up a Klaviyo flow that pushes new contact details to Napkin.io, which then creates the contact in Wati.
Instructions
How It Works
When someone fills out a Klaviyo form, their contact details are stored in Klaviyo. We set up a Klaviyo flow to send these details to Napkin.io, which then uses Wati's API to create the contact automatically.
Process Overview
Step-by-Step Guide
1. Create a New Flow in Klaviyo
Go to Klaviyo Flows and create a new flow from scratch.
Choose Added to List as the trigger.
Select the list associated with your form.
Click Save.
Now, whenever someone fills out the form, they will be added to this list and can be processed to be created as a contact in Wati.
2. Set Up Napkin.io
Clone the Napkin function from this link.
Open a new tab and log into your Wati account.
Go to the API Docs section in Wati.
Copy the API Endpoint and paste it into line 16 of the Napkin function.
Copy the Access Token from Wati.
In Napkin, go to the Other section and add the token under Environment Variables:
Key:
Authorization
Value: (Paste the Access Token here)
Click Deploy.
Copy the URL displayed next to the blue Share button at the top.
3. Configure Webhook in Klaviyo Flow
Go back to the Klaviyo Flow you created.
Drag and drop a Webhook action below the trigger.
Name the webhook.
In the Destination URL field, paste the copied Napkin.io URL.
In the JSON Body section, add the following snippet:
{ "name": "##{{ person.first_name|default:'' }}", "phone": "##{{ person.phone_number|default:'' }}" }
Click Save.
Set the webhook to Live.
Click Update Action Statuses in the top-right corner.
Final Steps
Your flow is now live! Whenever someone fills out the Klaviyo form, Klaviyo sends their details to Napkin.io, which then creates a contact in Wati automatically. This setup ensures a seamless transition of contacts from Klaviyo to Wati without manual intervention.
Need help? Visit Wati's API documentation for more details.
Frequently Asked Questions (FAQs)
General Questions
1. What is Napkin.io, and why is it needed?
→ Napkin.io is a tool that allows you to run serverless functions. It acts as a bridge between Klaviyo and Wati by processing contact details and sending them to Wati’s API.
2. Is this integration free?
→ Napkin.io offers 5,000 free executions per month. If you exceed this limit, you may need to upgrade to a paid plan.
3. Do I need coding knowledge to set this up?
→ No, you only need to follow the steps in this guide. Copying and pasting the provided details will set up the integration successfully.
Klaviyo & Webhook Setup
4. What if I don't see the "Added to List" trigger in Klaviyo?
→ Ensure that you have an active list in Klaviyo and that your form is set to add new subscribers to that list.
5. Where do I find the Webhook option in Klaviyo?
→ In Klaviyo Flow Builder, you can find Webhook under the Actions section.
Wati API & Authentication
6. How do I get my Wati API Key?
→ Log into your Wati account, navigate to the API Docs section, and copy the API Key (Access Token) provided there.
7. What happens if my Wati API Key expires?
→ If your API key expires, generate a new one in the Wati API Docs and update it in the Napkin.io environment variables.