How manish7512/gotrip-ai---a-multi-agent-travel-planner-with-langgraph works
GoTrip AI accepts trip details through its web UI or chat API, runs a LangGraph planning workflow, and returns a structured itinerary with route, flight, hotel, weather, and scoring data. The README documents the route → flights → hotels → weather → itinerary → final-answer stages; app.py shows the API-to-backend calls, while mcp_client.py configures the MCP integrations. backend.py was not sampled, so its internal stages and persistence links are based on README documentation rather than inspected implementation.
Main entry points: backend.py LangGraph Workflow · mcp_client.py MCP Tool Client · app.py FastAPI Endpoints · index.html Travel Web UI
Components 20
User Interface
- Travel Web UI
templates/index.html - UI Logic
static/script.js - FastAPI Endpoints
app.py
Trip Planning
- LangGraph Workflow
backend.py - Route Planning
backend.py - Flight Search
backend.py - Hotel Discovery
backend.py - Weather Planning
backend.py - Itinerary Generation
backend.py - Final Answer and Score
backend.py
Travel Data Integrations
- MCP Tool Client
mcp_client.py - Serp Flight MCP
serp_flight_mcp_server.py - Weather MCP
custom_weather_mcp_server.py
Context and Persistence
- Trip Checkpointing
backend.py
Other components
- Traveler
- SerpAPI / Google Flights
- Tavily MCP
- OpenWeather
- Groq LLM
- PostgreSQL
Connections 29
- Traveler → Travel Web UI: enters trip details
README.md - Travel Web UI → UI Logic: loads UI logic
README.md - UI Logic → FastAPI Endpoints: submits trip or chat
static/script.js - FastAPI Endpoints → Travel Web UI: serves application
app.py - FastAPI Endpoints → LangGraph Workflow: runs planning
app.py - LangGraph Workflow → Route Planning: dispatches
README.md - LangGraph Workflow → Flight Search: dispatches
README.md - LangGraph Workflow → Hotel Discovery: dispatches
README.md - LangGraph Workflow → Weather Planning: dispatches
README.md - LangGraph Workflow → Itinerary Generation: dispatches
README.md - LangGraph Workflow → Final Answer and Score: dispatches
README.md - Route Planning → Flight Search: then dispatches
README.md - Flight Search → Hotel Discovery: then dispatches
README.md - Hotel Discovery → Weather Planning: then dispatches
README.md - Weather Planning → Itinerary Generation: then dispatches
README.md - Itinerary Generation → Groq LLM: generates with
README.md - Itinerary Generation → Final Answer and Score: provides plan to
README.md - Final Answer and Score → FastAPI Endpoints: returns results to
app.py - Flight Search → MCP Tool Client: requests flight tools
README.md - Hotel Discovery → MCP Tool Client: requests hotel search
README.md - Weather Planning → MCP Tool Client: requests weather tools
README.md - MCP Tool Client → Serp Flight MCP: starts local server
mcp_client.py - Serp Flight MCP → SerpAPI / Google Flights: searches flights
serp_flight_mcp_server.py - MCP Tool Client → Tavily MCP: connects to remote MCP
mcp_client.py - MCP Tool Client → Weather MCP: starts local server
mcp_client.py - Weather MCP → OpenWeather: requests weather data
custom_weather_mcp_server.py - LangGraph Workflow → Trip Checkpointing: saves trip context
README.md - Trip Checkpointing → PostgreSQL: persists checkpoints
README.md - FastAPI Endpoints → Trip Checkpointing: loads saved trip state
app.py