A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.
Travel Planner Agent
Your AI co-pilot for end-to-end trip planning - from weather and budget to packing lists and day-by-day itineraries.
Overview
Travel Planner Agent is a conversational travel assistant that helps you plan trips through natural language. Describe where you want to go, when, your budget, and what you enjoy - the agent gathers any missing details, researches your destination with live tools, and returns a structured travel plan you can use right away.
Built with LangChain and Streamlit, it combines real-time weather, currency conversion, web research, and smart packing recommendations into a single chat experience.
Demo

Features
- Conversational trip planning - describe trips in plain English; the agent asks follow-up questions when details are missing
- Live weather data - current conditions and a 5-day forecast for any destination via OpenWeatherMap
- Budget and currency tools - convert amounts between currencies and estimate trip costs via ExchangeRate-API
- Destination research - attractions, food, culture, and travel tips sourced from DuckDuckGo web search
- Smart packing lists - recommendations tailored to forecast, climate, and trip length
- Structured travel plans - overview, weather, budget, highlights, packing, and a suggested day-by-day itinerary
- Session-based chat history - multi-turn conversations with context preserved in the Streamlit UI
Tech Stack
| Layer | Technology |
|---|---|
| Agent Orchestration | LangChain + LangGraph (create_agent tool-calling loop) |
| LLM | OpenAI SDK → Orq.ai router (deepseek-v4-flash) |
| Weather | OpenWeatherMap API |
| Currency | ExchangeRate-API |
| Web Search | DuckDuckGo Search |
| UI | Streamlit chat interface |
Prerequisites
- Python 3.10 or higher
- API keys for:
- Orq.ai - LLM routing
- OpenWeatherMap - weather and forecast data
- ExchangeRate-API - currency conversion
Installation
1. Clone the repository
git clone git clone https://github.com/Sumanth077/Hands-On-AI-Engineering.git
cd Hands-On-AI-Engineering/ai_agents/travel_planner_agent
2. Create a virtual environment
python -m venv .venv
3. Activate the virtual environment
macOS / Linux
source .venv/bin/activate
Windows (PowerShell)
.\.venv\Scripts\Activate.ps1
Windows (Command Prompt)
.venv\Scripts\activate.bat
4. Install dependencies
pip install -r requirements.txt
5. Configure environment variables
cp .env.example .env
Open .env and add your API keys. See the Environment Variables section below for details.
Environment Variables
| Variable | Description | Where to Get It |
|---|---|---|
ORQ_API_KEY |
Authenticates requests to the Orq.ai LLM router (deepseek-v4-flash) |
Orq.ai Dashboard → API Keys |
OPENWEATHER_API_KEY |
Fetches current weather and 5-day forecasts for destinations | OpenWeatherMap → API keys |
EXCHANGERATE_API_KEY |
Converts currencies and returns live exchange rates | ExchangeRate-API → Get Free Key |
Usage
Run the app
With your virtual environment activated:
streamlit run app.py
Streamlit opens the app in your browser (typically at http://localhost:8501). Use the chat input at the bottom of the page to describe your trip.
Example user inputs
| Scenario | Example prompt |
|---|---|
| Full trip plan | Plan a 7-day trip to Tokyo in April. My budget is $3,000 USD. I love food, temples, and street photography. |
| Weather check | What's the weather like in Barcelona? I'm visiting for 5 days in June. |
| Currency conversion | Convert 2,500 USD to EUR and THB for a two-week trip across Europe and Thailand. |
| Packing help | I'm going to Iceland for 8 days in February. What should I pack based on the weather? |
What the agent returns
Once it has enough context, the agent calls its tools and delivers a structured plan with:
- Trip Overview - destination, dates, duration, and traveler preferences
- Weather - current conditions and a forecast summary from OpenWeatherMap
- Budget & Currency - cost estimates and currency conversions from ExchangeRate-API
- Destination Highlights - attractions, dining, culture, and travel tips from web research
- Packing List - clothing and essentials based on weather and trip length
- Suggested Itinerary - a day-by-day outline aligned with your interests and schedule
The agent uses tools for all factual data (weather, rates, research) rather than guessing. If details are missing, it will ask clarifying questions before building the full plan.
Use Clear conversation in the sidebar to start a new trip from scratch.
Project Structure
travel-planner-agent/
├── app.py # Streamlit UI and chat interface
├── agent.py # LangChain agent and tools
├── requirements.txt # Python dependencies
├── .env.example # Environment variable template
├── .gitignore
├── README.md
└── assets/
└── demo.gif # Application demo
License
MIT