Now that you've got your Omnisend integration up and running, we can dive into the different flows that you can trigger with the events that Junip sends to Omnisend. If you haven't setup your Omnisend integration yet, have a look at this guide.
The benefits of sending a campaign through Omnisend 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 timeframe 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 Omnisend
The basic flow is very simple, it will look like this:
To get a flow that looks like this, you'll want to click Automation > New workflow and then Create custom workflow.
You'll want to select a trigger of Junip - Review request by campaign and then an exit condition of Junip - Review submitted before clicking Update to save your changes.
After that, you'll want to drag in an email from the menu in the left-hand side. More often than not, when configuring this email, it will be the same as the one that you're using in your post-purchase review request workflow (like we setup here) because the variables are the same. If you've already set that up and want to use it for this workflow, you can save that email as a template in Omnisend, then you can add it here 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 splits or A/B testing (as you'll see in the left-hand menu). Otherwise, you can rename the flow to something like "Junip - Campaign" and it should look like this:
Last step is to click Start workflow. 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 (which we'll do below).
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 Omnisend" like the screenshot above, we'll want to update this by clicking the three dots beside the action, then Edit action and selecting Omnisend 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 Omnisend and the emails will start to send automatically.