# 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](https://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](https://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](https://d33v4339jhl8k0.cloudfront.net/docs/assets/5f340c51042863444aa03abf/images/6307dfc0037bc877147b3283/file-Gir7vROo9o.png)

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

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

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

![](https://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.

![](https://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.

![](https://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.
