Skip to main content
Solved

How can I get a flow to only trigger on the last event in the past 2 hours?


IanHogers
Contributor IV
Forum|alt.badge.img+2

Hi,

 

We've got a bit of a complicated situation for an email flow.

We want to send an email after the user has stopped triggering a certain event for 2 hours. so users browse our site and trigger events multiple times.

but then we only want the last one within 2 hours gets triggered.in the klaviyo flows maker there's an option to not include if they have already been in the flow in the past x hours. but we want to check for that at the end of the flow.

The reason for this is that we have wishlists enabled for customers and there can be max 6 entries in the wishlist but if they're adding to wishlist and receive just the first item they've wishlisted in the email it's no good.

we want them to get an email about the last 6 they've added which is the last event fired as it contains a list of the items.I spoke to someone on the live chat but it wasn't very helpful.

 

Has anyone had any luck with a flow that only sends an email on the last event flow within 2 hours?

Here’s a diagram I drew (I hope it’s clear enough.):

Kind Regards,
Ian Hogers

Best answer by elisegaines

Hi @IanHogers ! I’d recommend this flow filter: 
 

 

And in the “Choose metric” field, select the same event that triggers the flow. 

 

That flow filter will get checked at the beginning, and then again when the message is sent after the 2 hour time delay. So, the customer will join the flow each time they add a wishlist item, but all events except the final one will be kicked out of the flow due to that filter. 

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Forum|alt.badge.img+25
  • Customer Ed.
  • 86 replies
  • Answer
  • March 8, 2021

Hi @IanHogers ! I’d recommend this flow filter: 
 

 

And in the “Choose metric” field, select the same event that triggers the flow. 

 

That flow filter will get checked at the beginning, and then again when the message is sent after the 2 hour time delay. So, the customer will join the flow each time they add a wishlist item, but all events except the final one will be kicked out of the flow due to that filter. 


IanHogers
Contributor IV
Forum|alt.badge.img+2
  • Author
  • Contributor IV
  • 9 replies
  • March 8, 2021

Hey @elisegaines , That might actually work!

We’re trying it out now. thank you.

Will let you know how we go


IanHogers
Contributor IV
Forum|alt.badge.img+2
  • Author
  • Contributor IV
  • 9 replies
  • March 10, 2021

Hi @elisegaines 

It’s working! thank you so much for taking the time to reply this was driving us mad!

Kind Regards,

Ian Hogers