How Fare Construction Works
A step-by-step breakdown of how two AI systems work together to find dramatically cheaper Business Class fares.
The Two Engines Under the Hood
Every search uses both systems in a tight feedback loop.
- โธSelects which airports to try as throwaway segments (understands geography & direction of travel)
- โธDecides which seasons to avoid for extra segments
- โธRanks and validates all found itineraries cheapest โ most expensive
- โธExplains in plain English WHY each construction is cheaper
- โธProcesses user feedback into actionable search rules
- โธAuto-tags and summarizes bug reports & feature requests
- โธSynthesizes community suggestions into live prompt rules
- โธFetch baseline Business Class nonstop price (GET /v2/shopping/flight-offers)
- โธGet all direct destinations from arrival airport (GET /v1/airport/direct-destinations)
- โธFind cheapest destinations from a given airport (GET /v1/shopping/flight-destinations)
- โธRun all multi-city fare constructions โ 2 & 3-segment (POST /v2/shopping/flight-offers)
- โธFind cheapest dates for the return throwaway leg (GET /v1/shopping/flight-dates)
- โธAirport autocomplete search (GET /v1/reference-data/locations)
Why Both?
Amadeus gives us real, bookable prices from the GDS โ it's the source of truth. Claude gives us the intelligence to know which prices to look for. Neither alone would work: Amadeus without AI would search randomly across thousands of airports; AI without Amadeus would just guess prices. Together, they run a targeted, intelligent search in under 60 seconds.
The Search Flow โ Step by Step
Exactly what happens after you click "Find Cheaper Business Class".
GET /v2/shopping/flight-offersFetch baseline nonstop Business Class price for your route
GET /v2/shopping/flight-offers ร8Round-trip searches โ 8 return date variants (+3, +7, +14, +30, +60, +90, +180, +270 days) compared vs one-way baseline
claude-sonnetSelect the 15 best candidate throwaway airports (geography, region, season, community rules)
POST /v2/shopping/flight-offers ร15Run 2-segment multi-city searches (your route + throwaway segment) across all candidates
POST /v2/shopping/flight-offers3-segment constructions โ destination-region candidates (Rule 11)
POST /v2/shopping/flight-offers3-segment wide constructions โ cross-region candidates (Rule 12)
claude-sonnetRank all results across all construction types, validate fare rules, calculate savings %, write plain-English explanations
Cheapest valid constructions displayed with booking links