Automate return emails using Klaviyo

Modified on Tue, 24 Dec, 2024 at 1:25 AM

You will require a public API key to set this up. This will be available on your Klaviyo account under Profile > Account > API Keys

 

Copy and paste the API key to your LateShipment.com account and click 'Save'.

 

 

Once this is done, log in to your Klaviyo account. You will find the events listed below available as event trigger metrics. Use these metrics to set up your flows.

 

IMPORTANT: Once email flows have been set up in Klaviyo, head back to your LateShipment.com account to turn the toggle ON for the required events so we can start triggering the flows.

 

 

The different Event Variables that can be used in your email templates:

 

  • trackingnumber
  • shipdate
  • estimateddate
  • ordernumber (Shopify order number)
  • customername
  • lsstatus (Current status of the shipment)
  • trackinglink (Link to the customized tracking page)
  • carriertype (Name of the shipping carrier used)
  • variantid (Variant ID to use along with  {% catalog %} block.)
 

Here is an example syntax for using an event variable in an email template:

 <table width="100%">     
      <tr>       
        <th colspan="3" style="text-align:left;">
          YOUR CUTE THINGS:
        </th>
      </tr>
      {% for item in event.Items %}
      <tr>
        {% catalog item.variantid integration='shopify' %}
        <td style="text-align:center;padding:8px;" width="30%">         
          <img alt="{{ catalog_item.title }} - {{ catalog_item.variant.title }}" src="{{ catalog_item.variant.featured_image.full.src|default:catalog_item.featured_img

 

The following data is available to reference inside of a {% catalog %} block.

 

 

Template TagNameDescription
{{ catalog_item.variant.description }}DescriptionThe description of the variant
{{ catalog_item.variant.tags }}TagsAny tags added to the variant
{{ catalog_item.variant.url }}URLThe url for accessing the variant in your store.
{{ catalog_item.variant.title}}TitleThe title of the variant.
{% currency_format catalog_item.variant.metadata|lookup:"price"|floatformat:2 %}PriceThe price of an variant. This tag formats the item price with the correct currency prefix.
{{ catalog_item.variant.featured_image.full.src }}Full imageThe url for the full image of the variant. Use this inside of an image block, or an <img> tag.
{{ catalog_item.variant.featured_image.thumbnail.src }}ThumbnailThe url for the full image of the variant. Use this inside of an image block, or an <img> tag.
{{ catalog_item.varient.id }}IdThe Product ID of the variant.

 

Read more on this topic below:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article