# Emarsys

## Enable Emarsys on Poplar

Navigate to the [Integrations > Emarsys](https://app.heypoplar.com/credentials/emarsys) page on your Poplar account and click **Enable Emarsys.** This will generate your secret key and webhook URL. &#x20;

## Create the Emarsys Webhook Node

1. Open your Emarsys console and navigate to Automation > Webhook Node Presets

![emarsys-1](//d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307df534cde766bbe13f2b3/file-nffsSipUlJ.png)

2. Name your node preset on Emarsys and select “JWT Authentication” for the Authentication choice. Enter the API endpoint URL and Secret Key from Poplar.

![emarsys-2](//d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307df867164226be0c803a4/file-JZmf7vxmQp.png)

3. Add a key-value pair for each of these Poplar data fields. Map the appropriate Emarsys contact data field using the drop downs on the right.

![emarsys-3](//d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307dfc0037bc877147b3283/file-Gir7vROo9o.png)

4. Add **Additional Data** fields for campaign\_id and merge\_tags.&#x20;

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307dfdec713d51da3ed8b9c/file-g7LPiQbL5C.png)

5. Test the connection with the **Start Testing** button, then save.

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307e0087164226be0c803a8/file-XE3mOLwIKW.png)

## Use the Poplar Webhook Node

1. In Emarsys, open any **Automation** program that you’d like to add a Poplar campaign.
2. In the **Nodes** window, find the webhook node in the **Channels** category and place it in your automation.

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307e07ac713d51da3ed8b9d/file-7TsIXGGYta.png)

3. Double-click on the Webhook node you just placed. Select your new Poplar node from the dropdown.
4. Scroll down in this window and add the campaign\_id you’d like to send, along with any required merge\_tags.

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307dfdec713d51da3ed8b9c/file-g7LPiQbL5C.png)

5. That’s it! We recommend testing your automation with before activating it for your customers.
   1. Head to your **Campaign Overview** in Poplar and scroll down to the **History** section to see successful tests come through.


---

# 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.heypoplar.com/integrations/supported-platforms/emarsys.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.
