← Back to library
TravelWorkflow

Check a delayed flight's claim and fill the form for you

Arpan Patra built a hackathon agent you give a flight and day: it confirms real gate arrival on tracking sites, reads UK or EU passenger law, calculates what is due and completes the claim form, then pauses so you can review before anything is submitted.

  • OutcomeLearn whether a late UK or EU departure owes you money and have the carrier's compensation page completed, with submission still yours.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditArpan Patra
View original
Works with
Custom agentChatGPTGemini

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

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?

  1. Normalize the flight codeConvert the airline code to the format flight trackers use.
  2. Confirm the arrival timeRead when the aircraft actually reached the gate.
  3. Apply the rulesCheck distance and delay against the applicable regulation.
  4. Fill the formEnter your details on the carrier's own compensation page.
  5. 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.

Prompt0 variables
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?
No. The builder made submitting the one action it may never take.
Which rules does it use?
UK and EU passenger compensation rules for flights departing those regions.

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.

More in Travel

All 27 Travel playbooks →

Related playbooks

TravelWorkflow✓ AI dry run

Compare a package trip against booking separately

Have a browser agent compare flight-plus-hotel options across sites counting every tax and fee, and tell you whether a package or separate bookings is cheaper.

Credit: u/jone003 on r/automation

Under an hour
TravelPrompt✓ AI dry run

Escalate a refused airline refund with AI-drafted appeals

Build a clear timeline, find the contradictions in the airline's replies and draft each escalation step, so a refused refund gets a proper review.

Credit: u/NeighborhoodWorth768 on r/indianaviation

Minutes
TravelPrompt✓ AI dry run

Book a last-minute layover hotel within your travel policy

When a trip goes sideways, give an assistant your company's travel rules, your state and your next flight, and get a fitting hotel plus step-by-step directions to it.

Credit: Patti (@Patti881921424)

Minutes