> For the complete documentation index, see [llms.txt](https://docs.personaldiscount.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.personaldiscount.io/personal-discount-for-shopify/integrate-personal-discount-with-your-email-service-provider/omnisend/how-to-create-welcome-new-subscribers-automation-with-omnisend.md).

# 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="/files/zUoGka4toDQrIa2oXu1x" 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](/personal-discount-for-shopify/configure-discount.md) 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="/files/qiOmqkVS4WMYfSkMjRMc" 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="/files/nlAnnbuB00BhH3E9vucA" 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="/files/IFEjYikOioM3XBeOystK" 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="/files/7zmQWlzycfgyIBRWTdUC" 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="/files/2F7fxmKRZW6gjaKNdjk1" 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="/files/vv8j94H6lPDf8OlkMFD3" 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="/files/c8ltKi4PDBAYSj6iIAt7" alt="Omnisend automated welcome message with Shopify Personal Discount code"><figcaption><p>Omnisend automated welcome message with Shopify Personal Discount code</p></figcaption></figure>
