# Flight confirmation

In this guide, we'll show you how to set up a journey that automatically delivers personalized flight confirmation emails to customers immediately after booking.

### 1. Create a personalized email template

First, create an email template that will be used to confirm the booking details.

1. Go to **Content** > **Email templates.**

2. Create a **new blank template** or choose one from the **template library.**&#x20;

3. Use the drag-and-drop builder to design your email template.

4. Next, add dynamic variables to personalize the email, making it more relevant and useful for the customer. This will enhance their overall experience

   1. Add dynamic variables with booking details such as booking ID, flight details, and travel dates.

      * Example subject line: `Alright {{contact.attributes.displayName}}, your flight is confirmed!`

      <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FZR7HPb2bC2qzZnUDX1N0%2Fimage.png?alt=media&#x26;token=92a73c8d-231b-4a0d-af62-73390ab7edb5" alt=""><figcaption></figcaption></figure>

      <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2Fkz2wor3tQHZmLfIRPozh%2Fimage.png?alt=media&#x26;token=d055f081-5583-4010-b303-2f271701053f" alt=""><figcaption></figcaption></figure>

      <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FEKuTduKtn6uAJU8obdke%2Fimage.png?alt=media&#x26;token=58ba4bd9-f24e-441e-b8db-c096f36b47ff" alt=""><figcaption></figcaption></figure>

      <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FWmhLw7vfC59o0khUY4rk%2Fimage.png?alt=media&#x26;token=8f4d4b55-9ff6-4b18-8f95-b97de0816c40" alt=""><figcaption></figcaption></figure>
   2. Add variables by typing `{{` or clicking the **Manage variable**s, and creating the relevant variables. <br>
   3. **Preview** your template so it's ready to be used in the journey.<br>

      <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FaXDGHVc6aAF3thW0MjQt%2Fimage.png?alt=media&#x26;token=fdf993a8-096b-4143-9269-dfdd2409a485" alt=""><figcaption></figcaption></figure>

5. Once your template is done, click Publish to make it ready to use.

{% hint style="info" %}
**Tip**

* Include important booking details such as flight number, departure time, and check-in information.
  {% endhint %}

### 2. Set up a journey

Next, set up the Journey that will facilitate the flight confirmation journey.

1. Go to the **Marketing** section of your workspace.
2. Navigate to **Journeys** > **Create journey** > **Create from scratch**.
3. In the editor section on the right: &#x20;

   * Select **Placed order** for the Trigger.
   * Select **Website** for the Connector.
   * Select **Website** for the Connector Instance.

   <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FOUNd3YnUPOqWH5aL7OyE%2Fseg1.png?alt=media&#x26;token=bdab3cdd-fab5-4cab-be96-2db4f7a339d0" alt=""><figcaption></figcaption></figure>
4. If you do not have your website connected, select **Manage instance** to connect your website.&#x20;
5. Next, select the action and choose **Send a Message**.

   * Fill out the sender email, name, and choose your confirmation template you created, select save once completed.&#x20;

   <figure><img src="https://3861485111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU9kiDiTGVD8kkbnKKyEn%2Fuploads%2FrxuCSLxL3ec65R9ybNMq%2Fimage.png?alt=media&#x26;token=60373601-815a-463c-afc1-af6a24b61bfc" alt=""><figcaption></figcaption></figure>
6. Finally, select **End Journe**y for completion.
7. When ready, Publish your journey to set it live.

{% hint style="info" %}
**Tips**

* Use Wait steps to manage the timing of the email.
* Add SMS notifications to provide updates via multiple channels.
  {% endhint %}

{% hint style="success" %}
You've just set up a Flight confirmation journey!
{% endhint %}
