If you want to send messages via Klaviyo to your customers on WhatsApp, you can achieve it via our Webhooks trigger.
1. Create a new workflow
Go to Automation -> New Flow
2. Choose WhatsApp
Only WhatsApp messages can be sent via Webhooks, since you can't initiate a business conversation from Instagram or Facebook channels.
3. Select triggers & choose webhook
4. Use the unique URL and paste it onto the application/code you want to trigger webhooks from
As soon you create the trigger, a URL is generated. You can either add this URL to the app /tool of your choice. Or just send a POST request to this URL and mention the phone
and name
of the contact. So that we know which number to send the message to.
5. Head to Klaviyo & Open the flow you want to Edit
Select the webhook action and drag it in the respective section you want to send the WhatsApp section at.
6. Set up the Webhook
In the "Destination URL" paste the URL you copied from the webhook trigger.
And in the JSON body, copy and paste the following payload:
{
"phone": "{{ person.phone_number|default:'' }}",
"name": "{{ person.first_name|default:'' }}"
}
7. IMPORTANT: Save and change status to live
Save the action
Turn the action to live mode
Click on "Update Action Statuses"
8. Now Test! The integration is Done.
That's it, now you just have to test it to make sure it works as expected. Note the following points.
If you want to exit a flow after a customer replies or responds, you can add an exit condition to the webhook trigger
You most probably should start the flow with a WhatsApp Template, as you probably will be starting a conversation with a customer outside the 24-hour conversation window.