Let an AI travel agent handle flight disruptions for your company: when a booked flight is cancelled or delayed, it finds or books an in-policy alternative under your price cap, cancels the old ticket only if that's free, and tells the traveller and booker what changed: AI agent prompt
When a work trip falls apart because a flight is cancelled, someone on the travel desk has to find a new flight that fits company policy, rebook it and tell everyone, often after hours. In an announcement dated October 31, 2026, Travel Code says its AI agent Robert can now handle disrupted flights on its own when a company allows it. Companies choose how far it goes: just notify the traveller, find options, hand the case to a travel agent, or rebook automatically within policy and a price cap. When it rebooks, it holds the new booking until payment and cancels the original only when that is free. Robert works with the user's own permissions, and changes are shown as a confirmation card with the old and new values before they run; users can also see and edit what it remembers. These are the vendor's own claims. The prompt below gives any AI assistant the same rules so it can work out your options when a flight is disrupted.
The prompt
My flight has been disrupted and I need help rebooking within my company's travel policy. Booked flight: [airline, flight number, date, from, to]. What happened: [cancelled, or delayed by X hours]. Travellers: [names]. Must arrive by: [date and time, and why, e.g. client meeting]. Company policy: [cabin class, price cap, preferred airlines, rules on layovers]. What I'm allowed to do: [only look for options, or book after approval from (name)]. 1) Tell me what the airline may owe me for this disruption under its own published rules and the rules in my region, and say where you got that so I can check it. 2) Find 3 alternatives that arrive in time and fit the policy, cheapest first, with total price, stops and arrival time. Mark any that break a rule and say which rule. 3) For each one, tell me whether to cancel or change the original ticket and whether that costs anything; never suggest cancelling the original before the new booking is confirmed. 4) Draft a short message to the traveller and one to the person who approves travel, saying what changed and what it costs. Don't book or cancel anything yourself; I'll confirm each step.
Fill in the blanks, then copy
This prompt has 6 [bracket]s to fill in. Type your details below and the prompt updates as you go. Your answers stay in this browser and are reused on other prompts with the same blanks. Nothing is sent to us.
Example values are fictional, just to show how a filled-in prompt reads. Replace them with your real details.How to use it
- Copy the prompt above.
- Replace every [bracket] with your own details (use the fill-in-the-blanks box above, which remembers your answers for the next prompt).
- Paste it into Travel Code (Robert), ChatGPT, Claude and review the answer before you use it.
Works with: Travel Code (Robert), ChatGPT, Claude, Gemini
Real-world example: travel-code.com/news/robert-first-ai-agent-that-runs-a-tmc
Featured in: AI prompts for writing SOPs, reports, policies and checklists
Before you use it: what to check
Already built into this prompt
- Don't book or cancel anything yourself; I'll confirm each step.
Check yourself
- This prompt works on text other people wrote (emails, reviews, messages or web pages). That text can hide instructions aimed at AI, such as "ignore your rules and…". Paste it as material to work on, and never let the AI act on requests inside it, like paying, sharing logins or changing records. How prompt injection works →
- Check every figure, price and total against your own records before anything is sent, posted or booked. A person approves refunds, discounts, payments and price changes.
- Remove names, contact details, account numbers and other personal data the task doesn't need before you paste, and check your AI tool's data and training settings.
- Read and edit the draft before it reaches a customer or goes public. If you later automate this prompt, start with "draft and notify me", not "send automatically".
Using an AI agent? Download this prompt as a SKILL.md agent skill with these checks built in, or get the .zip for Claude.ai. How to install skills.
Want to make this prompt even better? Grade it with the free prompt grader or build your own with the AI prompt generator.
32 copy-paste agent prompts (PDF) plus 5 new prompts every week.
Get it free