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
Channel (email, chat, web form): Email
Traveller's latest message
- What is the traveller mainly asking for?Refund after a supplier change100%
- Does the traveller say the supplier cancelled or changed the booked travel?Yes99%
- Does the traveller accept or turn down the new travel the supplier offered?Turned down100%
- Does the traveller say in words that travel is today, tonight or tomorrow?No88%
- Does the traveller give illness, a death, an emergency or a similar personal reason for the request?No89%
- Does the traveller say they have already contacted the supplier about this?Yes98%
- Does the traveller threaten a card dispute, a regulator complaint or legal action?Yes98%
- Does the message ask for more than one separate change or request?No73%
- 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 requests
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
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.
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.
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.
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.
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.
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.
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.
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.
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.