# Reward Yotpo reviews Using Dollarback

**Introduction**\
This guide walks you through how to integrate [Yotpo: Product Reviews App](https://apps.shopify.com/yotpo-social-reviews) with [Dollarback: Cashback & Loyalty](https://apps.shopify.com/dollarback) using Shopify Flow. After this setup, your store can automatically reward customers with store credit whenever they leave a product review.

{% embed url="<https://youtu.be/Am99rl8SzN4>" %}

***

#### 🛠️ Prerequisites

* Yotpo: Product Reviews App installed and fully configured
* Dollarback: Cashback & Loyalty App installed
* Shopify Flow installed
* Reviewer email must be collected as part of the review
* Dollarback’s **Shopify Flow integration enabled**

***

#### 🔁 Step-by-Step Setup

**1. Enable Shopify Flow Integration in Dollarback**

* Open the Dollarback app
* Go to **Integrations** → **Shopify Flow**
* Ensure it's **enabled**

***

**2. Create a New Flow in Shopify Flow**

* Go to your Shopify Admin → **Flow**
* Create a new workflow
* Set the **trigger**: `Yotpo - New Review Submitted`

> ⚠️ **Note**: Yotpo does *not* pass customer object directly. We'll fetch customer info manually using the reviewer’s email.

***

**3. Get Customer from Email**

* Add a **Get Customer Data** step
* Use the following settings:
  * Query:

    ```graphql
    id: {{reviewerEmail}}
    ```
  * Max results: `1`
  * Sort by: `ID (ascending)`

***

**4. Flatten and Loop Over Result**

* Add a **For Each** loop over the customer array
* Inside the loop, use **Dollarback: Deposit Store Credit**
  * Customer ID: from the loop variable
  * Amount: ₹100
  * Expiry: 30 days

***

#### 🎉 That’s It!

Now, every time a customer leaves a review via Yotpo, they’ll automatically receive ₹100 in store credit via Dollarback.

***

#### ❓ Need Help?

Reach out via the chat support inside the Dollarback app. We’re happy to assist if you run into setup issues or flow errors.
