# Create a Real-Time Campaign

* Go to the Campaigns Tab, and click on Create Campaign.
* Choose Realtime Campaign.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2F9BD72AotmEs0P89iBPTR%2FCampaigns_New.png?alt=media&#x26;token=1e15abb5-39b8-4504-be8b-fa1b187a556f" alt=""><figcaption></figcaption></figure>

* Give your Campaign a meaningful name. You can also add a Description, Labels or choose a Campaign Group. This will help you and your team to follow the Campaign later.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FobARZ23RZ9UB6NgWjO9P%2FRTCampaign_Name.png?alt=media&#x26;token=db292370-768c-4bae-8602-45dfeba27fc9" alt=""><figcaption></figcaption></figure>

* Select the time frame for the Campaign. For this example, this campaign will run from April 2023 onwards.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FHjz2nA6YSGRCf5DUPBUA%2FRTCampaign_Dispatch.png?alt=media&#x26;token=c69f52f5-904f-4491-821b-457ece8e415f" alt=""><figcaption></figcaption></figure>

* Choose if this campaign is Transactional. A transactional campaign always sends its messages, bypasses frequency cappings. Here we do not select this option.

{% hint style="info" %}
Transactional Campaigns are useful for messages that the customer needs, such as purchase receipts. Generally, we avoid using transactional campaigns, to avoid sending too many messages to a single user.
{% endhint %}

* Choose a Control Group for the Campaign. A Control Group is a group of customers who are excluded from the Campaign, so we can judge how the Campaign is affecting user behavior. Here, we disable the Control Group.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2F6Fo3NMbVjWXFR81DKMhP%2FRTCampaign_ControlTransactional.png?alt=media&#x26;token=ac4cd0fb-6419-4d11-8278-b0afd08263e5" alt=""><figcaption></figcaption></figure>

* Click on Save Changes.
* Go to next step: Target Group.
* In the Target Group, select or create a User Segment. This is the audience of your campaign that will be targeted.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FouwBGVzpKanpXR3nUlvO%2FRTCampaign_Segment.png?alt=media&#x26;token=bada98cc-8e6f-4cdd-b87a-8aa704b4bfd3" alt=""><figcaption></figcaption></figure>

* Click on Save Changes.
* Define a User Journey. Here, we use the events "Added Product" and "Order Completed".
  * Add the first event E1 "Added Product" of type "needs to happen".
  * Add a wait W2 after E1 for "+6 Hours after E1".
  * Add the second event E3 "Completed Order" of type "Should not happen".

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FowEbSoRQRrltoQWTso9W%2FRTCampaign_Journey.png?alt=media&#x26;token=34a61d49-6bf2-48f9-b3b5-9be7c250e201" alt=""><figcaption></figcaption></figure>

* Click again on "Save Changes".
* Go to next step: Messages.
* Create a new message for your audience. Here we use a [Template](https://documentation.crossengage.io/data-and-engagement-platform/messages/templates) for the message. You can also use [Handlebars ](https://documentation.crossengage.io/data-and-engagement-platform/messages/personalization)such as `{{journey.steps.[0].[properties.price]}}` to customize your message and Subject.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FbCgw6pMFFj3EkVw3waLU%2FRTCampaign_Message.png?alt=media&#x26;token=912498c2-0284-41dd-9c15-943c48477ade" alt=""><figcaption></figcaption></figure>

* After configuring your message, you can click on Preview Message to see what the outgoing message will look like.
* Go to next step: Frequency Capping.
* Select the required Frequency Capping. Here, we cap messages from this Campaign at 1 per 7 days.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FDrlWG1ynWYLMbYYRwrTT%2FRTCampaign_Capping.png?alt=media&#x26;token=1bd25b7d-badc-4cbb-9505-4f5ddade5590" alt=""><figcaption></figcaption></figure>

* Go to Campaign Summary.
* You can now activate your campaign,by clicking on the Activate button from the Campaign Summary page.
