# 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FFBn7nMkW1L1hK8POg9M6%2FCampaigns_New.png?alt=media&#x26;token=8b3a70b4-89fc-43dc-960a-17fc4bbfe931" 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](https://documentation.crossengage.io/data-and-engagement-platform/campaign-management/campaigns).
* 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2F0wfXJ48qSd7cHqip2Wb3%2Fcampaign_messages_email.png?alt=media&#x26;token=61188faf-ee74-4ee6-8d39-9b0911c0496b" 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](https://documentation.crossengage.io/data-and-engagement-platform/messages/personalization) 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FgNGIMPSne8q1A9qW9BbQ%2FMailjet_Template_ValueMapping.png?alt=media&#x26;token=755837c0-e566-4a05-843f-3a700e5be3ab" 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2Fjc4dc8VrnKBEDKcIG4SD%2FIntegrations_Mailjet_ValueMapping.png?alt=media&#x26;token=57de652d-4ed5-43c8-8f38-b2175811a238" 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.
