All integrations

Klaviyo

Klaviyo is a data-driven email and SMS marketing platform for targeted advertising campaigns.

Introduction

Klaviyo is a data-driven email and SMS marketing platform for targeted advertising campaigns. By setting up a Data Feed within Klaviyo, you can pull data from any Miso API to use inside email templates.

Integration Steps

Setting up a Klaviyo Data Feed

  1. Log into Klaviyo and select Data Feeds from the left navigation pane.

    Untitled

  2. Select Add Web Feed. You should see a form to create a new Data Feed.

    Untitled

  3. Feed Name - Enter a descriptive name for the specific Miso API you will be using. Feed URL - Enter the URL for calling the Miso API. This is will vary from API to API, but as an example, here’s a URL for the User to Products API:

    https://api.askmiso.com/v1/recommendation/user_to_products?api_key={API_KEY}&fl=*&user_id={{#urlEncode}}{{person.id}}{{/urlEncode}}

    • api.askmiso.com/v1/recommendation/user_to_products is the base URL of the User to Products API
    • Replace {API_KEY} with your secret API Key (from Dojo).
    • We’re requesting all fields (fl=*) so that we have all our data available to use in the email template.
    • We need to dynamically set the unique user_id for each email recipient so we’ll call the person.id field within Klaviyo to get that information.

    Request Method - Keep this as GET.

    Content Type - Keep this is JSON.

  4. Select Add Data Feed.

  5. To check if the data is flowing correctly, select Preview in the upper right-hand corner.

    Untitled

Implementing the Data Feed in an email

  1. Open up a new or existing email template. If you’re using the classic editor, select Data Feeds in the footer of the editor. Select the Miso Data Feed and Save.

    Untitled

  2. Add a Text Block to a new or existing email template.

  3. Open the Text Block sub-menu and enable the “repeat a block” functionality. In the Repeat For box, enter feeds.{NAME_OF_YOUR_DATA_FEED}.data.products. In the Item Alias box, enter item and Save.

    Untitled

  4. Use dot notation to access any attribute in the products array. For example, to access the product title, use {{item.title}}. The Text Block will repeat for every product in the products array.

  5. After you’re done editing the email template, you can see what the personalized recommendations will look like using Klaviyo’s preview feature.

    Untitled

Additional Resources

For more information on Miso’s API, check out the official API Documentation.

For more Integrations like this, visit the Integrations page on our Docs site.

Published Date: March 22nd, 2022

Icon/Activity Icon/Add Icon/API Icon/Arrow/Down Icon/Arrow/Left Icon/Arrow/Right Icon/Arrow/TopRight Icon/Arrow/Up Icon/Bento Icon/Billing Icon/Bin Icon/Book Icon/Bookmark/Default Icon/Bookmark/Filled Icon/Calendar Icon/Caret/Down Icon/Caret/Up Icon/Chavron/DownIcon/Chavron/LeftIcon/Chavron/RightIcon/Chavron/UpIcon/Checknox/CheckedIcon/Checknox/Unchecked Icon/Checklist Icon/Chip Icon/Clipboard / Copied Icon/Clipboard/Default Icon/Clock/Stopwatch Icon/CMD Icon/Data/Catalog Icon/Data/Engine Icon/Data/Group Icon/Data/Interact Icon/Data/Users Icon/Dive Icon/Docs/Key Icon/Dojo Icon/Email Icon/Env/Development Icon/Env/Playground Icon/Env/Prod Icon/Folder Icon/Fullscreen/Collapse Icon/Fullscreen/Expand Icon/Guides/Multiple Icon/Guides/Single Icon/Hashtag Icon/Heart/Outline Icon/Heart/Solid Icon / Cart z Icon / Click Icon / Clock Icon / Data Icon / Doc Icon / EmptyCart z Icon/Social/Facebook Icon / Genome Incognito Icon / Money Icon/Social/ProductHunt Icon / Search Icon/Social/Twitter Icon / User Icon/Info/Error Icon/Info/Info Icon/Info/Question Icon/Info/Warning Icon/Interact/Download Icon/Interact/Edit Icon/Interact/External v2 Icon/Interact/External Icon/Interact/Filter Icon/Interact/Logout Icon/Interact/Options Icon/Interact/Re-order Icon/Interact/Reload Icon/Interact/Remove Icon/Interact/Replace Icon/Interact/Search Icon/Interact/Shuffle Icon/Interact/Undo Icon/Interact/Upload Icon/Interact/Video Icon/Invoice Icon/Loading Icon/Loading Icon/Lock/Locked Icon/Lock/Unlocked Icon/Lock Icon/Mapping Menu Icon/Notification Icon/Overview Icon/Person/Team Icon/Person/User Icon/Plan/Enterprise Icon/Plan/Growth Icon/Plan/Startup Icon/Plan/Trial Icon/Recipe Icon/Rocket Icon/Settings/App Icon/Settings/User Icon/Settings Icon/Shrine Icon/Sidebar/Close Icon/Sidebar/Open Icon/Slideout Icon/Sort/Ascending Icon/Sort/Default Icon/Sort/Descending Icon/Star/Filled Icon/Star/Outlined Stopwatch Icon/Support Icon/Tag Icon/Interact/Thumb/Dislike Icon/Interact/Thumb/Like Icon/Tick Icon/Trend/New Icon/Trend/Trending Icon/Tutorial Icon/Lock/Unlocked Icon/View/Grid Icon/View/List Icon/Watchlist/Add