# How to create welcome new subscribers automation with Omnisend

In this tutorial, we will show you how to create a welcome campaign with a discount code using Omnisend and Personal Discount for Shopify.

Start by navigating to your **Shopify dashboard** > **Apps** > **Personal Discount** > **Add automation**. Select **Omnisend** as your Email Service Provider and the Campaign Type is **Welcome new subscribers**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FcvYBpWNSMGDWndQtQp4W%2Fcreate-welcome-new-subscribers-personal-discount-code-for-omnisend-annotated-animated.gif?alt=media&#x26;token=e67ffcd2-4a37-4dd1-aef4-3816d125965b" alt="How to add the Personal Discount welcome automation for Omnisend annotated animated"><figcaption><p>Add the welcome automation for Omnisend</p></figcaption></figure>

Now set your automation details such as the code pattern, the discount value, the expiration date, etc. Take a look at the article on [how to configure discount](https://docs.personaldiscount.io/personal-discount-for-shopify/configure-discount) to modify it to best suit your need.

When you have finished this process, **Save** your automation and copy the code snippet to the clipboard.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2F7sfjqhsDjp3ZmnTKMyre%2Fomnisend-copy-the-personal-discount-code-snippet-to-the-clipboard-animated.gif?alt=media&#x26;token=1a8cfa68-f2dc-4c49-b4cd-82ae34162666" alt="Copy the Personal Discount code snippet to the clipboard animated"><figcaption><p>Copy Personal Discount code snippet</p></figcaption></figure>

Switch over to the Omnisend admin panel. Navigate to the **Automation** section from the top menu. Then hit the link **Explore all workflows** > **Create custom workflow**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FWUlTlj00D1H18Iztt9CY%2Fomnisend-create-welcome-automation-annotated-animated.gif?alt=media&#x26;token=8dc68355-50ef-4214-9937-7b95f3ee66f8" alt="How to create Omnisend custom workflow animated"><figcaption><p>Create Omnisend custom workflow</p></figcaption></figure>

Set the automation trigger. Click on **Select trigger** and pick **Signup** from the dropped-down menu.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FZQoGFlOvn07CbpeR9gkx%2Fomnisend-set-welcome-automation-trigger-annotated-animated.gif?alt=media&#x26;token=898af70a-9b57-4a8d-bd6a-59f17aada53f" alt="How to set welcome automation trigger Omnisend animated"><figcaption><p>Set Omnisend automation trigger</p></figcaption></figure>

Add an action that will be performed when a subscriber joins your newsletter. Drag and drop the **Email** element to your automation. Then fill in message fields such as subject, preheader, etc. Hit **Edit content** and **Save** your automation.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FWuhDwz7gbJDlgF5GPOdP%2Fomnisend-set-welcome-automation-action-annotated-animated.gif?alt=media&#x26;token=1fb925fb-4040-4097-a9d7-a4a1c752a576" alt="How to add sending an email to the Omnisend welcome automation animated"><figcaption><p>Send Omnisend automated email</p></figcaption></figure>

Let's move on to editing the email. Customize your message template and add the Personal Discount code snippet there. To do this, click on **Quick add** and drag an **HTML element** to your template. Then delete the default code snippet and paste the one from Personal Discount. When your email template is ready, hit **Finish editing**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FVzzA7uVJhaBWP5pIENRR%2Fomnisend-add-shopify-personal-discount-code-snippet-animated.gif?alt=media&#x26;token=bba6a12d-2c4e-47b0-b391-0b4bfd4a9d00" alt="How to add an HTML element to the Omnisend message animated"><figcaption><p>Add an HTML element to Omnisend email</p></figcaption></figure>

Now it's time to **Start workflow**.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2Fa1Ynex0vY8SU4rlkR3su%2Fomnisend-activate-welcome-automation-animated.gif?alt=media&#x26;token=4705506d-fa28-46e9-9d43-2bc54951553c" alt="How to start Omnisend welcome flow animated"><figcaption><p>Activate Omnisend automation</p></figcaption></figure>

From now on, your customers will receive a message with a discount code, when they sign up for your newsletter.&#x20;

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FagTTPQiZ1JtvCd5RaMtc%2Fomnisend-shopify-personal-discount-code-welcome-new-subscriber-message.png?alt=media&#x26;token=a63d24d4-6347-41c3-9ba2-2bf95a894029" alt="Omnisend automated welcome message with Shopify Personal Discount code"><figcaption><p>Omnisend automated welcome message with Shopify Personal Discount code</p></figcaption></figure>
