Start by navigating to your Shopify dashboard > Apps > Personal Discount > Add automation. Select Omnisend as your Email Service Provider and the Campaign Type is Follow up on purchases.
In this step, you can set up details of your automation like a discount value, usage limit, or expiration date. If you want to learn more, here is a useful article on configuring a discount.
Save the automation when you finish and copy the code snippet to the clipboard.
Now switch over to the Omnisend dashboard. Navigate to the Automation section > New workflow > Create custom workflow.
Let's set the automation trigger. Select trigger Order placed. Then hit Update.
In the next step, add an action that is performed when someone will enter the automation. We want to send an Email.
It's time for preparing an email template. In this step, you need to add the Personal Discount code snippet. To do this, click on Quick add from the left-hand sidebar, then drag and drop an HTML element into your template. Delete the existing example code snippet and paste the one from Personal Discount.
When your email template is ready, hit Finish editing. When the entire automation is ready, click on Start workflow.
From now on, when someone buys something in your store, they will get a discount code for their next purchase.