Send automated email to customer leaving 5 star review

Send automated email to customer leaving 5 star review

DMOGUL
New Member
4 0 0

I have the flow setup as this

 

Triggered when customer leaves review > Condition: 5 star > Send marketing email

 

However i am getting an error saying that "customer data not found"

Screenshot 2025-01-10 at 12.46.35 PM.pngScreenshot 2025-01-10 at 12.46.44 PM.png

Replies 3 (3)

paul_n
Shopify Staff
1508 163 352

That trigger doesn't provide a customer resource to Flow, so Flow cannot automatically enter the Customer for you. 

 

I believe it provides an email or maybe a string called "CustomerID". So to use it, you can add a "Get customer data" action with a query of something like `email:{{email}}`. After that, you'll need to add a for each loop after the action since it returns a list of customers (a list of 1 in this case). You can put the Send Marketing Email inside that for each loop and it should then find the customer. 

 

Make sure to test this that the "Get customer data" query returns what you expect. The filters required by the API are a bit tricky

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
DMOGUL
New Member
4 0 0

Im a bit of a noobie with this stuff so a lot of what you just said is confusing me even more. Any chance I can grant access to my store have you look at it?

paul_n
Shopify Staff
1508 163 352

I don't think seeing your store will help. Spelling it out more. Here is the structure of the workflow:

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.