Klaviyo - Creating your Flow and Email Template - Gift Product
Some aspects of this article require programming knowledge of HTML and Shopify Liquid.
Before you follow the steps below, make sure you have connected Govalo and Klaviyo, as outlined in the guide Setting up your integration.
This guide covers the steps for creating the Flows and the Email templates within those flows in Klaviyo, to handle the Gift Products sent by Govalo. Since Govalo's Giftable Products feature has more than one step, you must set up two flows in Klaviyo - one for when the gift is sent, and another for when the gift is accepted.
Gift Sent Flow
1 - In Klaviyo, go to Flows and click Create Flow, then pick the option Create From Scratch.
2 - Give your flow a name (e.g. "Received Gift Product"), then click Create Flow.
3 - Let's start by setting up your Trigger. Among the options offered, select Metric, then in the drop-down selector presented, select Gift Requested. Next, click Done:
4 - Next you'll set up an Action, through which an email will be sent. Drag the component Email and drop it under the trigger:
5 - Click the three dots, then Edit to get to the editor where you'll add the custom template:
6 - Fill out the fields accordingly, then select an option to create your template. We will go with the HTML option, so we can show you how you can use the variables included in the event sent by Govalo to build your template. You can proceed with this option and add your own custom HTML and styles around our example later on. Alternatively, you may use the Drag and Drop option to build a new template or select an existing one and plug our variables into it:
7 - Erase the sample code pre-filled by Klaviyo, then paste the sample template you see below:
<p>You've received a gift!</p>
<p>Hi {{ event.to }}! {{ event.from }} wants to send you a gift.</p>
<p><img alt="Gift card image" style="height: 300px; width: auto;" src="{{ event.image }}"/></p>
{% if event.gift_note != "" %}
<p>They also wanted us to tell you this:</p>
<p>{{ event.note }}</p>
{% else %}
{% endif %}
<p>To accept it, simply click the link below, and inform your shipping address:</p>
<p><a href="{{ event.link }}" target="_blank">Accept Gift</a></p>
Make sure to click Save once you're done editing the template.
Note: the template presented above is merely a suggestion of how you can make use of the variables sent by the Govalo event in a structured email. You may modify it as necessary. For more information about the variables sent with Govalo events, see Variables for use in the email template.
Note: if you need further assistance with setting up your email template, we recommend reaching out to Klaviyo support or a Klaviyo expert.
8 - Back to the flow's editing page, change your email from Draft to Live:
Gift Accepted Flow
1 - In Klaviyo, go to Flows and click Create Flow, then pick the option Create From Scratch.
2 - Give your flow a name (e.g. "Accepted Gift Product"), then click Create Flow.
3 - Let's start by setting up your Trigger. Among the options offered, select Metric, then in the drop-down selector presented, select Gift Completed. Next, click Done:
4 - Next you'll set up an Action, through which an email will be sent. Drag the component Email and drop it under the trigger:
5 - Click the three dots, then Edit to get to the editor where you'll add the custom template:
6 - Fill out the fields accordingly, then select an option to create your template. We will go with the HTML option, so we can show you how you can use the variables included in the event sent by Govalo to build your template. You can proceed with this option and add your own custom HTML and styles around our example later on. Alternatively, you may use the Drag and Drop option to build a new template or select an existing one and plug our variables into it:
7 - Erase the sample code pre-filled by Klaviyo, then paste the sample template you see below:
<p>{{ event.fromName }} has accepted your gift!</p>
<p>To complete the purchase, click on the link below:</p>
<p><a href="{{ event.link }}" target="_blank">Buy Now</a></p>
<br>
Make sure to click Save once you're done editing the template.
Note: the template presented above is merely a suggestion of how you can make use of the variables sent by the Govalo event in a structured email. You may modify it as necessary. For more information about the variables sent with Govalo events, see Variables for use in the email template.
Note: if you need further assistance with setting up your email template, we recommend reaching out to Klaviyo support or a Klaviyo expert.
8 - Back to the flow's editing page, change your email from Draft to Live:
9 - Now that your Gift Product flow is set up, make sure to configure Govalo so it sends the Gift Product emails to Klaviyo.