Use cases

Sort booking changes, cancellations and refund requests

Each traveller message gets its request, who caused it, and flags for travel soon or a card dispute threat. It never decides if a refund or waiver is owed.

Try it on this example

Example · Email: the airline moved the flight home, the traveller will not take it and wants a refund

Channel (email, chat, web form): Email

Traveller's latest message

From: Nadia Kowal <nadia.kowal@example.com> To: Help <help@skylark-travel.example> Date: Wed, 23 Sep 2026 21:14 Subject: Booking K7Q2XN - flight home cancelled, refund please Hello, We booked a flight and hotel package to Lisbon with you in June, booking reference K7Q2XN, for two adults (me and my partner, Elliot Varga). We fly out on 9 October and come home on 14 October. Yesterday the airline emailed to say our flight home on the 14th has been cancelled and they have moved us to a flight on the 16th instead. We can't take two extra days off work, and the hotel would cost us two more nights, so we won't be taking the new flight. We've booked ourselves onto a different airline on the 14th. I rang the airline this morning and they said that because we booked through you, you have to sort the refund. So please can you refund the return leg of our flights. The outbound on the 9th is fine and we still want the hotel as booked. If this isn't sorted this week I'll be going to my credit card company. Thanks, Nadia Kowal
  1. What is the traveller mainly asking for?Refund after a supplier change100%
  2. Does the traveller say the supplier cancelled or changed the booked travel?Yes99%
  3. Does the traveller accept or turn down the new travel the supplier offered?Turned down100%
  4. Does the traveller say in words that travel is today, tonight or tomorrow?No88%
  5. Does the traveller give illness, a death, an emergency or a similar personal reason for the request?No89%
  6. Does the traveller say they have already contacted the supplier about this?Yes98%
  7. Does the traveller threaten a card dispute, a regulator complaint or legal action?Yes98%
  8. Does the message ask for more than one separate change or request?No73%
  9. Does the message say which booking, who is travelling and what change is wanted, well enough to act?Yes96%

These are real answers stored from one run on this example.

The prism behind it

Sort booking changes, cancellations and refund requests9 questions

Fields

  • Channel (email, chat, web form)
  • Traveller's latest message

Context

Service guide of an online travel agency that sells flights, hotels, packages (a flight and a hotel booked together) and rail tickets. Travellers write by email, chat and web form. Each message is read here on arrival and sent to one skill queue, where an agent handles the booking. Nothing here decides whether a refund, credit, waiver or change fee applies. The agent and code check the booking, the fare rules, the supplier's terms and the law that applies to the booking. Code finds the booking from any reference in the message and compares any calendar dates with today's date. A supplier is the airline, hotel, rail operator or other company that provides the travel. A supplier change is a cancellation, a new time, a new route or a new date made by the supplier, not by the traveller. Go only on what the traveller says. Do not infer anything from names, spelling or writing style.

Questions

  1. What is the traveller mainly asking for? Choice

    Read the message. Choose the main request, the one the traveller most wants done. Other requests are picked up by the several requests question.

    • Refund after a supplier change Money back because the supplier cancelled or changed the travel, whether or not a new option was offered.
    • Rebook after disruption New travel, not money, after a delay, cancellation or missed connection.
    • Cancel Cancel all or part of a booking the traveller no longer wants, with no supplier change behind it.
    • Change dates or times Move the trip, a flight, a train or a stay to other dates or times, at the traveller's wish.
    • Change traveller details Correct a name, passport, date of birth or contact details.
    • Add or remove a traveller Change who is travelling on the booking.
    • Extras Add or change bags, seats, meals, insurance, room type, board or transfers.
    • Refund status Asks where a refund or credit already agreed or requested has got to.
    • Confirmation or documents Asks for a confirmation, ticket, invoice or voucher to be sent or resent.
    • Price or charge question Asks about a fare, fee or charge without asking to change or cancel anything.
    • Trip complaint Complains about the trip itself, such as the hotel or a flight, without asking for a change to the booking.
  2. Does the traveller say the supplier cancelled or changed the booked travel? Yes / No

    Read the message and the definition of a supplier change in the context. Does the traveller say the airline, hotel, rail operator or other supplier cancelled the travel, or changed its time, route or date? Yes: The traveller says the supplier made a cancellation or change. No: The change or request comes from the traveller, or no change is described.

  3. Does the traveller accept or turn down the new travel the supplier offered? Choice

    Read the message. When the supplier cancelled or changed the travel, the traveller may have been offered a new flight, room or date. Code uses this answer when checking refund rules. Pick one option.

    • Turned down The traveller says they will not take, cannot use or do not want the new travel offered.
    • Accepted The traveller says they will take or have taken the new travel offered.
    • No alternative mentioned The message mentions no new travel offered by the supplier, or there was no supplier change.
  4. Does the traveller say in words that travel is today, tonight or tomorrow? Yes / No

    Read the message. Does the traveller use words such as "today", "tonight", "tomorrow", "in a few hours" or "we are at the airport" about the travel in question? Count only such words. A calendar date on its own does not count, because code compares dates with today. Yes: The traveller says in words that travel is today, tonight or tomorrow, or is under way. No: The traveller uses no such words.

  5. Does the traveller give illness, a death, an emergency or a similar personal reason for the request? Yes / No

    Read the message. Does the traveller give illness, an injury, a death, a pregnancy, a family emergency, jury service or a similar personal reason for the request? Messages with such reasons go to agents who handle waivers. Go only on what the traveller says. Yes: The traveller gives a reason of this kind. No: The traveller gives no such reason.

  6. Does the traveller say they have already contacted the supplier about this? Yes / No

    Read the message. Does the traveller say they have already called, emailed or messaged the airline, hotel or other supplier about this request? Yes: The traveller says they have already contacted the supplier. No: The traveller says nothing about contacting the supplier.

  7. Does the traveller threaten a card dispute, a regulator complaint or legal action? Yes / No

    Read the message. Does the traveller say they will, or may, dispute the payment with their card company or bank, complain to a regulator or consumer body, or take legal action? Yes: The traveller makes at least one such threat. No: The traveller makes none.

  8. Does the message ask for more than one separate change or request? Yes / No

    Read the message. Does it ask for more than one separate thing, such as a date change and an extra bag, or a refund and a new invoice? Saying that the rest of the booking should stay as it is does not count as a request. Yes: The message asks for at least two separate things. No: The message asks for one thing, or several points about the same thing.

  9. Does the message say which booking, who is travelling and what change is wanted, well enough to act? Yes / No

    Read the message. Does it give a booking reference or a clear description of the trip, who is travelling, and what the traveller wants, clearly enough for an agent to act without asking? Code checks the reference against bookings. Yes: All three are there. No: At least one is missing or unclear.

Lens columns

request, request_probability, supplier_caused, supplier_caused_probability, alternative_response, alternative_response_probability, travel_soon_in_words, travel_soon_in_words_probability, special_circumstance, special_circumstance_probability, already_contacted_supplier, already_contacted_supplier_probability, dispute_or_legal_threat, dispute_or_legal_threat_probability, several_requests, several_requests_probability, enough_to_act, enough_to_act_probability

Run it on your own text

Add this prism in the app, change any question, and test it on a file of your own.

Ask for an invite