Skip to main content
Solved

Flow that cross sells same color variant

  • December 24, 2025
  • 1 reply
  • 47 views

Forum|alt.badge.img

I am trying to determine if it is possible within a flow to dynamically generate color variants of a product based on the color variant of a product previously purchased.

 

For example, someone purchases an orange bag. Instead of just sending them an email upselling them a wallet, I want to upsell them an orange wallet to match their bag.

 

I’m guessing I will be using Ordered Product as a trigger of the flow. 

 

Unfortunately, it really isn’t practical to target the variant color data in the Ordered Product event and use Show/Hide functionality to show the wallet in the corresponding colors. There are many colors and they are updated frequently. 

 

Wondering if anyone had any thoughts here? 

Best answer by Kim from Cadence

@conbohannan, this seems like it could be a good use case for a custom flow action -  https://developers.klaviyo.com/en/docs/add_a_custom_action_to_a_flow. This is currently only available to customers with >400k profiles. 

Essentially, you can write a python function (Chatgpt/Claude are great at this!) that you could use to create an output like product_variant_html. Then you would use that output in your email template. See this bit here in the doc -  https://developers.klaviyo.com/en/docs/add_a_custom_action_to_a_flow#4-use-outputs-in-your-email-templates 

 

With this approach, you’d just have one block you show for the recommended upsell product and you do the heavy-lifting in the custom action. Hope this helps! 

 

Cadence / Book a demo

 

1 reply

Kim from Cadence
Partner
Forum|alt.badge.img+13

@conbohannan, this seems like it could be a good use case for a custom flow action -  https://developers.klaviyo.com/en/docs/add_a_custom_action_to_a_flow. This is currently only available to customers with >400k profiles. 

Essentially, you can write a python function (Chatgpt/Claude are great at this!) that you could use to create an output like product_variant_html. Then you would use that output in your email template. See this bit here in the doc -  https://developers.klaviyo.com/en/docs/add_a_custom_action_to_a_flow#4-use-outputs-in-your-email-templates 

 

With this approach, you’d just have one block you show for the recommended upsell product and you do the heavy-lifting in the custom action. Hope this helps! 

 

Cadence / Book a demo