# Sendinblue

Follow the steps below to include unique discount codes in emails sent from Sendinblue.&#x20;

1\. Add a new automation in Personal Discount

2\. Select Sendinblue as email service provider

<figure><img src="/files/BiibwqRkDGMjkaJTk0xs" alt="Add Personal Discout Sendinblue automation animated"><figcaption><p>Add Personal Discout Sendinblue automation</p></figcaption></figure>

3\. Select the campaign type that you want to enhance with unique discount codes

* Welcome new subscribers
* Recover abandoned carts
* Follow up on purchases
* Happy Birthday
* Other

<figure><img src="/files/PpQD2xVOpFcIaENuvHCS" alt=""><figcaption></figcaption></figure>

4\. Specify and save the discount settings

5\. Copy the code snippet at the bottom of the settings page

<figure><img src="/files/io2pAnbzQhgh5NIsMD3p" alt=""><figcaption></figcaption></figure>

6\. Switch over to Sendinblue, and navigate to Campaigns > Templates

7\. Open an existing template or create a new one

8\. Drag and drop an HTML element

<figure><img src="/files/q9npZfTWzgnFfYYnjEc4" alt=""><figcaption></figcaption></figure>

9\. Remove the existing source code and paste code snippet copied from Personal Discount settings in point 5

<figure><img src="/files/pRHbmcx1tSE557CTg9Xc" alt=""><figcaption></figcaption></figure>

10\. Click on any location highlighted in blue to confirm changes

<figure><img src="/files/8zChMroLjlXFGyXWq5Yw" alt=""><figcaption></figcaption></figure>

Well done! Your email template includes now a unique discount code.

<figure><img src="/files/gEkPaPk8SrORP7eaQkJK" alt=""><figcaption></figcaption></figure>

The discount will be created individually for each recipient at the moment when they open the email. When a recipient clicks on the discount code then it will redirect them to your shop, and the discount will be automatically applied at checkout.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.personaldiscount.io/personal-discount-for-shopify/integrate-personal-discount-with-your-email-service-provider/sendinblue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
