Now that you've got your Klaviyo integration up and running, we can dive into the different flows that you can trigger with the events that Junip sends to Klaviyo. If you haven't setup your Klaviyo integration yet, have a look at this guide.

The benefits of sending a campaign through Klaviyo include being able to use your fully customized email template and add additional segmentation to specify who will receive the email (on top of the time frame that we choose when we create a campaign).

There are two steps to do this, which we'll cover in this guide:

Creating the flow in Klaviyo

The basic flow is very simple, it will look like this:

To get a flow that looks like this, you'll want to Create flow and select Create from scratch. Then, you'll add the metric trigger called "Junip - Order Targeted by Campaign".

Note: if you're on a new version of flows, you may see "Junip - Review request by campaign" as an event instead, this can be used in the same way.

After that, you will add the email that you want to send those customers who are targeted by the campaign. More often than not, this will be the same review request email template that you're using in your post-purchase flow because the variables are the same. If you save that email as a template in Klaviyo, then you can select it for this flow as well.

If you want to add segmentation or filters to the campaign, you can do that in between the trigger and the email in the form of trigger splits or conditional splits. Otherwise, you want to set the flow to live and it's ready to go!

No need to worry about having this flow live too early because it will only send an email when you manually trigger it by creating a campaign in Junip.

Triggering the campaign in Junip

In your Campaigns page, you'll see the campaign flow and your campaign history.

If your flow does not end with "Send event to Klaviyo" like the screenshot above, we'll want to update this by clicking the three dots beside the action, then Edit action and selecting Klaviyo from the list.

You'll also notice under Conditions, that by default, we will require that customers are opted in to marketing to receive the review request via campaign. This means that not all customers who placed an order in the campaign's timeframe will receive the review request. This is the law in a lot of places, but feel free to adjust given the laws in your specific region.

When you're happy with the flow in Junip, you can click Create campaign in the top right corner to select your timeframe. We'll ask you to confirm the timeframe and then we'll trigger the campaign so you're all set!

Note: you can only send a campaign for a given timeframe once, so you'll want to make sure that everything is setup properly being creating your campaign.

Once you create the campaign, you'll see it added to Campaign history as "Pending" while Junip runs it for you. Once it shows as "Completed", those events will have been sent to Klaviyo and the emails will start to send automatically.

Happy sending!

Did this answer your question?