TravelIQ: AI Travel Itinerary Generator
TravelIQ is an AI-powered travel planning system that delivers a complete, feasibility-checked itinerary in under 90 seconds. A scikit-learn Random Forest classifier recommends outfits based on weather and activity features. FLUX.1-schnell generates destination imagery via the HuggingFace Inference API, with prompt-hash caching to avoid redundant calls. The core planning pipeline combines OR-Tools VRPTW routing, SARIMAX crowd forecasting for 20+ locations, and DistilBERT sentiment scoring on live reviews. GPT-4o feasibility checks validate every generated itinerary. Google Distance Matrix and Places APIs supply real-world travel data. The full itinerary is streamed to the client in under 90 seconds via SSE for a responsive UX.
Inside the build
Architecture, one step at a time.
Real-world travel context feeds prediction, route optimization, and an AI feasibility check.
Select a component, or use Next for a guided tour. Connections show the flow between components.
Collect travel context
Weather, planned activities, locations, and real travel times supply the planning context.
- What comes in
- Destination, activities, and travel preferences
- What comes out
- Places, weather, and a travel-time matrix
This diagram explains the planning pipeline. It does not call Google, generate images, or create a live itinerary.
The details
What went into the build.
Tools & technologies
- Python
- Flask
- OR-Tools
- scikit-learn
- SARIMAX
- DistilBERT
- GPT-4o
- FLUX.1-schnell
- Google APIs
- SSE Streaming
Key highlights
- scikit-learn Random Forest outfit recommender based on weather and activity features
- FLUX.1-schnell image generation via HuggingFace Inference API with prompt-hash caching
- OR-Tools VRPTW routing + SARIMAX crowd forecasting (20+ locations) + DistilBERT sentiment scoring on reviews
- GPT-4o feasibility checks applied to every generated itinerary
- Google Distance Matrix and Places APIs for real-world travel data
- Full itinerary delivered in under 90 seconds via SSE streaming