Use Automatic Feedback Service with Klaviyo

Set up our Automatic Feedback Service (AFS) with Klaviyo to automatically send review invitations to your customers after they make a purchase or have a service experience with your business.

We already have a dedicated Klaviyo integration that you can use to place TrustBox widgets in your newsletters, but it's not possible to send out review invitations with it. By following the steps in this article, you can use AFS to send out review invitations with Klaviyo. 

Add the Structured Data Snippet

To get started, you'll need to add the structured data snippet to your email template. Here's how to do it:

  1. Log in to your Klaviyo account.
  2. From the menu, go to Content > Templates.
  3. Select the template you want to use or create a new one by clicking Create Template in the top right-hand corner.
  4. In the email template editor, go to the email template's source code by clicking the </> icon.mceclip1.png
  5. Insert the example code snippet below into the source code of your template. If you're not comfortable with code, you may need to ask a developer for help with this step.
    • For service reviews, insert this code:
      <script type="application/json+trustpilot"> { 
      "recipientEmail": "{{ email|default:"" }}",
      "referenceId": "{{ email|default:"" }}",
      "recipientName": "{{ first_name|default:"" }}" }
      </script>
      Click Done.
    • For service and product reviews, insert this code:
      <script type="application/json+trustpilot"> { 
      "recipientEmail": "{{ email|default:"" }}",
      "referenceId": "{{ email|default:"" }}",
      "recipientName": "{{ first_name|default:"" }}",
      "productSkus": ["{{ event.extra.line_items.0.product.variant.sku|default:'' }}"] }
      </script>
      Click Done.

Send a test email

Now, you can send yourself a test email to see if you've added the code snippet correctly.

  1. Click on Preview and Test in the top right-hand corner. This will open preview mode.
  2. Under Preview Profile Info, search for or select the test profile for your existing Klaviyo profiles. 
  3. Click Send Test. A test recipients box will appear.
  4. In the box, type your email address and click Send.

Once the test email is sent, you can verify that everything is set up correctly on your Invitation status page in Trustpilot Business. Be sure to take a look and make sure everything looks right.

Set up AFS with the BCC field

Next, you need to set up your email flow in Klaviyo and add your unique Trustpilot email address to the BBC field of your emails in order to use AFS.

  1. In Trustpilot Business, go to Get reviews > Invitation methods > Trustpilot Automatic Invitations (AFS).
  2. Find your Unique Trustpilot email address and copy it.
  3. In Klaviyo, go the menu and click Flows.
  4. Click Create Flow in the top right-hand corner.
  5. You have several options to trigger emails in this flow. Under Trigger Setup, select the trigger you'd like to use.
  6. Under Actions, click Email.
  7. Once the email appears in your flow, click on the three dots in the right-hand corner and then click Edit. Here, you can edit the content for this flow.mceclip5.png
  8. Click on the +Add BCC button. This is where you'll need to add your unique Trustpilot email address. Paste the address here.A flow chart highlighting the editing tool for the email
  9. Under How would you like to design your email?, select the Drag and Drop option.
  10. Your library will open. Go to the My templates tab and select the email template you'd like to use.
  11. Click Save and Exit in the top right-hand corner to close the email editor. Now is a good time to send yourself a test email again to ensure everything is set up correctly.
  12. When you're ready to activate your new flow, click Review and Turn On in the top right-hand corner.
  13. Make sure that the status for all of your actions is set to Live in the drop-down menu that appears.
  14. Click Turn On to start sending out review invitations automatically.

AFS is now set up. You can get an overview of your invitation activity on your Invitation status page in Trustpilot Business.

 

Was this article helpful?

Related articles