Need help on creating workflow with loyalty point

Hi,

I need help on creating the following workflow:

  1. I would like to create a workflow to add loyalty program points on a certain day, even they have not purchased anything. Like a special gift.
  2. When they click on a certain image on the website, they will get points.

FYI, we are using the RIVO loyalty program app

You can use the Scheduled time trigger to run something like every day. You can use “get customer data” to get a list of customers. And loop over those customers using “For each”. Then call the Rivo action to add points.

What isn’t clear is which customers you want to do this for or how you would get that list via Get customer data. Something like a tag might work.

Hi Paul,

We would like customers who have an account will be able to get the points. The trigger variables that I can only see is “Scheduled At” when using the Scheduled time trigger. How could I set it up so that will check whether they have an account?

You can query by “state” in “get customer data”. See: https://shopify.dev/docs/api/admin-graphql/2024-01/queries/customers#argument-query-filter-state

Possible values of state is here: https://shopify.dev/docs/api/admin-graphql/2024-01/enums/CustomerState

It doesn’t show the value that you have mentioned.

You need to add a Get customer data action