Skip to main content

How to add variables from your Klaviyo contact profiles directly into WAX flows?

Tutorial for adding variables from your Klaviyo contact profiles directly into WAX flows.

Updated over 4 months ago

1. Make Sure Your Klaviyo Flow is Properly Configured

To start, it is essential that your flow in Klaviyo is properly configured, as this will allow Klaviyo to send the necessary data to WAX via a webhook.

Set up the webhook between Klaviyo and WAX to allow Klaviyo to transmit the data to WAX. A detailed tutorial for configuring this step is provided below.

2. Add the Data to Be Used for Variabilization in the Webhook

Once the webhook is configured, you will add the data you want to use for variabilization in your WAX flow.

In the webhook, add the new data you wish to variabilize in the WAX flow. This data will be in the form of new attributes.

3. Copy the Attribute Nomenclature

Copy the nomenclature used for variables like First Name and paste it after it.

Ensure that the new variable is at the same level as First Name.

4. Replace the Data with What You Want to Retrieve

Replace the "First Name" data with the new data you want to retrieve, for example, "Dog's Name." You can name the data as you wish.

Then, erase the variabilization of the data from our copy-paste and leave it empty, then search for the variable you want to add in profiles and properties.

5. Add the Klaviyo Variable to the Webhook

Select the variable you want to use (e.g., the dog's name), then copy it and paste it in the appropriate place in the webhook payload.

If you encounter an error, copy your entire payload and use a tool like ChatGPT to fix your JSON.

Once the JSON is corrected, click Save to save it.

6. Configure the WAX Flow to Accept the New Variable

Next, you need to configure the WAX flow to accept and use this new variable.

Go to the flow where you want to use the new data.

Create a new attribute in WAX. To do this, click on Attribute > New Attribute and name it identically to the one used in Klaviyo.

Click Create to create the attribute.

7. Add the Variable to Your Message in WAX

You can now delete the attribute node created in WAX, then go to your flow.

In the WAX flow, go to the variables you can add to your messages. There you will find the variable you just added.

This will allow you to variabilize your message by using the dynamic variable sent from Klaviyo to WAX via the webhook.

8. Verify and Test

Once the configuration is complete, you can check if the variable works correctly in your WAX flow.

Did this answer your question?