Skip to content

AmanTiwari005/WanderX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧭 WanderX β€” AI Travel Copilot

An agentic AI-powered travel planning companion that makes smart, data-driven decisions using live weather, safety intelligence, crowd analysis, and cultural insights.

✨ Features

Feature Description
πŸ€– Multi-Agent Architecture 11 specialized agents (Weather, News, Budget, Cultural, Health, Sustainability, etc.) working in parallel
⚑ Real-Time Intelligence Live weather, crowd density, safety risks, and news analysis
🧠 Decision Engine Risk fusion scoring with confidence levels and explainability
πŸ“… Multi-Day Itineraries Detailed day-by-day plans with morning/afternoon/evening structure
πŸ’° Budget Intelligence Cost breakdown, feasibility analysis, and saving tips
🎭 Cultural Advisor Etiquette, language tips, dress code, and tipping guidance
πŸ₯ Health Advisory Water safety, vaccination info, and emergency contacts
🌿 Eco Scoring Carbon footprint estimates and sustainable travel options
πŸ—ΊοΈ Interactive Maps Destination maps with Folium integration
πŸ“„ PDF Export Download itineraries as formatted PDFs
πŸ’‘ Smart Suggestions Context-aware, location-specific follow-up suggestions with feedback learning
πŸ›‘οΈ Proactive Alerts Weather, safety, and crowd alerts in the sidebar

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   Streamlit UI                   β”‚
β”‚              (app.py β€” Chat + Cards)             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚
              β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
              β”‚ Orchestrator β”‚ ← Cache Manager
              β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
                     β”‚ (Parallel Execution)
     β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”
     β–Ό       β–Ό       β–Ό       β–Ό       β–Ό       β–Ό
  Weather  News   Crowd  Budget  Culture  Health
  Agent    Agent  Agent  Agent   Agent    Agent
     β”‚       β”‚       β”‚       β”‚       β”‚       β”‚
     β””β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”˜
                     β–Ό
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚ Risk Fusion Engine β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β–Ό
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚ Recommendation     β”‚ ← All Intel Synthesized
          β”‚ Agent              β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Setup

Prerequisites

  • Python 3.10+
  • API keys (see below)

Installation

# Clone the repository
git clone <your-repo-url>
cd wanderx

# Install dependencies
pip install -r requirements.txt

# Copy environment template and add your keys
cp .env.example .env
# Edit .env with your actual API keys

API Keys Required

Key Service Get it at
GROQ_API_KEY AI/LLM (Required) console.groq.com
OWM_API_KEY Weather (Required) openweathermap.org
ORS_API_KEY Routes (Optional) openrouteservice.org

Run

streamlit run app.py

πŸ“ Project Structure

wanderx/
β”œβ”€β”€ app.py                  # Main Streamlit application
β”œβ”€β”€ orchestrator.py         # Agent orchestration with caching
β”œβ”€β”€ agents/                 # Specialized AI agents
β”‚   β”œβ”€β”€ weather_agent.py    # Live weather intelligence
β”‚   β”œβ”€β”€ news_agent.py       # Safety & news analysis
β”‚   β”œβ”€β”€ crowd_agent.py      # Crowd density estimation
β”‚   β”œβ”€β”€ budget_agent.py     # Budget feasibility analysis
β”‚   β”œβ”€β”€ cultural_agent.py   # Etiquette & cultural tips
β”‚   β”œβ”€β”€ health_agent.py     # Health & safety advisory
β”‚   β”œβ”€β”€ sustainability_agent.py  # Eco scoring
β”‚   β”œβ”€β”€ mobility_agent.py   # Route & transport intelligence
β”‚   β”œβ”€β”€ itinerary_agent.py  # Multi-day itinerary generation
β”‚   β”œβ”€β”€ context_agent.py    # User context building
β”‚   └── recommendation_agent.py  # Final synthesis agent
β”œβ”€β”€ engines/                # Decision-making engines
β”‚   β”œβ”€β”€ risk_fusion_engine.py    # Multi-source risk scoring
β”‚   β”œβ”€β”€ decision_engine.py       # Feasibility & safety logic
β”‚   └── alert_engine.py          # Proactive alert generation
β”œβ”€β”€ utils/                  # Shared utilities
β”‚   β”œβ”€β”€ llm_client.py       # Centralized LLM wrapper with retry
β”‚   β”œβ”€β”€ cache_manager.py    # In-memory TTL cache
β”‚   β”œβ”€β”€ geocode.py          # Location geocoding
β”‚   β”œβ”€β”€ map_viewer.py       # Folium map generation
β”‚   β”œβ”€β”€ pdf_generator.py    # Itinerary PDF export
β”‚   β”œβ”€β”€ suggestion_generator.py  # Smart suggestion engine
β”‚   β”œβ”€β”€ feedback_tracker.py # User feedback storage
β”‚   β”œβ”€β”€ analytics_tracker.py # Usage analytics
β”‚   └── ...
β”œβ”€β”€ prompts/
β”‚   └── system_prompt.txt   # Core AI personality & rules
β”œβ”€β”€ data/                   # Runtime data (feedback, analytics)
β”œβ”€β”€ requirements.txt        # Pinned dependencies
└── .env.example            # Environment template

πŸ”§ Configuration

Set GROQ_MODEL in your .env to change the LLM model (default: qwen/qwen3-32b).

πŸ“ License

MIT

About

🧭 WanderX β€” AI Travel Copilot

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages