How chandukudikala-06/travelmate-ai works
TravelMate-AI accepts a travel request in a browser, runs a sequential LangGraph workflow to gather flight and hotel information and produce an itinerary and final answer, then returns the result to the interface. The graph also shows persistent conversation checkpoints and the interface’s PDF export capability. Relationships are based on the supplied excerpts and README; template and styling details were not sampled.
Main entry points: app.py FastAPI routes · backend.py Workflow runner · index.html Travel interface · script.js Request and export
Components 16
Web interface
- Travel interface
templates/index.html - Request and export
static/script.js - Interface styling
static/style.css
API service
- FastAPI routes
app.py
Travel planning
- Workflow runner
backend.py - Flight search stage
backend.py - Hotel search stage
backend.py - Itinerary stage
backend.py - Final response stage
backend.py - Flight lookup
tools/flight_tool.py - Web search
tools/tavily_tool.py
External services
- PostgreSQL checkpoints
- Groq language model
- AviationStack API
- Tavily search
Other components
- Traveler
Connections 16
- Traveler → Travel interface: enters request
- Request and export → FastAPI routes: posts request
static/script.js - FastAPI routes → Travel interface: renders page
app.py - FastAPI routes → Workflow runner: runs workflow
app.py - Workflow runner → Flight search stage: starts graph
backend.py - Flight search stage → Hotel search stage: dispatches next
backend.py - Hotel search stage → Itinerary stage: dispatches next
backend.py - Itinerary stage → Final response stage: dispatches next
backend.py - Flight search stage → Flight lookup: searches flights
backend.py - Flight lookup → AviationStack API: requests flight data
tools/flight_tool.py - Hotel search stage → Web search: searches hotels
backend.py - Web search → Tavily search: queries search
tools/tavily_tool.py - Itinerary stage → Groq language model: generates itinerary
backend.py - Final response stage → Groq language model: generates answer
backend.py - Workflow runner → PostgreSQL checkpoints: persists checkpoints
backend.py - Request and export → Travel interface: exports PDF
static/script.js