Lexer Product Recommender → Klaviyo Integration

The Lexer Product Recommender integration with Klaviyo enables you to enhance your email marketing campaigns with personalized product recommendations. By leveraging Lexer's predictive model that analyzes customer behavior, you can deliver tailored product suggestions directly in your Klaviyo emails to increase engagement and drive conversions.

This integration allows you to sync product recommendations from Lexer to Klaviyo, where they can be dynamically inserted into email templates. Each recipient will see products that are specifically recommended for them based on their past purchasing behavior and preferences.

What is the Product Recommender?

Lexer's Product Recommender pinpoints the type of product an individual is most likely to purchase next based on their past behavior. Our model analyzes historical buying patterns, preferences, and trends to identify the product category that aligns best with each customer's interests.

The Product Recommender generates several attributes for each customer:

  • Recommended Product Product ID
  • Recommended Product Name
  • Recommended Product Type
  • Recommended Product SKU
  • Recommended Product Size
  • Recommended Product Color

For this integration with Klaviyo, we'll be syncing the Recommended Product Product ID value, which can then be used to pull in product details from your Shopify catalog.

Requirements

Before setting up this integration, ensure you have:

  • Lexer connected with Klaviyo to sync Product Recommender attributes
  • Lexer product recommender attributes appear in Understand > Segment
  • Klaviyo connected with Shopify to sync Product Catalog

Configuration steps

Step 1: Set up the activation in Lexer

Configure an activation that syncs the "Product Recommended Product ID" attribute to a custom property in Klaviyo. The custom property can be called anything, but in this example we've called it lexer_product_recommender. You should set the List Action to be Append so that we're always syncing the values every day.

Configure an activation that syncs your Recommended Product ID to Klaviyo

Step 2: Verify data transfer to Klaviyo

Once the activation has run, you should see this custom property appearing on profiles in Klaviyo.

Example of lexer_product_recommender custom property in Klaviyo

Step 3: Create email template in Klaviyo

Create a new email template in Klaviyo. In a text block, add this code snippet to look up the lexer_product_recommender property for each customer and load the recommended product from the catalog. Replace {default} with a product id from your catalog as a fallback.

{% catalog person|lookup:"lexer_product_recommender"|default:'{default}' %}
{{ catalog_item.title }}
{{ catalog_item.id }}
{% endcatalog %}

Example product recommender in text block

Step 4: Add product image

Add an image block to show the product in your email.

Example product recommender image block

As you go to add the image, select the Dynamic Image option and use the value:

{% catalog person|lookup:'lexer_product_recommender'|default:'{default}' %}
{{ catalog_item.featured_image.thumbnail.src }}
{% endcatalog %}

Add dynamic image block with catalog reference code

Step 5: Add product link button

Add a Button to your email so we can link to the product in Shopify. Add this code snippet to the Link address field on the left side of the screen.

{% catalog person|lookup:"lexer_product_recommender"|default:'{default}' %}

Add a button to your email that links customers to the product on your store

Testing Your Integration

Now you can preview this for any customer in Klaviyo. Click Preview & test in the top right corner, and you can Search for a profile to see how their recommended product will appear in the email.

Preview your recommended products for a sample of customer profiles

Best practices

Using Fallback Products Effectively

  • Always specify a default product ID in the default:'{default}' parameter
  • Choose fallback products that have broad appeal or are current bestsellers
  • Consider seasonal fallbacks that change throughout the year
  • For new customers with no recommendation data, fallbacks are especially important

Optimizing Sync Frequency

  • Set your Lexer activation to run daily to ensure recommendations stay current
  • Schedule syncs to run before your regular email sends to capture the latest data
  • After major sales or promotional events, consider running an additional sync to capture new behavior patterns

Email Design Considerations

  • Place recommendations in a clearly defined, visually distinct section
  • Use compelling headlines like "Picked for You" or "We Thought You'd Like This"
  • Keep the recommendation section simple with one clear product rather than multiple options
  • Include both the product image and a clear call-to-action button
  • Consider using product name, image, and price (if available via the catalog)

Testing and Optimization

  • A/B test different placements of recommendation blocks within your email templates
  • Test different call-to-action text for the recommendation buttons
  • Monitor click-through rates on recommended products to assess effectiveness
  • Compare performance between personalized recommendations and generic product features

Maintaining Data Quality

  • Regularly check that product IDs in Lexer match those in your Shopify catalog
  • Watch for products that go out of stock and consider excluding them from recommendations
  • Ensure product images in your catalog are high quality and consistently sized for email display

Troubleshooting

Recommendations Not Appearing in Klaviyo

Issue: Product recommendations aren't showing up in customer profiles in Klaviyo.

Solutions:

  • Verify that the Lexer activation is running successfully without errors
  • Check that the custom property name in Klaviyo matches exactly what was configured in Lexer (e.g., "lexer_product_recommender")
  • Ensure the List Action is set to "Append" in the activation settings
  • Confirm that customers have sufficient purchase history in Lexer to generate recommendations

Product Images Not Displaying

Issue: The dynamic product images aren't showing up in email previews.

Solutions:

  • Verify that Klaviyo is properly connected to your Shopify catalog
  • Check that the product IDs being synced from Lexer match exactly with IDs in your Shopify catalog
  • Confirm that products have images assigned in your Shopify catalog
  • Ensure the image code snippet is correctly formatted:

{% catalog person|lookup:'lexer_product_recommender'|default:'{default}' %}
{{ catalog_item.featured_image.thumbnail.src }}
{% endcatalog %}

Product Links Not Working

Issue: The buttons in emails aren't linking to the correct product pages.

Solutions:

  • Make sure the button link code is properly implemented
  • Verify that the product exists and is active in your Shopify store
  • Check for any URL formatting issues in Klaviyo's button settings
  • Test the link by previewing the email and clicking through to confirm it works

Default/Fallback Products Not Showing

Issue: When no recommendation is available, the fallback product isn't appearing.

Solutions:

  • Ensure you've specified a valid product ID in the default parameter
  • Verify that the fallback product exists in your Shopify catalog
  • Check the format of your code snippet to ensure the default syntax is correct:

person|lookup:"lexer_product_recommender"|default:'12345678'

Sync Delays

Issue: There seems to be a delay between Lexer recommendations and their appearance in Klaviyo.

Solutions:

  • Check the scheduled run times of your Lexer activation
  • Allow up to 24 hours for initial data to populate after setting up the integration
  • Verify that both Lexer and Klaviyo API connections are healthy
  • For time-sensitive campaigns, manually trigger the activation to refresh data

Additional Resources

Updated:
March 18, 2025
Did this page help you?
Thank you! Your feedback has been received!
Oops! Something went wrong while submitting the form, for assistance please contact support@lexer.io
Welcome to Lexer!
Fundamentals
Getting started
Our glossary
Fundamentals
Getting started
Integrations
Fundamentals
Setup
My account
Fundamentals
Setup
Manage team
Fundamentals
Setup
Group permissions
Fundamentals
Setup
Classifications
Fundamentals
Setup
Out of the box segments
Fundamentals
Setup
Lexi your AI companion
Fundamentals
Lexi
Browser guide
Fundamentals
Security
Corporate networks
Fundamentals
Security
Emergency contact
Fundamentals
Security
Multi-factor authentication
Fundamentals
Security
Single sign-on
Fundamentals
Security
Lexer's Identity Resolution
Fundamentals
Identity Resolution
Lexer's ultimate troubleshooting guide
Fundamentals
Troubleshooting
Troubleshooting tech issues
Fundamentals
Troubleshooting
Troubleshooting integrations
Fundamentals
Troubleshooting
Troubleshooting Activate
Fundamentals
Troubleshooting
Troubleshooting Respond
Fundamentals
Troubleshooting
Help! My data is missing from the Hub
Fundamentals
Troubleshooting
How data is ingested into the CDP
Data
Self Serve Onboarding
Getting started onboarding data
Data
Self Serve Onboarding
Understanding APIs
Data
Self Serve Onboarding
Providing JSON data to Lexer
Data
Self Serve Onboarding
Providing CSV data to Lexer
Data
Self Serve Onboarding
Upload using SFTP
Data
Self Serve Onboarding
Secure file upload
Data
Self Serve Onboarding
Upload using S3
Data
Self Serve Onboarding
Lexer data specification
Data
Data Specification
Customer data specification
Data
Data Specification
Commerce data specification
Data
Data Specification
Marketing data specification
Data
Data Specification
Compliance data specification
Data
Data Specification
Rate limits
Data
APIs
Product imagery
Data
Formatting
Currency conversion
Data
Formatting
Dataset management
Data
Datasets
Chatbot API
Data
APIs
Activity API
Data
APIs
Visualize API
Hidden from nav
Read API
Data
APIs
Lexer Javascript Tag basics
Data
Javascript Tag
Export to CSV
Measure
Listen
Data in the CDXP
Data
Customer Data
CRM data
Data
Customer Data
Transaction data
Data
Customer Data
Email data
Data
Customer Data
Experian
Data
Partner data
Customer Service data
Data
Customer Data
Segment overview
Understand
Segment
Creating segments
Understand
Segment
Smart Search
Understand
Segment
Export attribute results
Understand
Segment
Contact a customer
Understand
Segment
Fixing a disabled segment
Understand
Segment
Profile tab
Understand
Segment
Event Explorer
Understand
Segment
Lexer's attributes
Understand
Attributes
Predictive attributes
Understand
Attributes
Attribute value types
Understand
Attributes
Compare segments
Understand
Compare
Compare attributes
Understand
Compare
Activate overview
Engage
Activate
Ongoing activations
Engage
Activate
Audience splits
Engage
Activate
A/B splits
Engage
Activate
Control group splits
Engage
Activate
Inbox filtering
Engage
Respond
Ignored Senders
Engage
Respond
Forms for service
Engage
Respond
Workflow states
Engage
Respond
Bulk changes
Engage
Respond
Scheduled replies
Engage
Respond
Message templates
Engage
Respond
Customer profiles
Engage
Respond
Grouped messages
Engage
Respond
Automation rules
Engage
Respond
Redact messages
Engage
Respond
Lexer Product Recommender → Klaviyo Integration
Grow
Lexer Product Recommender → Klaviyo Integration
Where do your best customers live? Use geographic insights to maximize media spend and conversion
Grow
Where do your best customers live? Use geographic insights to maximize media spend and conversion
Suppression audiences: How to use them and maximize your media effectiveness
Enrich
Suppression audiences: How to use them and maximize your media effectiveness
Measure campaign effectiveness: Track your KPIs and report on campaign performance
Enrich
Measure campaign effectiveness: Track your KPIs and report on campaign performance
Converting prospects: Acquire customers from your current, engaged prospect base (and save your ad spend!)
Acquire
Converting prospects: Acquire customers from your current, engaged prospect base (and save your ad spend!)
Understanding customer intent: Effective message personalization for buyers who shop outside their gender
Grow
Understanding customer intent: Effective message personalization for buyers who shop outside their gender
Deepen customer understanding: Use third-party data to identify insights for personalized messaging and increased engagement
Grow
Deepen customer understanding: Use third-party data to identify insights for personalized messaging and increased engagement
Basket analysis: Increasing customer lifetime value through targeted product bundling
Grow
Basket analysis: Increasing customer lifetime value through targeted product bundling
Persona building: Personalize your messaging for maximum return on your campaign investments
Grow
Persona building: Personalize your messaging for maximum return on your campaign investments
Driving customer loyalty: Identify, keep, and grow your most loyal customers
Retain
Driving customer loyalty: Identify, keep, and grow your most loyal customers
Increasing customer lifetime value: Upselling strategies
Grow
Increasing customer lifetime value: Upselling strategies
Reactivating lapsed customers: Retention and growth
Retain
Reactivating lapsed customers: Retention and growth
Welcome offer strategies: Using the Hub for analysis
Acquire
Welcome offer strategies: Using the Hub for analysis
Creating customer forms: Best practices
Enrich
Creating customer forms: Best practices
Connecting your MarTech stack with Lexer!
Enrich
Connecting your MarTech stack with Lexer!
Identifying win-back customers using the Second Last Order: Date attribute
Retain
Identifying win-back customers using the Second Last Order: Date attribute
Understanding customers' purchasing habits: Order Sequence filter
Grow
Understanding customers' purchasing habits: Order Sequence filter
Maximizing customer communications in Respond
Retain
Maximizing customer communications in Respond
Using Product Recommendation in the Hub to encourage repeat purchases
Grow
Using Product Recommendation in the Hub to encourage repeat purchases
Encouraging customer loyalty using birthday campaigns
Retain
Encouraging customer loyalty using birthday campaigns
Increasing customer lifetime value: Converting your one-time buyers into two-time buyers
Grow
Increasing customer lifetime value: Converting your one-time buyers into two-time buyers
Collecting zero-party data using Lexer Forms
Enrich
Collecting zero-party data using Lexer Forms
Measuring your data over time with Track
Enrich
Measuring your data over time with Track
UTM Creation Guidelines
UTM Creation Guidelines
UTM Creation Guidelines
Brand Assets
Brand Assets
Brand Assets
GTM guide to creating marketing materials with Lexer
GTM guide to creating marketing materials with Lexer
GTM guide to creating marketing materials with Lexer
How to use the Lexer Form Builder
How to use the Lexer Form Builder
How to use the Lexer Form Builder
Explore our standard integrations
Explore our standard integrations
Explore our standard integrations
Operating a CDP Practice LP
Operating a CDP Practice LP
Operating a CDP Practice LP
LP Sales Enablement
LP Sales Enablement
LP Sales Enablement
Video Training Courses LP
Video Training Courses LP
Video Training Courses LP
Purpose and Mission
Purpose and Mission
Purpose and Mission
Brand & Marketing LP
Brand & Marketing LP
Brand & Marketing LP
Stage 3 - QBRs and Customer insights
Stage 3 - QBRs and Customer insights
Stage 3 - QBRs and Customer insights
Client Onboarding Journey
Client Onboarding Journey
Client Onboarding Journey
Start your CDP Practice
Start your CDP Practice
Start your CDP Practice
Lexer Messaging
Lexer Messaging
Lexer Messaging
Pain point conversations
Pain point conversations
Pain point conversations
Lexer Ideal Customer Profile & Positioning
Lexer Ideal Customer Profile & Positioning
Lexer Ideal Customer Profile & Positioning
Referral Partner Program Overview
Referral Partner Program Overview
Referral Partner Program Overview
Demo Hub Guide
Demo Hub Guide
Demo Hub Guide