Skip to main content

Awarding points for Klaviyo Reviews

Give your customers points for leaving reviews with Klaviyo

J
Written by Jason Leader
Updated over 3 weeks ago

To see which plans include the Klaviyo integration please see our pricing page. If Klaviyo isn't listed on your integrations page within LoyaltyLion and you would like it, please contact support@loyaltylion.com


Please note that using one Klaviyo account with more than one LoyaltyLion program is not supported.


Awarding Points when a customer leaves a Klaviyo Review

If you are currently using Klaviyo Reviews, you can use a webhook flow to tell LoyaltyLion when a customer leaves a review, and give that customer points for doing so.

The customer will need to be part of your loyalty program first, before they can get the points. If they leave a review prior to joining the program, they will not be given the points for that review, but they will get all points for all future reviews. The points can be given manually, or the rule triggered manually, for any missing review points.

  1. Create your custom rule, by going to Manage, then Rules, and then Create New Rule.

  2. Click on the Custom Rule option. This will open the Custom Rule screen, and you will want to remember some of these options:
    Identifier - this will be referenced later in the flow. For this example, we will use the identifier 'klaviyo_review'.
    Points - This will be up to you, but in this example, we will use 200 points.
    Approval method - as this will be triggered via the webhook, set it to immediate.
    Limit - This is up to you, but we would recommend putting in a limit so customers cannot take advantage of the rule. For this example, we have a limit of 2 per week.

    Your Details section should look something like this:

  3. For the Display section, you will want to give your Rule a title, and add in a notification. For the description, we want to push customers to leave a review, but there is no link that needs to be added here.

  4. In Klaviyo, go to Flows, and Create New Flow. When prompted, click that you want to Create your Own.

  5. In the Flow creator, go to Your Metrics on the right hand side, select Klaviyo metrics, and then Submitted Review, as the trigger.

    You can also add a trigger filter to this, to ensure that the Flow will only start when the review has been accepted and is set to Published.


  6. When the trigger has been selected, add a Profile Filter. Choose Properties about someone, and then the LoyaltyLion property 'enroll_date', ensure that Type is 'Text' and then change to 'is set', like so.
    This ensures the Flow only starts when someone is confirmed to also be in the loyalty program, avoiding any failed sends.

  7. You can then add a Webhook Action under the trigger. This will open up a panel on the right-hand side, which will need the following settings:

    Destination URL - This is the API we want to connect to. For this rule, it will be https://api.loyaltylion.com/v2/activities

    You will need to add two headers, each with a Key and Value.
    For the Authorization header, you'll first need to create an API Key in LoyaltyLion.

    Authorization

    • Key: Authorization

    • Value: Bearer YOUR_API_KEY

      (Replace YOUR_API_KEY with the actual key you created in LoyaltyLion)

    • Example Value: Bearer pat_123456789


    Content-Type

    • Key: Content-Type

    • Value: application/json

    Your headers should then look like the below :


    For the JSON body, you will need to add the following:

    Name - this is the identifier of the Custom Rule that you created before, for this example, it is 'klaviyo_review'.
    Customer ID - this is the ID of your customer in your ecommerce platform. To add this, we are going to add the property sent by LoyaltyLion to Klaviyo, called loyaltylion_merchant_id. This can be added to the body via the variable {{ person.loyaltylion_merchant_id }}.
    Customer Email - this is the email of the customer, and can be added through the variable {{person.email}}.

    Your payload should now look like this:

    {
    "name": "klaviyo_review",
    "customer_id": "{{ person.loyaltylion_merchant_id }}",
    "customer_email": "{{ person.email }}"
    }


  8. You can now save, and publish this Flow. You can track the status of this Flow within Klaviyo, and the number of times the rule has been triggered from within LoyaltyLion.

Did this answer your question?