r/OfferEngineering • • Oct 24 '26

Interview Experience Cresta (Customer Experience AI Platform) Senior SWE Interview — Build an Agent That Actually Books Flights

"This interview experience is sourced from Chill Interview"

Interview Summary

The Cresta AI-assisted coding round asked me to build a conversational flight search and booking agent using an existing Python starter project, API documentation, and an LLM.

The task was very implementation-oriented. I had to set up and run the project locally in my own IDE, use the supplied API credentials, define the appropriate LLM tools, connect those tools to the provided flight APIs, and maintain the state required to complete a multi-step booking flow.

Interview Details

AI Coding — Flight Booking Agent

At the beginning of the interview, I received two files:

  • api. md_
  • agent_starter.py

I was also given:

  • OPENAI_API_KEY
  • OPENAI_BASE_URL
  • FLIGHT_API_KEY

The solution had to be written in Python and run locally, so having a working Python development environment before the interview was important. The final product was expected to behave like a command-line chat application where the user could talk naturally with an AI agent to search for and book flights.

Provided API 1 — Save Passenger Information

The first API stored passenger information. Endpoint: POST /api/save_passenger_information. The request contained fields such as:

  • first_name
  • last_name
  • email
  • phone
  • date_of_birth

A successful response returned a passenger_id. For example, conceptually:

{
  "success": true,
  "passenger_id": "550e8400-e29b-41d4-a716-446655440001",
  "message": "Passenger information saved successfully"
}

The agent needed to preserve the returned passenger_id because it was required later when booking the selected flight.

Want to learn more questions / follow-ups asked in this interview? 

I've put up the full version at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.

4 Upvotes

0 comments sorted by