routechef/travel-agent-apishippedRoutechef — Travel Assistant
AI engineerA conversational agent that turns "Mumbai to Delhi next week" into curated flight and train options.
Travel sites answer a query with hundreds of undifferentiated results. This agent answers it with a recommendation. A LangGraph state machine drives the conversation: an entry node classifies intent and loops back for anything missing, GPT-4o-mini parses the exchange into a Pydantic-validated query, and a smart router decides via MD5 route hash, a 30-minute cache TTL, and an LLM judgement on freshness keywords, whether to serve cached data or open a WebSocket for live flight and train availability. Geocoding resolves place names against a local database of 8,000+ Indian railway stations before falling back to the Google Maps API, so the common case never leaves the process. The routing decision is the whole design: it is what keeps latency and API spend down without ever serving a stale fare.





