Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Conversational Flight Search and Booking Agent

Design an LLM-powered flight assistant that clarifies travel intent, finds the cheapest eligible itinerary, and books safely at large scale.

Problem statement

Design an LLM-powered flight agent for roughly 30 million daily active users. Travelers describe flight requests in chat, sometimes using ambiguous destinations or times.

The agent must clarify those requests, search both direct and indirect flights, follow the lowest available price, and support scheduling and booking.

For this exercise, assume a traveler completes a bounded journey from conversation through explicit booking confirmation; the agent supports one-way and round-trip adult itineraries with at most one connection.

Rank the current eligible offers returned by configured providers by total price, but do not promise a global minimum or ongoing price tracking. Revalidate an expiring offer before booking, and make a retried booking intent produce at most one confirmed reservation.

Payments are represented by an existing token; cancellations, changes, loyalty programs, fraud, airline settlement, and post-trip support are out of scope.

What to build

  1. A traveler can describe a flight request conversationally, retain context across turns, and resolve ambiguous destinations and times before search.
  2. A traveler can search direct and one-connection itineraries and see current eligible offers ranked by total price for the confirmed constraints.
  3. A traveler can inspect fare details and freshness, explicitly select an offer, and have its availability and price revalidated before booking.
  4. A traveler can submit an idempotent booking request and retrieve a stable confirmed, pending, or failed outcome after retries or provider timeouts.

At scale

  • The service must support roughly 30 million daily active users.
  • For this exercise, assume up to three flight-search conversations per active user per day and a peak of about 15,000 chat or search turns per second; booking attempts are a much smaller fraction.
  • For this exercise, assume clarification responses target p95 under two seconds excluding provider latency, while the first useful itinerary page targets p95 under five seconds.
  • For this exercise, assume provider offers expire and must be revalidated at booking time, and provider APIs impose per-provider rate limits and may return late, duplicate, or uncertain results.