Skip to content

✈️ Plan your next trip smartly with the AI Travel Planner! An interactive Streamlit app that leverages LLMs (GPT-4o or Llama 3.2) and search engines to create personalized travel itineraries.

License

Notifications You must be signed in to change notification settings

andredisa/AI_TravelPlanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍✈️ AI Travel Planner

Plan your next trip smartly with the AI Travel Planner!
An interactive Streamlit app that leverages LLMs (GPT-4o or Llama 3.2) and search engines to create personalized travel itineraries.


🚀 Features

  • 🧠 AI Researcher: Finds top-rated activities and accommodations
  • 📅 AI Planner: Builds a detailed, customized itinerary
  • 🔍 Web Search Integration: Powered by SerpAPI
  • 🧩 Support for Llama 3.2 (Ollama) and GPT-4o (OpenAI)

🗂️ Project Structure

AI_WebScraper/
├── agents/
│   ├── gpt_agent.py      # Agent logic using GPT-4o
│   └── llama_agent.py    # Agent logic using Llama 3.2
├── app/
│   ├── main_gpt.py       # Streamlit interface with GPT-4o
│   └── main_llama.py     # Streamlit interface with Llama
├── requirements.txt      # Dependencies
└── README.md

🛠️ Installation

  1. Clone the repository:
git clone https://github.com/andredisa/AI_TravelPlanner.git
cd AI_TravelPlanner
  1. Install the requirements:
pip install -r requirements.txt
  1. Launch the app with your preferred model:

▶️ GPT-4o:

streamlit run app/main_gpt.py

🦙 Llama 3.2 (Ollama):

streamlit run app/main_llama.py

🔑 Required API Keys

Service API Key Name Where to Get It
OpenAI OPENAI_API_KEY openai.com
SerpAPI SERP_API_KEY serpapi.com

🛡️ API keys are entered securely via the Streamlit interface. No keys are stored locally.


💡 Example Use Case

🔎 Enter your destination and number of days
🧳 Let the AI agent research activities and places
📜 Receive a tailored itinerary with tips, suggestions, and details


🎯 Goal

A travel assistant powered by AI that helps you from the initial research all the way to full itinerary planning, using generative intelligence and real-world web data.


📌 TODO / Future Ideas

  • 🌐 Export trip itineraries as PDF
  • 🗺️ Interactive map with trip route and stops
  • 🔁 User memory and saved trips functionality
  • 📆 Calendar integration (Google Calendar, iCal)

✨ Contributing

🎉 Contributions are more than welcome!

If you find a bug 🐞, have a feature request ✨, or want to improve the code 💻:

💬 Feel free to reach out on GitHub or by email!

Let’s build this together!


📜 License

📄 This project is released under the MIT License.
Please refer to the LICENSE file for full details.


☕ Support Me

If you find my work useful and would like to support me, you can buy me a coffee! Your support helps me keep creating and improving my projects. Thank you! 😊

Buy Me A Coffee


🧑‍💻✨ Happy coding

About

✈️ Plan your next trip smartly with the AI Travel Planner! An interactive Streamlit app that leverages LLMs (GPT-4o or Llama 3.2) and search engines to create personalized travel itineraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages