Before you get started, you need to make sure you’ve enabled the wishlist low stock 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 “A product that a shopper was interested in is now back in stock” is checked. Once enabled, Swym will send an event to Omnisend each time a product on customer’s wishlist is back in stock.
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 Back in Stock”.
Next you’ll need to set the trigger for this workflow. Choose “Swym-backinstock” from the dropdown on the right.
Note! If you don't see "Swym-backinstock" in your dropdown you probably haven't had a wishlisted product come back in stock since you enabled the Omnisend integration in Swym. Omnisend will not display flow triggers until they've received at least one event.
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 back in stock 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 URL and product name to your email using HTML block.
Here is the html we used for our simple email template:
<p style="text-align: center; font-family: verdana,geneva,sans-serif;">The [[custom_event.ProductName]] on your wishlist is now back in stock!</p>
<p style="text-align: center;"><img src= "[[custom_event.ImageURL]]" width="400" height="250" /></p>
<p style="text-align: center;"><a href="[[custom_event.ProductURL]]">[[custom_event.ProductName]]</a></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.
Choose a product with an inventory of 0.
Wishlist this same product on your store that you are signed in to.
Go to the Shopify portal and update your stock for this particular product.
This should trigger the wishlist back in stock event on Omnisend and you will receive the 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.