I request your help because I don’t have huge experience in API and integrations. My store is Shopify.
Despite of I was reading some articles I am a bit lost. I am using an app which is integrated with Klaviyo. the API is connected and I am able to create flows because the trigger works, so I can select the event without any problem.
But the problem is when I create the email template. When the event occurs, the flow must send an email. Within the email I need to add some variables, for example the First Name or Product Image. My app says the variable should be ${first_name} or ${product_image}.
How do I enter these variables within the email? Klaviyo just show its own variables. Are the Klaviyo variables the same for my app? If so, How Klaviyo knows what is the product for displaying the image?
Thank you very much in advance.
Miguel
Page 1 / 1
Hi Mrosique,
You’re on the right track! To add variables like ${first_name} or ${product_image} in Klaviyo emails, you’ll need to use Klaviyo's variable format, such as {{ event.first_name }} or {{ event.product_image }}, depending on how your app sends the data. Check the "Flows" section in Klaviyo, preview the event data, and identify the exact variable names being passed. Replace your app’s variables with the corresponding Klaviyo format in your email template. Once added, test the flow to ensure everything displays correctly. If you need further assistance, Don’t hesitate to reach out—I would be happy to guide you!
Hello, thank you very much for your help.
The flow works fine because the trigger works properly because the email is sent.
But the problem is still with the variables within the template’s email. Let me paste some screenshots.
I have created a very simple email for testing, like the following:
The HTML is the following, for example for the variable ${first_name} :
You can see I use the Klaviyo’s variable format, but I receive the following:
Fisrt name isn’t displayed in fact, the yellow marks mean the variables (dara) missing.
Any idea? Or is an app problem?
Thanks a lot.
Hi @mrosique, I wanted to share this guidance as well:
~Chloe
Hello @mrosique
Thank you for reaching out. The issue is likely with how the variables are defined or mapped in your Klaviyo account. Ensure the data fields (e.g., ${first_name}) are correctly synced with your list or segment. Also, verify that the test profiles you're using have values assigned for these variables.
For more detailed guidance, feel free to contact me directly via WhatsApps+2349151237531], and I'll be happy to assist further.