# 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="/files/hyGLfZYsBGq6bwLj3oYU" alt=""><figcaption></figcaption></figure>

      <figure><img src="/files/7vnieVWaHCVZnLHFOAyj" alt=""><figcaption></figcaption></figure>

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

      <figure><img src="/files/3ozerdtW2puo3dhAiJah" 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="/files/GkUFjPWvBpYMXKioKWcJ" 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="/files/WzxQA5YeFXMdSg5cvIJA" 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="/files/tKEvLFWd0Wp2Pr6tfUiL" 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 %}


---

# 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://docs.bird.com/applications/bird-documentation/use-cases/bird-for-travel/flight-confirmation.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.
