When should you use it?
- A rebooking or cancellation left you owed money
- You have put off a claim for weeks
- Airline emails are buried among promotions
Not for: Claims that need a phone call or a legal deadline you are close to missing; Accounts you have not connected to the assistant
What do you need, and what do you get?
You need
- Airline name and booking reference
- Travel dates
- Fees you paid (meals, seats, bags)
You get
- A list of related emails with dates
- Refund status for each fee
- A draft claim only if money is still owed
How does it work, step by step?
- Give the detailsShare the airline, booking codes, dates and which extras were paid for.
- Search every message from the carrierAsk the assistant to read all mail from the airline in that period, including automated notices.
- Match fees to refundsHave it list each paid extra next to any refund or credit notice it finds.
- DecideIf everything is matched, stop. If not, ask for a draft claim citing the unmatched charges.
- Check your card statementConfirm any refund the email mentions actually reached your card.
The prompt
Our own prompt, inspired by yalok on Hacker News and written to work in ChatGPT agent, Claude, Grok Bot and others. Values in lime are placeholders.
Fill in the blanks (optional; the copied prompt uses your values)
Before I file a claim, check what {airline} already sent me. Bookings: {booking_refs} Dates: {dates} Extras I paid for: {fees} Search all emails from the airline in that window. List each fee next to any refund, credit or voucher notice with its date. Only if a fee has no matching refund, draft a short claim message citing the booking and amount. Do not submit anything.
Inspired by yalok on Hacker News: Hacker News comment on using an agent to sort out an airline meal-fee refund. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Refund notices often arrive on the busiest day of the disruption and get missed.
- An email saying a refund was issued is not proof it landed; check the statement.
Our take
We like this because the agent's best move was to look before acting. A request phrased as file a claim could have produced a duplicate; instead the search turned up refund confirmations that had arrived and been missed. yalok's case shows why searching first is the better instruction. Give the assistant the airline, booking codes, dates and which extras were paid for, then ask it to read every message from the carrier in that period, including automated notices. Matching each paid extra against any refund or credit notice settles the question before anything is filed; in his case the meal refunds had already been confirmed. If something is unmatched, ask for a draft claim citing just those charges. Refund notices often arrive on the busiest day of a disruption and get missed, which is how this happens. An email saying a refund was issued is not proof it landed, so check your card statement. If a legal deadline is close, call the airline instead.
Where the time goes back: A quick inbox match can save you from filing a claim that has already been paid, or show exactly which charge is still owed.
FAQ
Can the agent file the claim too?
What if there are several bookings?
Source and credit
Inspired by yalok on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- Hacker News comment on using an agent to sort out an airline meal-fee refund
- Creator
- yalok on Hacker News
- Published on
- Hacker News
- Original date
- Sep 9, 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.