Send new daily products to customers that bought products with same tag

Send new daily products to customers that bought products with same tag

Maca91
Shopify Partner
1 0 0

Good morning. I am trying to set up an automatic 'Flow', but I am encountering some difficulties in setting up the logic.

Let me start by describing the scenario:
We sell packages for various musical keyboards. Each package is compatible with one or more keyboards. The compatible keyboard models are assigned as product tags.
So, I have a series of products. Each product has 1 or more tags indicating which product it is compatible with.



The objective:
I would like to send an automatic email every day with the products inserted in the previous 24 hours. However, I want the email to be sent only to users who have previously purchased packages with tags similar to the products inserted on the day. In other words:

  1. Take the products inserted in the previous 24 hours (or even in the day).
  2. Obtain all product tags.
  3. Take all users subscribed to the newsletter who have previously purchased products.
  4. Filter the users from the previous list, selecting only those who have purchased products containing tags identical to the tag list from point 2.
  5. Send an email to the users from point 4 with the products from point 1.

This is my currently flow:

immagine_2024-03-02_133645509.png

Maybe i have to copy tags from item orders to user, before proceed? With an automatic on each order? Maybe can simplify?

I no have idea. 
Please, help me 😄

P.S. I'm a software developer and it is the first experience with shopify

Replies 0 (0)