Need help to create a Shopify flow

Basically, I would like to create a flow to remove a certain tag when it reaches 24 hrs after it has been added. Does anyone know how to do that?

3 Likes

Yes

Please clarify in which specific object you want to delete the tag after 24 hours: order, customer, or product?

Hello @TiffanyChung ,

Can you please provide more details? (Like when it will trigger or how the tag will be added? It is possible to create the flow using Shopify flow. Acccording to my understanding I have created the Workflow:

We currently have a Shopify Flow set up so that when a specific customer tag is added, our RIVO Loyalty app awards points to the customer, and then the tag is removed after the points have been added.

However, I’d like to modify the flow so that the tag is removed 24 hours later, rather than immediately. I tried adding a “wait 24 hours” step before removing the tag, but during that waiting period, points continue to be added repeatedly.

Is there a way to ensure that:

  1. The tag is automatically removed 24 hours after it’s added to the customer account, and
  2. Points are only added once, not multiple times within that 24-hour window?

Hey @TiffanyChung,

I can see the issue with your current flow. The problem is that every time the flow triggers (when the tag is detected), it adds points AND queues up a tag removal for 24 hours later. So if the tag gets detected multiple times during those 24 hours, you get multiple point additions.

Here are a few solutions to fix this:

Solution 1: Add a “Processing” Tag (Recommended)

Modify your flow like this:

Current Flow Structure:

  1. Trigger: Customer tags added
  2. Check if: Customer state is ENABLED
  3. Check if: Tag equals “100 Points”
  4. Add Points
  5. [ADD DELAY: 24 hours]
  6. Remove customer tags: “100 Points”

Modified Flow Structure:

  1. Trigger: Customer tags added
  2. Check if: Customer state is ENABLED
  3. Check if: Tag equals “100 Points”
  4. Check if: Customer tags does NOT contain “100-Points-Processing”
  5. Add customer tag: “100-Points-Processing”
  6. Add Points
  7. Delay: 24 hours
  8. Remove customer tags: “100 Points, 100-Points-Processing”

This way, once the “100-Points-Processing” tag is added, the flow won’t trigger again for the same customer until both tags are removed.

Solution 2: Use Multiple Flows

Flow 1 - Add Points (One-time)

  • Trigger: Customer tags added
  • Check if: Tag equals “100 Points”
  • Check if: Customer tags does NOT contain “100-Points-Processed”
  • Add customer tag: “100-Points-Processed”
  • Add Points

Flow 2 - Remove Tags (24hr delay)

  • Trigger: Customer tags added
  • Check if: Tag equals “100 Points”
  • Delay: 24 hours
  • Check if: Customer still has “100 Points” tag
  • Remove customer tags: “100 Points, 100-Points-Processed”

For Your Specific Flow in the Image (the one you shared):

Looking at your current setup, I’d recommend Solution 1. Here’s exactly what to modify:

For the “100 Points” branch:

  1. After “Tag is equal to 100 Points” condition
  2. Add new condition: “Customer tags does NOT contain ‘100-Points-Processing’”
  3. If TRUE: Add customer tag “100-Points-Processing” → Add Points → Delay 24 hours → Remove tags “100 Points, 100-Points-Processing”
  4. If FALSE: End (do nothing)

For the “250 Points” branch:

  1. After “Tag is equal to 250 Points” condition
  2. Add new condition: “Customer tags does NOT contain ‘250-Points-Processing’”
  3. If TRUE: Add customer tag “250-Points-Processing” → Add Points → Delay 24 hours → Remove tags “250 Points, 250-Points-Processing”
  4. If FALSE: End (do nothing)

For the “500 Points” branch:

  1. Same logic with “500-Points-Processing”

This ensures that:

  • Points are only awarded once per tag application
  • Tags are removed after exactly 24 hours
  • No duplicate point awards during the waiting period

The key is using that “processing” tag as a flag to prevent the flow from running multiple times for the same point award.

Let me know if you need help setting up any of these conditions!

Shubham | Untechnickle

2 Likes

Is this setting correct for the 100 Points branch?

Hey @TiffanyChung,

Yes, your 100 Points branch setup is absolutely correct! :slight_smile:

Feel free to reach out if you’ve any more questions for us, we’d love to help.

Cheers!
Shubham | Untechnickle

1 Like