The Agent-Based Travel Planner is a modular AI system that automates the generation of detailed travel plans using a multi-agent architecture. This project demonstrates how specialized agentsβeach responsible for a distinct facet of the planning processβcan collaborate under a supervisor pattern to deliver comprehensive, actionable itineraries. The system is designed with extensibility and maintainability in mind, making it suitable for both educational and practical applications in automated planning.
Research Agent:
Gathers destination information and suggests activities by formulating optimized web queries and extracting relevant details for the trip.
Budget Agent:
Estimates costs for the planned trip, including accommodation, food, and activities, and manages budget constraints based on research data.
Logistics Agent:
Produces a detailed, day-by-day itinerary, including suggested activities, accommodation, transport tips, and local experiences, using research and budget data.
Supervisor:
Orchestrates the workflow, ensuring each agent operates in sequence and passes results to the next phase. Handles transitions between research, budgeting, and logistics phases.
The multi-agent system uses Supervisor architecture as shown in the figure.
User Input:
The user defines trip parameters (destination, dates, budget, etc.) in the configuration.
Research Phase:
The Research Agent formulates web queries to gather up-to-date destination and activity info.
Budgeting Phase:
The Budget Agent uses research data to estimate total costs and provide budget breakdowns.
Logistics Phase:
The Logistics Agent composes a clear, structured itinerary, optimizing for user goals and constraints.
Output:
The result is compiled into a Markdown file (travel_plan.md
) for easy review.
app/
βββ agents/ # Specialized agents for research, budgeting, logistics
β βββ budget_agent.py
β βββ logistic_agent.py
β βββ research_agent.py
βββ config/ # Configuration files (LLM, settings)
β βββ llm_config.py
β βββ settings.py
βββ supervisor/ # Supervisor agent orchestrating workflow
β βββ supervisor.py
βββ tools/
β βββ calculator.py
β βββ TravelScript.py
β βββ web_search.py
βββ utils/ # Logging and helper utilities
β βββ logger.py
βββ workflows/ # Main workflow logic
β βββ main_workflow.py
βββ main.py # Entry point
βββ requirements.txt # Python dependencies
βββ travel_plan.md # Example output
βββ pyproject.toml # Project metadata
βββ README.md # Documentation
Suppose a user wants to plan a week-long trip to Paris on a $2000 budget. The system will:
bot: What kind of trip would you like to plan?
Also include Origin and Destinatin:
User: I want to visit snow falling mountain area
**Research agent shows all the information**
research agent: Do you want to proceed with this research result? (yes/no/revise):
User: revise
research agent: Please provide revised trip details:
User: Mountain area should be in south east asia
**Now research agents redo the work by considering the Human feedback and pass the data to budget agent.**
**Budget agent estimates all the budget and display it**
Supervisor: Do you want to proceed with this budget estimate? (yes/no/revise):
User: yes
**Now researched and budget information is passed to logistic agent and it gives proper planning to Supervisor**
**Final response is shown to the user**
Supervisor: Do you want to proceed with this final plan? (yes/no/revise):
User: yes
**Results have been saved to travel_plan.md.**
Research Results:
Agoda Celebrates International Mountain Day with Top 5 Mountain ...: Top Mountain Destination in Asia Β· 1. Jeju, South Korea Β· 2. Sapporo, Japan Β· 3. Chiang Mai, Thailand Β· 4. Bandung, Indonesia Β· 5. Kota Kinabalu,
From Mountains to Beaches: Scenic Destinations in Asia: From Mountains to Beaches: Scenic Destinations in Asia Β· Halong Bay, Vietnam Β· Kerala, India Β· Luang Prabang, Laos Β· Kyoto, Japan Β· Chiang Mai,
Best access to mountains in SE Asia? : r/solotravel - Reddit: Northern Thailand is great- the higher/farther north, the cooler it gets but also the more the remote so less people who speak English and less reliable WiFi.
Best Countries To Travel In Southeast Asia (All Pros & Cons): Thailand Β· Laos Β· Let me help you plan your Southeast Asia trip! Β· Vietnam Β· Cambodia Β· Malaysia Β· Singapore Β· Indonesia.
Climb, Discover, and Experience Asia's Best Mountain Hikes - Part 1: Exploring the Majestic Mountains of Asia
Budget Estimate:
Based on the provided information and focusing on Southeast Asia for mountain access, I'll create a cost estimate in INR, assuming a moderate budget and a 10-day trip. I'll prioritize Thailand (Chiang Mai) and potentially Laos (Luang Prabang) due to mountain access and general travel recommendations.
flights: 40000
accommodation: 15000
food: 7000
activities: 5000
transportation: 3000
miscellaneous: 2000
Final Plan:
Okay, here's a concise 10-day itinerary focusing on mountains in Southeast Asia, primarily in Northern Thailand (Chiang Mai), with a potential side trip to Laos (Luang Prabang), based on your provided research and budget (converted to INR).
**Assumptions:**
* **Budget:** INR 72,000 (Flights: 40,000, Accommodation: 15,000, Food: 7,000, Activities: 5,000, Transportation: 3,000, Miscellaneous: 2,000)
* **Focus:** Mountain scenery, hiking, cultural experiences.
* **Travel Style:** Moderate budget, prioritizing experiences over luxury.
**Itinerary:**
**Days 1-3: Chiang Mai, Thailand (Arrival & City Exploration)**
* **Day 1:** Arrive at Chiang Mai International Airport (CNX). Check into your guesthouse/hostel in the Old City (consider areas near Thapae Gate). Explore the Old City temples (Wat Chedi Luang, Wat Phra Singh). Evening: Chiang Mai Night Bazaar (street food, souvenirs).
* **Accommodation:** Guesthouse/Hostel (INR 1000-1500/night).
* **Transportation:** Airport taxi/Grab, walking within the Old City.
* **Food:** Street food (Pad Thai, Mango Sticky Rice) - INR 500/day.
* **Day 2:** Doi Suthep Temple (Wat Phra That Doi Suthep) - take a songthaew (red truck taxi) up the mountain. Afternoon: Explore Nimmanhaemin Road (trendy cafes, shops). Evening: Cooking class (learn to make Thai dishes).
* **Activities:** Doi Suthep entrance fee, cooking class (INR 1500).
* **Day 3:** Elephant Nature Park (ethical elephant sanctuary - book in advance!). Evening: Relaxing Thai massage.
* **Activities:** Elephant Nature Park (INR 2000).
**Days 4-6: Chiang Mai (Mountain Hiking & Nature)**
* **Day 4:** Hike to Doi Inthanon, the highest peak in Thailand. Hire a driver or join a tour. Visit waterfalls (Wachirathan Falls, Sirithan Falls) along the way.
* **Transportation:** Private driver/tour (INR 1500).
* **Activities:** Doi Inthanon National Park entrance fee.
* **Day 5:** Hike the Monk's Trail to Wat Pha Lat (hidden temple in the jungle). Afternoon: Explore the Huay Tung Tao Lake (relax, swim, bamboo huts).
* **Transportation:** Songthaew/Grab to trailheads.
* **Day 6:** Optional: Day trip to Pai (scenic mountain town - longer travel time). Alternatively, explore more of Chiang Mai's surrounding nature (e.g., Queen Sirikit Botanic Garden).
**Days 7-9: Luang Prabang, Laos (Optional - Requires Flight/Bus)**
* **Day 7:** Travel to Luang Prabang (flight or overnight bus - factor in travel time). Check into your guesthouse. Explore the Luang Prabang Old Town (UNESCO World Heritage Site).
* **Accommodation:** Guesthouse (INR 1000-1500/night).
* **Transportation:** Flight/Bus (adjust budget accordingly).
* **Food:** Lao cuisine (sticky rice, laap) - INR 500/day.
* **Day 8:** Kuang Si Falls (beautiful turquoise waterfalls). Afternoon: Climb Mount Phousi for sunset views. Evening: Luang Prabang Night Market.
* **Activities:** Kuang Si Falls entrance fee.
* **Day 9:** Alms Giving Ceremony (early morning). Explore temples (Wat Xieng Thong). Optional: Boat trip on the Mekong River.
**Day 10: Departure**
* **Day 10:** Fly from Luang Prabang (LPQ) or Chiang Mai (CNX) back home.
**Travel Tips & Warnings:**
* **Visas:** Check visa requirements for Thailand and Laos based on your nationality.
* **Currency:** Thai Baht (THB) and Lao Kip (LAK).
* **Bargaining:** Bargain respectfully in markets.
* **Health:** Consult your doctor about vaccinations and malaria prevention.
* **Safety:** Be aware of your surroundings, especially at night.
* **Respect:** Dress respectfully when visiting temples (cover shoulders and knees).
* **Water:** Drink bottled water.
* **Language:** Learn basic Thai/Lao phrases.
* **Flexibility:** This is a suggested itinerary; be flexible and adjust based on your interests and budget.
* **Transportation:** Download Grab app for easy taxi booking in Chiang Mai.
**Budget Notes:**
* Flights are a significant portion of the budget. Consider booking in advance and being flexible with travel dates.
* Accommodation can be cheaper if you stay in hostels or budget guesthouses.
* Food can be very affordable if you eat at local restaurants and street food stalls.
* Activities can be adjusted based on your interests.
* The Luang Prabang portion is optional and will require adjusting the budget for transportation. If you skip it, spend more time exploring Northern Thailand.
This itinerary provides a framework for your trip. Enjoy your mountain adventure in Southeast Asia!
git clone https://github.com/AnisH1427/Agent-Based-Travel-Planner.git cd Agent-Based-Travel-Planner
uv venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate uv pip install -r requirements.txt
app/config/settings.py
and .env
for your API keys and trip parameters.python main.py
travel_plan.md
for the detailed itinerary.As the travel planning system evolves, there are numerous opportunities to expand its capabilities and deliver even greater value to users. By integrating advanced technologies and user-centric features, the platform can become more intelligent, adaptive, and comprehensive. Future development could focus on the following areas:
The Agent-Based Travel Planner is an actively maintained open-source prototype. The primary goals are to ensure compatibility with updated library versions (e.g., LangChain, Tavily), refine agent logic based on user feedback, and implement the features outlined in the Future Direction. Support is provided on a best-effort basis through the project's GitHub repository, where users can report issues, suggest enhancements, and contribute code.
The system's architecture prioritizes reliability through a multi-layered strategy to manage failures and unexpected inputs:
This project is published under the MIT License, a permissive open-source license. This grants users full freedom to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, subject to one condition: all copies must include the original copyright notice and the full text of the MIT License. This makes the project suitable for unrestricted academic, personal, and commercial use.
This project illustrates a practical application of multi-agent systems for travel planning. The Agent-Based Travel Planner demonstrates how modular AI agents and modern orchestration patterns can automate and enhance the travel planning process. By integrating research, budgeting, and logistics capabilities, the system delivers efficient, personalized itineraries, setting a strong foundation for future innovation and user-centric enhancements.