You can either watch the Video-Guide above or check-out the steps below!
First create Chatarmin Flow
When you want to trigger a Flow from a third-party like Zappier or Klaviyo, your Flow Trigger has to be of type POST-Endpoint or Klaviyo Webhook. You can create a new flow here
After selecting your trigger, you will need to pass in the Payload Body, so that the Tool (Chatarmin) knows, which Variables will/can be used. An example of that payload would be:
{
"email": "{{ person.email }}",
"phone":"{{person.phone_number}}",
"tracking_url":"{{event.trackingURL}}"
}
You may be asking yourself: Where do I get this from? -> Here comes the fun part:
Calling the Chatarmin Flow from Klaviyo/Zappier
Now when you go inside a Flow in Klaviyo and choose "Webhook" as your Flow-Action, you will be prompted to input following things:
Destination URL
Headers
Payload Body
This Image show-cases where you get those values from, in Klaviyo:
So:
The Destination URL comes from the Chatarmin Trigger
The Headers come from the Chatarmin Trigger
The Payload Body needs to be set IN Klaviyo & be copy & pasted INTO Chatarmin
π¨ The "phone" property is the only required one, in the Klaviyo JSON Body, to make the Chatarmin Flow work. For syncing purposes, we recommend to have those 4 properties at least:
{
"email": "{{ person.email }}",
"phone":"{{person.phone_number}}",
"firstname":"{{person.first_name}}",
"lastname":"{{person.last_name}}"
}
Using JSON/Payload Variables from Trigger in the Flow
Now, after you have configured your Trigger with the correct Payload Body and clicked on Save, you can add "Send Campaign" as the next step and select a Template:
β
After selecting your Template -> Select your Variables:
Now, after Publishing your Flow, you can test your Flow and see that the passed Variables will be used!
Testing
If you want to test if your Webhook works, you can do so by clicking on "Preview".
β
Then click on "Search for a profile" and choose your Profile.
βNOTE: Your "Phone Number" field has to be filled out for the Webhook to work.
β
Once you've chosen your profile with the phone number you want the test flow to be sent, click "Send Test Request".
β
βIf you received a WhatsApp message the Webhook works as it should.