Skip to main content
Contributor I
August 2, 2024
Solved

Triggering events when customer spend passes thresholds

  • August 2, 2024
  • 2 replies
  • 141 views

Hi,

 

I’m trying to set up a flow for the following use case:

“Every time a customer’s total spend passes a $200 threshold, send them a promo code with a $10 discount”


Our system uses the Klaviyo API to send subscribers/orders, and has a end-point to trigger the promo code creation (and trigger another flow to send an email).

How would you go about tracking how much a customer has spent and when they’d been sent previous promos?

 

I’m trying to do this using a “Dollars Since Last Promo” Subscriber property and increasing this by order totals, then decreasing it when an promo is sent. However, it seems (unless I’m mistaken) that Flows cannot modify a subscriber property based on its existing value or an event property.

 

Can you think of a way to achieve this outcome?
 

Thanks!

    This topic has been closed for replies.
    Best answer by alexratcliff

    Hi Robin,

     

    Would you be better to create a segment for this? So your segment could sit as ‘Total Customer Lifetime Value’ is greater than / or between 200-399 and 400-599.

     

    Then set your flow trigger as ‘added to segment = x’ 

    This way you will have this running and reactive at all times.

     

    Then i would change the profile property to reflect they’ve been through this flow.

     

    Let me know what you think!

    Alex

    2 replies

    alexratcliff
    Problem Solver III
    Problem Solver III
    August 5, 2024

    Hi Robin,

     

    Would you be better to create a segment for this? So your segment could sit as ‘Total Customer Lifetime Value’ is greater than / or between 200-399 and 400-599.

     

    Then set your flow trigger as ‘added to segment = x’ 

    This way you will have this running and reactive at all times.

     

    Then i would change the profile property to reflect they’ve been through this flow.

     

    Let me know what you think!

    Alex

    Alex @ Adanola
    RobinEAuthor
    Contributor I
    August 6, 2024

    Thanks Alex, I think that’s what I was looking for! I’ll give it a shot