# Set up Zenloop Survey via ESP

## **Set Up your zenloop Survey**

* Go to the Collect Page in Zenloop, and choose Email Embed.
* Follow [these steps](https://support.zenloop.com/de/articles/846117-setting-up-email-embedded-channel) to set-up your zenloop Email survey.
* Customise your survey styling using zenloop’s Survey Editor. For more information, [click here](https://support.zenloop.com/de/articles/5520444-customising-your-survey).
* Click next to go the the **Implement** Step.
* Set the Email Marketing Platform as Custom.
* copy the HTML code snippet to use in CrossEngage.

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

* Setup a campaign in CrossEngage using an email integration and add the HTML code you copied in Step 4.

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

* In order to attach Recipient Identities & [Properties](https://support.zenloop.com/de/articles/825164-choosing-your-properties), you must alter each URL in the code (there can be up-to 11, depending on the scale being used) using handlebars. The links must be changed as follows. For more information, see the Zenloop documentation [here](https://support.zenloop.com/de/articles/844530-adding-recipient-identities-and-properties-to-email-embedded-survey).

```
https://responses.zenloop.com/web/response/[Survey-Hash-ID]/email_embed/10?is_a_test=false&identity={{user.[traits.externalId]}}&identity_type=custom&first_name={{user.[traits.firstName]}}&last_name={{user.[traits.lastName]}}&properties[ce_externalId]={{user.[traits.externalId]}}
```

{% hint style="info" %}
You can see the Hash ID for your Zenloop Surveys in Settings -> zenAPI.
{% endhint %}

* Activate and run your Campaign.


---

# 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://documentation.crossengage.io/data-and-engagement-platform/messages/integrations/channels/webhooks/zenloop-via-crossengage-webhook/set-up-zenloop-survey-via-esp.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.
