> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/recommendations-and-merchandising/how-tos/how-to-deploy-a-strategy/how-to-deploy-a-recommendation-strategy-on-web/how-to-use-recommendations-in-emails-campaign/how-to-deploy-recommendation-with-brevo.md).

# How to deploy recommendation with Brevo

To deploy a recommendation with Brevo, you need to configure the tool first. If you have already done so, you can move on to the next step.\
[https://app.gitbook.com/o/iFKI1JaxSfPoiGt4tT2k/s/6Yw9IRJ6KbbucQPwZUCZ/\~/changes/368/recommendations-and-merchandising-1/how-tos/how-to-configure-your-email-integration/how-to-configure-brevo-integration](/commerce/recommendations/how-to-configure-your-email-integration/how-to-configure-brevo-integration.md)<br>

{% stepper %}
{% step %}

### Prepare the Recommendation

1. Click on  **Recommendations** <br>

   <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2Fx4uCyRJloGuIhpzpvTgU%2Fimage.png?alt=media&amp;token=ba5eb17e-cd62-4152-b25a-15c2c09e05a9" alt=""><figcaption></figcaption></figure>

2. Click on **paper plane icon** in actions of the line, or click on edit recommendation then **deployment settings** button at the bottom right of the page

3. Go to the part : "**On your email platform**". And Map your recommendation variables with Brevo contact attributes.

   <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FOAXpHw3hc6jJUu1xzhnJ%2Fimage.png?alt=media&amp;token=49ed4c27-8bfc-4c12-986d-f6f102b8d77b" alt=""><figcaption></figcaption></figure>

   \
   If an attribute is missing, create it in **Brevo > Contacts > Settings > Contact Attributes > Add new attribute**.<br>

   <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FFRZTRbI0WGKA4tu8Tjcg%2Fimage.png?alt=media&amp;token=29bfbb2b-b134-4ddc-9bf2-d07fcb491324" alt=""><figcaption></figcaption></figure>

4. Click **Publish** and copy the generated **feed brevo link** to the recommendation ID.<br>

   <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FLmJ2O8e1sTA1tGXfom8l%2Fimage.png?alt=media&amp;token=29418071-3489-4ed0-9139-02c623b73984" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}

### Add the Recommendation in Brevo Email

1. Create or edit a campaign using **Brevo Drag & Drop editor**, and insert a **Dynamic Content block** (not to be confused with the Text/HTML block.&#x20;

   <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FHV3WQFeC1mDU4U1RyXCi%2Fimage.png?alt=media&amp;token=4e3ad3e9-5911-44d9-b69f-d8fdf6caf234" alt=""><figcaption></figcaption></figure>
2. In the block settings:
   1. Use **Data feed** as Data source

      <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FI3HtpCMG8ipI7kb5wULD%2Fimage.png?alt=media&amp;token=e8b60d68-9eff-447b-83f7-3e72bd419ec7" alt=""><figcaption></figcaption></figure>
   2. Select your published feed brevo link to the recommendation you want to add in your mail

      <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FGGv2tV53lstF4k0FoIVl%2Fimage.png?alt=media&amp;token=dde5ba9e-63be-4e34-aed0-055c0b52d202" alt=""><figcaption></figcaption></figure>
   3. Insert the variables (title, image, URL, price)

      <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FAdADW20PuVxkX25yPsKa%2Fimage.png?alt=media&amp;token=c84816b5-98ec-43ad-905c-ca23d71dc69f" alt=""><figcaption></figcaption></figure>

Minimal example:

```liquid
{% for item in feed.recos_xxxx.items | slice:"0:4" %}
  <a href="{{ item.url }}">
    <img src="{{ item.image }}" alt="{{ item.title }}">
  </a>
  <p>{{ item.title }} - {{ item.price }}</p>
{% endfor %}
```

{% endstep %}

{% step %}

### Send a Test

1. Add your email address to a Brevo contact list and send a **test email (BAT)** from the campaign.

   <figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2F5SdSTeLmGLIKVuussVJZ%2Fimage.png?alt=media&amp;token=6d39d70a-6e05-4223-afd0-6a4431447c97" alt=""><figcaption></figcaption></figure>
2. You’ll receive the email with live Reco & Merch recommendations 🎉.
   {% endstep %}
   {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.abtasty.com/recommendations-and-merchandising/how-tos/how-to-deploy-a-strategy/how-to-deploy-a-recommendation-strategy-on-web/how-to-use-recommendations-in-emails-campaign/how-to-deploy-recommendation-with-brevo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
