Firstly, visit your Shopify admin panel and click Apps from the left-hand sidebar. Open Personal Discount and click Add automation. Select Kaviyo as your Email Service Provider and your Campaign Type is Welcome new subscribers.
In this step, you can set up details of your automation like a discount value, usage limit, or expiration date. If you would like to learn more, here is a useful article on how to configure your discount.
Save the automation when you finish and copy the code snippet to the clipboard.
Now switch out to your Klaviyo admin panel and open Flows from the left-hand sidebar. Next, click Create flow.
You can use a predefined automation structure or build your own. I will show you how to Create From Scratch so click it.
Next, enter the name of your automation.
Now set the trigger which will start an action. Click it and then select List and Newsletter as a list name.
After signing up for the newsletter, your recipient should get a welcome message, so drag and drop the Email to your automation structure.
In the next step design your welcome message.
Choose the way how to design your email.
Drag and drop a text element to the email content.
Now edit this text element. Switch view to the Source and paste the code snippet from Personal Discount.
Don't forget to save your content.
And finally, you need to start your automation. Change the status from Draft to Live.
Save your automation by clicking the button at the top right. Now, when someone signs up for your newsletter, will get the discount code.