Back to all Usecases
Send Flight Status Updates

Introduction

Sending flight status updates is crucial because it lets passengers stay informed about any changes to their flight schedule, such as delays or cancellations, or gate changes. By providing timely updates, airline businesses can also manage passenger expectations and maintain operational efficiency. This improves customer experience, brand reputation, and reliability.

Advantages of sending flight status updates

  • For passengers:
    • Improved travel planning: Knowing the status of their flight allows passengers to adjust their plans and avoid unnecessary stress or inconvenience, especially if they have connecting flights or other arrangements.
    • Real-time updates: Flight status updates provide passengers with timely information about changes to their flight schedule, enabling them to make informed decisions and take appropriate action.
    • Reduced anxiety: By staying informed, passengers can reduce anxiety and uncertainty associated with potential flight disruptions.
  • For airlines and travel companies:
    • Enhanced customer service: Providing timely and accurate flight status updates demonstrates a commitment to customer service and helps build trust and loyalty.
    • Operational efficiency: Airlines can use flight status updates to manage their operations more efficiently, such as adjusting staffing levels or coordinating with ground crews.
    • Reduced disputes: By proactively communicating changes to passengers, airlines can reduce the likelihood of disputes and complaints.

We will achieve this use case in three steps:

  1. Create a business event
  2. Create a Push campaign
  3. Trigger the campaign by triggering the business event
library_add_check

Prerequisites

  • An enterprise plan with the Business Events feature must be enabled for your account.
  • Events must be available in MoEngage to track the action of a user booking flights and other related information such as the platform, flight name, departure date, price, departure city, and destination city. In this example, we will use the event Booking Flight Successful. To understand how to track events, refer to the Developer Guide.
  • The Push channel must be configured.

Expected Result

Users receive a push notification on their phones with their flight status update:

flight.png

Step 1: Create the Business Event

In this section, we will create a Business Event for your account. We can use the MoEngage Business Event public API. For our example, the following information is a part of the Business Event:

  • Event name: Flight_Status_Updates
  • Attributes of the event and their data type:
    • Flight Name: string
    • Departure Time: date
    • Gate Number: string
    • Departure City: string
    • Destination City: string

Perform the following steps:

  1. Write the information above in the JSON format and send it to MoEngage through Postman:
    JSON
          {
    "event_name": "Flight_Status_Updates",
    "event_attributes": [
    {
    "attribute_name": "Flight Name",
    "attribute_data_type": "string"
    },
    {
    "attribute_name": "Departure Time",
    "attribute_data_type": "date"
    },
    {
    "attribute_name": "Gate Number",
    "attribute_data_type": "string"
    },
    {
    "attribute_name": "Departure City",
    "attribute_data_type": "string"
    },
    {
    "attribute_name": "Destination City",
    "attribute_data_type": "string"
    }
    ],
    "created_by": "example@moengage.com"
    }
  2. Use the information above in the JSON format and make the API call with authorization information for the right data center your workspace belongs to. For more information, refer to Create Business Event API.
    After the API call is made and the event is created successfully, MoEngage sends the following response:
    JSON
         {
          "message": "The business event has been created",
          "_id": "{{Business Event ID}}"
          }
  3. To verify if the event is successfully added:
    1. In the MoEngage dashboard, go to any Business Event Triggered campaign.
    2. In the Select business event list, you can check for your event. You can see the Flight_Status_Updates event.
      2.png

Step 2: Create a Push Campaign

In this section, we will create a business event-triggered Push campaign to inform our users who are traveling today about the gate number and remind them to arrive 2 hours before the scheduled departure.

Step 2.1: Target Users

  1. On the left navigation menu in the MoEngage dashboard, click Engage, and then click Campaigns.
  2. On the All campaigns page, click + Create campaign.
  3. Under Outbound, click PushBusiness Event Triggered.
    BUSINESSPUSH.png
    You are taken to the first step, Target users, of defining your campaign.
  4. Define your campaign with a name and tags. Enter the following details:
    1. Team: Select a team if your organization has teams enabled for your account. For more information, refer to Teams in MoEngage
    2. Campaign name: Enter a name for the campaign. For example, Flight Updates.
    3. Campaign tags: Select the required campaign tags.
  5. In the Select business event drop-down list, select the Flight_Status_Updates event.
    9usecase1.png
  6. In the Target audience section, define users who are related to the Business Event that would be generated alone. So, for this example, the target audience can be as shown below:
    9usecase2.png
    We are trying to query for the list of users who have booked a flight in the last 60 days, with their Travel Date equal to Departure Time (coming through the Business Event) and their Booked Flight name equal to Flight Name (coming through the Business Event).
  7. In the Target Platforms section, select Android.
    9usecase3.png
  8. Click Next to move to the second step, Content, where you can define the content for your Push campaign.

Step 2.2: Content

  1. Select the template that you would like to use. For example, select Basic notification.
    9usecase4.png
  2. Enter the required content for the campaign. We can manually enter a title, message, and summary or generate it using Merlin AI. For more information, refer to Generate Push Messages with Merlin AI.
    9usecase5.png
  3. Add personalization to the message using information such as the user's name. Such personalization makes the message more contextual and makes the users feel connected. To do the same:
    1. Type @.
    2. On the Push Personalization dialog box, find relevant attributes from a user's business event or user property.
      9.png
  4. Use the deep link option to direct users to a page in your App or website where they can check their ticket details.

    1. In the Default click action list, select Deeplinking.

    2. In the URL field, mention the relevant URL.

  5. Click Next to move to the third step, Schedule and goals, where you can define your campaign's schedule and goals.

Step 2.3: Schedule and Goals

  1. Define when to start and end this campaign and the conversion goal based on your requirements.
  2. Change the deliverability settings based on your requirements. For more information, refer to Create Push Campaigns.
    10.png
  3. Click Publish.

Step 3: Trigger the Campaign by Triggering the Business Event

We are now ready to start triggering the communications. When an update on their flight status is detected, the campaign can be triggered using the Trigger Business Event trigger. The logic of when to pass this event to MoEngage lies at your end based on the business requirement.

Here is a payload example:

JSON
{
"event_name": "Flight_Status_Updates",
"event_attributes": {
"Flight Name": "XYZ",
"Departure Time": "{{Departure Time}}",

"Gate Number": "{{Gate Number}}",
"Departure City": {{Departure City Name}},

"Destination City":{{Destination City Name}},
"triggered_by": "john.doe@example.com"
}

Conclusion

In this use case, we created a Business Event Triggered Push campaign to inform users who have a trip today about the gate number and remind them to come 2 hours before the scheduled departure.

Now that we have published the campaign, we can test it using MoEngage APIs. For more information, refer to Business Event Triggered Campaigns.

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?