Trailio AI Trip Planner
Chat-first AI travel agent with LangGraph, FastAPI and Next.js
The Brief
Wanted a trip planner you can simply talk to: say where, when, and roughly what you can spend, and get a day-by-day plan with a budget that holds up against real prices instead of a chatbot's guesses.
My Approach
Built the agent as a LangGraph graph rather than one big prompt, so each step (reading the request, spotting what's missing, asking, planning, costing) can be tested and retried on its own. When a detail is missing, the graph pauses, asks the traveler in plain words, and picks up from the same step once they answer. Conversations are saved to Supabase Postgres, so a pending question survives a page refresh and works on serverless hosting. The steps are split between Groq and Gemini, and Python does all the budget math, because models are unreliable at adding up costs.
Based the plan on live data: Google Hotels and Google Flights prices through SerpApi, and Tavily web research for journey times, fares and fuel prices. Anything that doesn't come from a live source is labeled as an estimate. When a plan comes out over or under budget, a rebalancing pass adjusts it, and Python keeps the change only if it actually fits better. The FastAPI backend streams each step to the Next.js UI over server-sent events, so users watch the agent work instead of waiting on a spinner.
Have a similar project in mind?
I like turning ambiguous requirements into something people actually use. Let's talk about yours.
Work With Me