The Travel Planner application helps users plan their trips by generating detailed itineraries based on their travel details. The backend utilizes LangGraph and Tavily API to fetch relevant travel information and generate travel plans. The frontend is built using Streamlit, providing an easy-to-use interface for users to input their travel details. The fun part is along the way you can also see the outputs of search results.
- Generates detailed travel itineraries with daily schedules,and packing suggestions.
- Provides information on local attractions and hotels based on user preferences.
- Saves the generated itinerary as a Markdown file.
- Python 3.8 or higher
- Streamlit
- LangGraph
- Tavily API (API Key required)
-
Clone the repository:
git clone https://github.com/siddartha-10/Travel_Itinerary_Agents.git cd Travel_Itinerary_Agents
-
Install the required packages:
pip install -r requirements.txt
-
Edit the
.env_example
file in the root directory and add your API keys:AZURE_OPENAI_KEY=your_azure_openai_key AZURE_OPENAI_VERSION=2023-07-01-preview AZURE_OPENAI_DEPLOYMENT=your-deployment-name AZURE_OPENAI_ENDPOINT=your-end-point OPENAI_API_KEY=your-openai-api_key TAVILY_API_KEY=your_tavily_api_key
-
Run the Streamlit application:
streamlit run main.py
-
Fill in the travel details in the sidebar:
- Where are you traveling from?
- Where are you traveling to?
- Hotel Preferences
- Departure Date
- Return Date
-
Submit the form and wait for the itinerary to be generated.
-
The generated itinerary will be displayed on the main page and saved as a Markdown file named
{city_name}_itinerary.md
in the root directory.
- Speed up.
- Improve the UI/UX.
- Add human in the loop to see the user is happy and based on that build a plan.
- Include the Transportation details as well(ex:- Notebook something very close to the final output of the notebook give transport details).
- Turn this into the ultimate travel planning app.
This project is licensed under the MIT License - see the LICENSE file for details.