# Create a Campaign Message

* Log in to your CrossEngage account.
* Go to `Campaigns` and click `Create new campaign` in the top right corner of the page.

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

* Choose whether you want to create an Audience or a Realtime campaign. Information about the distinction between these types of campaigns can be [found here](/data-and-engagement-platform/campaign-management/campaigns.md).
* Once you have created your campaign and filled in the “Campaign setup” and “Target group” sections, go to the `Messages` section and click `Create new message`.
* Select `Email` from the dropdown menu. The message setup screen will open.

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

* Under the “Send via integration” heading, select the Mailjet integration that you set up earlier.
* Choose an existing template from Mailjet or create one in CrossEngage.&#x20;
  * [Handlebars](/data-and-engagement-platform/messages/personalization.md) may be useful when creating templates in CrossEngage.&#x20;
  * If you want to use Mailjet templates, make use of the [Mailjet Template Management documentation](https://documentation.mailjet.com/hc/en-us/articles/360043180993-How-to-create-my-own-campaign-template-).
* Fill in the Sender Information:
  * “Sender email address” - the address from which the email will be sent;
  * “Reply-to email address” - the address where replies will be sent to;
  * “Sender name” - the name of the message sender.

## **Value Mapping**

Value-mapping fills out variables in your Mailjet template with personalized content adjusted for individual customers. For example, to include your customer’s first name in your Mailjet email, you would place the {{var:firstname}} variable where you want your customer’s first name to appear in the content of the message. When your customer receives the campaign, they will see their own name where the variable was placed.

* Include the variable of your choice in the content of your Mailjet Template. To ensure values are mapped correctly, keep in mind that Mailjet has the following variable structure: {{var:EXAMPLE}}. Write the variables in this structure, only substitute “EXAMPLE” with the variable name you wish to use. Read [this article](https://www.mailjet.com/blog/news/personalize-emails-with-mailjet/) to learn about how you can use variables in Mailjet to personalize your message content.&#x20;

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

* Once your template is saved & published to the Mailjet gallery, you can use it in the CrossEngage campaign set-up. Select `+Add new mapping` to add the variables that you have used in this particular campaign’s MailChimp Template. You can use both user attributes and handlebars to fill out your variables. When mapping variables in CrossEngage you have to remove the curly brackets "{}" and “var:”, and map only the variable itself (for example: "firstname")

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

{% hint style="warning" %}
If the value-mapping is not done correctly, the email to your customers will not be sent.
{% endhint %}

* Fill in the URL tags if you wish.


---

# 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/email/mailjet/create-a-campaign-message.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.
