How to Reward Customers for Providing a Review Through Yotpo via Klaviyo Through Your Loyalty Program
Updated
by Samantha Brown
How to Reward Customers for Providing a Review Through Yotpo via Klaviyo Through Your Loyalty Program
In order to use this workflow, you will first need to ensure that your Friendbuy and Yotpo integrations are enabled in Klaviyo.
Create a new segment
The first step in creating this workflow is to create a segment in Klaviyo of customers who have submitted Yotpo reviews.
- Under the audience drop down in the left side menu, select Lists & segments

- In the top right corner select Create List / Segment, then choose Segment on the following screen.
- Give your segment a descriptive name like "Yotpo reviewers"
- In the Definition dropdown, select Properties about someone then choose yotpo_number_of_reviews, is at least, 1, and Type: Number
- Click Create Segment to save your new segment.

Create a new flow
To create a new flow in Klaviyo, navigate to Flows on the left side menu, click Create flow in the top right and select Create From Scratch.
Set up the trigger and filters for your new flow
- In the TRIGGER SETUP menu on the left, select Segment.

- You will be then be given the option to choose which segment will trigger this flow. Use the dropdown menu to select our newly created "Yotpo reviews" flow.

Because Friendbuy requires at minimum a recipient email to issue rewards and we need to ensure that the survey taker has a loyalty program membership, you will need to set up two Flow Filters.
Under Trigger Setup select Flow Filters.
Create the first filter in the dropdown menus by selecting Properties about someone, Email, and is set.
Add a Friendbuy webhook to your new flow
First, in the Friendbuy app, navigate to the Developers → Integrations → Klaviyo page where you will find your Flow Webhook Destination. Copy this URL.
Return to the Klaviyo Flow builder.
Drag the Webhook action from the sidebar and place it directly under the Trigger component.
When you click this new Webhook action, a configuration menu will appear on the left side of your screen. In this menu, paste the Flow Webhook Destination URL you just copied from Friendbuy into the URL field where it says Add the destination URL.

In the JSON BODY field in the same menu, copy and paste the following JSON payload and click Save.
{
"email":"{{ person.Email}}",
"phone":"{{ person|lookup:'Phone Number'}}",
"attributes": {
"flowTag": "Yotpo Review"
}
}Set up the earning event in Friendbuy
In the top right corner of your screen you’ll see a button labeled Update Action Statuses. Select this and set to Live from the status dropdown to publish your Klaviyo Flow.
Return to the Friendbuy app and select Loyalty → Earning Events tab → +Add Earning Event → Klaviyo Flow earning event.

And in the earning event configuration, add a new rule to only reward when the flowTag Custom Attribute is equal to Yotpo Review.

Finally, configure your preferred reward options and select Save & Activate.
You're all set!
It is possible to use this flow to reward everyone who has ever submitted a review, but this will need to be manually done using the Back-Populate Flow Recipients action under the Manage Flow dropdown in the flow editor.