> 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/discounteo-for-shopify/integrate-discounteo-with-your-email-service-provider/shopify-messaging.md).

# Shopify Messaging

Shopify Messaging is becoming increasingly popular. With this Shopify feature, you can develop your email marketing. To achieve even better results with it, integrate Shopify Messaging with Discounteo

### Add new Discounteo automation <a href="#text-add-new-personal-discount-automation" id="text-add-new-personal-discount-automation"></a>

First, add a new Discounteo automation. Navigate to your **Shopify admin panel** → **Apps** → **Discounteo**. Click **Add automation**. Select **Shopify Messaging** *marketing automations* as your Email Service Provider. Then, pick the campaign type that you want to enhance with unique discount codes:

* Welcome new subscribers
* Recover abandoned carts
* Thank first-time customers
* Follow up on purchases
* Customer winback
* Other

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2Fqa8x9kGxs7kjN2wXPD4G%2Fshopify-messaging-discounteo-add-automation.gif?alt=media&amp;token=61aadc93-a24c-469c-b574-b70d258cdb57" alt="Animated guide showing how to add a new automation in Discounteo for Shopify Messaging"><figcaption><p>Add a new automation in Discounteo for Shopify Messaging</p></figcaption></figure>

In the next step, you can set up details of your automation such as a discount value, usage limit, or expiration date. Learn more from the article on [how to configure your discount](/discounteo-for-shopify/configure-discount.md).

Save the automation when you finish 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%2FxxQNFX18Wn5xkKOUsu1k%2Fcopy-the-code-snippet-from-personal-discount-to-the-clipboard.png?alt=media&amp;token=6890a988-96ba-4a8c-8ab5-84ac136a054b" alt="Copy the code snippet from Discounteo"><figcaption><p>Copy the code snippet from Discounteo to configure your Shopify Messaging automation</p></figcaption></figure>

### Create new Shopify Messaging automation

Open the Shopify Messaging app and switch over to the **Automations** section. Hit **Create** automation and select the desired automation type. Then click **Edit email** to continue.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FugL7NHFXZRRpUbwprf6q%2Fshopify-messaging-create-automation.gif?alt=media&amp;token=daef8881-05d1-44d7-9d1e-c116fbc21a78" alt="How to create a new Shopify Messaging automation"><figcaption><p>How to create a new Shopify Messaging automation</p></figcaption></figure>

### Include a discount code in the email template

Now design your amazing email template and insert a code snippet responsible for displaying a discount code. Hit **Add section** button or the **plus icon**. Pick the **{/} Custom Liquid** element. In the Custom Liquid area in the right-hand sidebar paste the code snippet from Discounteo. You don't have to save changes to this element, just click somewhere on the background of the message. From now in your template will be displayed a preview of an example discount code.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FZa9KpEOtYRKIo03mhyLc%2Fshopify-email-how-to-paste-the-code-snippet-from-personal-discount-animated.gif?alt=media&amp;token=b90e8101-4056-4244-9f8f-5434f506117a" alt="How to paste a Discounteo code snippet into a Shopify Messaging message template"><figcaption><p>Paste the Discounteo code snippet into a Shopify Messaging message template</p></figcaption></figure>

### Activate your automation

When all the elements of your automation are ready, you can turn it on. **Save** your email template and click **Turn on workflow** and again **Turn on** to confirm.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FJIqpPiQwYHpjoCyr8STF%2Fshopify-email-turn-on-automation-animated.gif?alt=media&amp;token=c8a3e582-9f46-474a-821f-3c1d64105826" alt="How to activate a Shopify Messaging automation"><figcaption><p>Activate the Shopify Messaging automation to start sending messages with Discounteo discount codes</p></figcaption></figure>

Congratulations! From now on your customers can receive messages with unique discount codes according to your automation settings. A discount code is displayed as an image that, when clicked on, redirects the customer to your shop with the discount applied.

<figure><img src="https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdVZovthV0SPlgxS6Y%2Fuploads%2FYTXv2B8RpGjXq2BZzzHx%2Fshopify-email-message-with-code-from-personal-discount.png?alt=media&amp;token=beb3b24d-b528-4e7e-92dc-3bbd21f7e5f8" alt="Discounteo discount code in a Shopify Messaging email"><figcaption><p>Discounteo discount code in a Shopify Messaging welcome email</p></figcaption></figure>
