How mdsohail07/tripmateai works
TripMateAI is a Streamlit travel planner: users submit a request, and a LangGraph workflow gathers flight and hotel information, generates an itinerary, and produces a final response. PostgreSQL backs workflow checkpointing; AviationStack and Tavily supply external search data, while Groq generates plan text. The README also lists destination, restaurant, transport, budget, and weather recommendations, but their implementation is not shown in the sampled source, so they are represented as documented capabilities rather than connected runtime stages.
Main entry points: main.py LangGraph App · frontend.py Streamlit Interface · flight_tool.py Flight Search Tool · tavily_tool.py Web Search Tool
Components 14
User Interface
- Streamlit Interface
frontend.py
Planning Workflow
- LangGraph App
main.py - Flight Agent
main.py - Hotel Agent
main.py - Itinerary Agent
main.py - Final Agent
main.py - Other Trip Recommendations
Search Integrations
- Flight Search Tool
tools/flight_tool.py - Web Search Tool
tools/tavily_tool.py
Persistence and AI
- PostgreSQL Checkpoints
main.py
Other components
- Traveler
- AviationStack API
- Tavily Search API
- Groq LLM
Connections 13
- Traveler → Streamlit Interface: submits request
README.md - Streamlit Interface → LangGraph App: uses app
frontend.py - LangGraph App → Flight Agent: starts workflow
main.py - Flight Agent → Hotel Agent: dispatches next
main.py - Hotel Agent → Itinerary Agent: dispatches next
main.py - Itinerary Agent → Final Agent: dispatches next
main.py - Flight Agent → Flight Search Tool: searches flights
main.py - Flight Search Tool → AviationStack API: requests flight data
tools/flight_tool.py - Hotel Agent → Web Search Tool: searches hotels
main.py - Web Search Tool → Tavily Search API: searches web
tools/tavily_tool.py - Itinerary Agent → Groq LLM: generates itinerary
main.py - Final Agent → Groq LLM: generates response
main.py - LangGraph App → PostgreSQL Checkpoints: stores checkpoints
main.py