Shopify Flow to send a Klaviyo e-mail to a single customer, not a list/segment?

Shopify Flow to send a Klaviyo e-mail to a single customer, not a list/segment?

Malix
New Member
5 0 0

Hi there 🙂

 

I set up a flow in Shopify, which is triggered by a customer leaving a segment.

 

Then, the flow checks whether the customer is now in a new segment and if that is true, removes old tags and adds new tags. Based on these tags the customer also enters a segment set up in Klaviyo (not sure if that is even necessary though).

 

I want Klaviyo to send this specific customer an e-mail.

 

I thought I had set this up correctly by choosing “create campaign” with Klaviyo as the last action step but now had to realize that the e-mail/campaign was sent to all customers in that segment (which makes sense now that i take a closer look..).

 

Do you know how I have to set up the last action step to ensure that only the customer, who triggered the flow in the first place is actually receiving this e-mail?

 

I had a look at "track an event" as the last action step but do not really have a clue what to fill in here.

 

Is anyone experiencing the same problems?

Happy to hear your thoughts on this!

 

Malix_1-1727278960627.png

 

 

Replies 6 (6)

RPiii
Shopify Staff
46 8 20

Hi Malix, Klaviyo only provides two actions in Flow — "Track an Event" and "Create a Campaign" — neither of which seem to provide a way to email an individual customer. You may need to consider other options for marketing automations. Apparently the Track an Event can be used to email a customer. Please refer to this Klaviyo documentation for more details.

Malix
New Member
5 0 0

Hi RPiii,

 

thanks for your response. I already had a look at the "track an event" action and I think by pushing a custom event to Klaviyo, I might be able to choose this event later on as a trigger metric within Klaviyo.

 

However, I am quite lost in setting up the information needed here (except for the public API key and event name):

 

Malix_1-1727366742271.png

 

 

 

Any ideas for example what the customer e-mail might be? I think it needs to be some kind of code to be entered here?

 

Thanks for your support!

RPiii
Shopify Staff
46 8 20

In the side panel for the "Track an Event" action, click on the "Add a variable" link below each field, like so:

26-12-f4w85-0n32f

Then, select the "Customer" object and choose the relevant field from the list (eg, "email") and it will populate with a Liquid expression (eg, "{{customer.email}}) that should pass on the correct data to Klaviyo when the workflow runs.
26-13-qvw5i-6y2zt

Malix
New Member
5 0 0

Amazing! Thank you so much!

Kalen_Jordan
Shopify Partner
764 34 135

Yeah once that track event call goes through, you should then have a metric in klaviyo that you can build a klaviyo flow around.

Kalen_Jordan
Shopify Partner
764 34 135

Btw here's a template that I helped to create that does something very similar to this if you want to see a reference:

https://shopify.com/admin/apps/flow/editor/templates/019266ec-6276-7749-8c31-67379f4096be