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 right-hand corner, click the “Create from scratch” 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 of 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 a new unique tag to your contact that you're going to test the workflow with. So, any other contacts won't enter this workflow when 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 a simple example of how you can add an image, product name, URL, and original and current price to your email using an 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 [[event.ProductName]] is now only [[event.ProductPrice]]!</p> <p style="text-align: center; font-size:12px; color:#666666; font-family:verdana,geneva,sans-serif;">It was [[event.ProductPriceOriginal]] when you added it to your wishlist.</p> <p style="text-align: center; font-family:verdana,geneva,sans-serif; font-size:16px"><a href="[[event.ProductURL]]">Buy Now</a></p> <p style="text-align: center;"> <img src="[[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 in customer's inbox:
Trigger the price drop event manually by listing 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.