Before you get started, you need to make sure you’ve enabled the wishlist price drop event within Swym Admin. To confirm, once you’ve logged in to Swym Admin, navigate to Integrations via the left navigation menu. Make sure that the checkbox next to “The price drops on a product in a user’s wishlist” is checked. There is no time delay built into the integration logic, so expect to see price drop events show up in Omnisend shortly after each price change.
In Omnisend, navigate to the Automation page and select "New workflow”. In the upper righthand corner click the “Create custom workflow” button. In this example we’re going to call this automation “Wishlist Price Drop”.
Next you’ll need to set the trigger for this workflow. Choose “Swym-pricedrop” from the dropdown on the right.
Note! If you don't see "Swym-pricedrop" in your dropdown you probably haven't lowered the price on a product since you enabled the event in Swym Admin. Flow triggers won't be displayed until at least one event is sent.
Next, we’re going to add an Audience filter, which we’ll use during development for this workflow. We’ll remove it later once we’re ready to make this workflow live. Make sure to add new unique tag to your contact that you're going to test the workflow with. So, any other contacts won't enter this workflow while it's not ready.
Because the timing of this event isn’t driven by an action taken by the shopper, there’s likely no benefit to adding a time delay before the email is sent.
Next add an email block to your workflow, it will be your price drop message.
The next thing we’ll do is build an email template that consumes the back in stock event data passed from Swym to create our triggered email campaign.
Here are the event-level data elements passed along with this event:
Add these elements to your email using personalization. Here's simple example how you can add image, product name, URL, original and current price to your email using HTML block.
Here is the html we used for our simple email template:
<p style="text-align: center; color:#333333; font-size:16px; font-family:verdana,geneva,sans-serif;"> The [[custom_event.ProductName]] is now only [[custom_event.ProductPrice]]!</p>
<p style="text-align: center; font-size:12px; color:#666666; font-family:verdana,geneva,sans-serif;">It was [[custom_event.OriginalPrice]] when you added it to your wishlist.</p>
<p style="text-align: center; font-family:verdana,geneva,sans-serif; font-size:16px"><a href="[[custom_event.ProductURL]]">Buy Now</a></p>
<p style="text-align: center;"> <img src="[[custom_event.ImageURL]]"/></p>
Once you're satisfied with your email, click Save & Go back. Then Start the workflow to proceed with testing the workflow to check how the email will look like in customer's inbox:
Trigger the price drop event manually by wishlisting a product on your store under the test email ID.
On the Shopify Dashboard, lower the price of the same product that you wishlisted.
This should immediately trigger the event on Omnisend, and send the price drop email to the test audience.
If everything works fine, you can remove the Audience filter that we've added at the beginning. Then real users will be able to trigger this workflow.