When should you use it?
- Your arrival was at least three hours behind schedule
- It departed from the UK or EU
- You never get round to claiming
Not for: Delays caused by extraordinary circumstances you cannot dispute; Submitting without reading the form
What do you need, and what do you get?
You need
- Flight number and date
- Your booking details
You get
- Actual delay and which rule applies
- Amount you may be owed
- Filled but unsent claim form
How does it work, step by step?
- Normalize the flight codeConvert the airline code to the format flight trackers use.
- Confirm the arrival timeRead when the aircraft actually reached the gate.
- Apply the rulesCheck distance and delay against the applicable regulation.
- Fill the formEnter your details on the carrier's own compensation page.
- Stop for youReview everything and press submit yourself.
The prompt
Our own prompt, inspired by Arpan Patra and written to work in Custom agent, ChatGPT and Gemini. Values in lime are placeholders.
I flew [flight number], date [date]. Look up when it actually arrived at the gate using a public flight tracker, converting the code to the tracker's format if needed. Tell me the delay, the route distance and whether UK or EU compensation rules apply, with the amount. If compensation looks due, open the carrier's compensation page, enter the details I supply and stop there. Never submit.
Inspired by Arpan Patra: I built an AI agent that fills in your flight delay claim. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Trackers may need a different flight code than your ticket shows.
- Airlines can refuse for extraordinary circumstances; check the stated cause.
Our take
A tidy example of read, reason, act, with the act deliberately cut short. The code-format detail is a good reminder that agents fail on small mismatches people never notice. Arpan's agent does the tedious parts well: it confirms when the aircraft actually reached the gate, checks distance and delay against UK or EU rules, calculates the amount due and completes the airline's own claim page. Then it stops, and you press submit. Keep that design. One small detail caught it out: flight trackers may expect a different code format than your ticket shows, so check the flight it looked up is really yours. Airlines can refuse claims for extraordinary circumstances, so read the stated cause of the delay before you claim. Confirm eligibility yourself, keep screenshots of the arrival time, and avoid uploading passport scans or other documents unless the carrier's own claim page actually requires them. Submission stays with you.
Where the time goes back: The fact-finding, legal reading and form entry that stop most people claiming are done before you look.
FAQ
Does it submit the claim?
Which rules does it use?
Source and credit
Inspired by Arpan Patra. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- I built an AI agent that fills in your flight delay claim
- Creator
- Arpan Patra
- Published on
- DEV Community
- Original date
- Sep 14, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Custom agent
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.