With Thrive Automator you can connect to various services, using the “Send Webhook” trigger.
This article will show you how to use Thrive Automator to connect to your Klaviyo account.
In order to create this connection, you will have to create the webhook URL and then create an automation that uses the “Send incoming webhook” action.
From the Klaviyo developer documentation, you can find the structure of the webhook URL, as well as the parameters that need to be added.
As an example for this article, we will create an automation with the help of which the following result is achieved: when someone signs up on the site using a form, they are added to one of our Klaviyo mailing lists.
Here’s how we can achieve that:
1. Create the Webhook URL
According to Klaviyo and their documentation, a successful request returns the list ID of the newly created list and has the following structure and parameters:
curl --request POST
--url 'https://a.klaviyo.com/api/v2/list/LIST_ID/members?api_key=API_KEY'
--header 'Accept: application/json'
--header 'Content-Type: application/json'
--data '
{
"profiles": [
{
"email": "[email protected]"
},
{
"phone_number": "+13239169023"
}
]
}
'
Of course, for the webhook URL, you will have to replace the last part from the URL with your own private key. This can be found in your Klaviyo dashboard, under the “Account” section of the top right-hand submenu:
Go to “Settings” -> “API Keys”:
The key needed in the structure of the URL will be the “Private API Key”:
Note: You have to click on the eye icon in order to see the key and be able to copy it to your clipboard.
Once you’ve created the webhook, you can test it out in Postman:
The “200 OK” response indicates that the webhook is correct, and we can move on and create the automation in Thrive Automator.
2. Create the automation in Thrive Automator
To access Thrive Automator go to the left sidebar of your WordPress admin dashboard. Hover over Thrive Dashboard and click on Thrive Automator from the menu that appears:
From the Thrive Automator dashboard, click on the “Add New” option, to create a new automation:
In case you need help setting up automations in Thrive Automator, make sure you check out this knowledge base section, with various articles about that.
To start setting up the new automation, you can rename it:
The first step is choosing the start trigger. To carry on with the example stated above, I will choose the “Form Submit” start trigger:
Once you’ve chosen the start trigger (and added conditions, if necessary) you can click on the “Add another action” option:
From the list of available actions, choose the “Send webhook” one:
You’ll have to set up the webhook next, as seen below:
→ 1 – Send webhook
In the first field, you will have to add the webhook URL that we’ve constructed above.
→ 2 – Choose the request type
The request we’re making is a POST request.
→ 3 – Choose the request format
The request is a FORM request.
→ 4 – Choose the form fields
Add the fields that you want to be sent to your Klaviyo mailing list. You can use the dynamic information options to do that easier.
For this example, only the email field has been added, but, of course, you can add as many parameters as you wish in case you want more user information to be sent to the mailing list.
Note: Make sure that the field names match the ones from the developer documentation.
→ 5 – Headers
If needed, add a custom header to the request.
→ 6 – Test connection
You can send out a test to check if everything works properly and the information is sent to the mailing list.
Click on “Done” to save the action:
And you can go ahead and save the automation:
It will not get published right away, so make sure to click on “Publish”:
The automation is done, and the only thing that’s left to do is to make sure that the start trigger condition of the automation can be met. In this case, I will ensure that I have a form added to my site, since the start trigger has been set to “Form submit”.
To add a form to a page/post, you will have to use the “Lead Generation” element and simply drag and drop it from the element list inside the Thrive Editor. Check out this article if you need more information about how you can add a form to your site.
Once the form is added, the setup is complete. Each time a new person fills in your form, they will be added to your mailing list:
This is how the information is sent to Klaviyo:
This is how you can create a connection between Thrive Themes and Klaviyo via Thrive Automator so that when someone subscribes to your site using a form, they are added to your mailing list.
Please remember that this was just an example of an action that can be done using this connection – however, there are many possible outcomes for this. We do advise that such integrations are made by the more tech-savvy ones, that are aware about what incoming webhooks are, how they work and creating such requests.
I hope this article was useful. Make sure to visit our knowledge base if you need more information about various Thrive Suite products and features.
If this was helpful, we’d really appreciate a smile below 😸