This repository contains a basic implementation of a travel agent using LangGraph. The travel agent takes user queries, searches for flight and hotel details at the desired destination, and provides personalized recommendations.
Follow these instructions to set up and run the travel agent on your local machine.
Ensure you have the following python version:
- Python 3.11+
-
Clone the repository:
git clone https://github.com/2020uce0047/travel-agent.git
-
Navigate to the project directory:
cd langgraph-travel-agent
-
Create a
.env
file in the parent directory and add your API keys:OPENAI_API_KEY = your-openai-key SERP_API_KEY = your-serpapi-key
-
Install the required packages:
pip install -r requirements.txt
-
Open a terminal in the parent directory.
-
Run the Streamlit application:
streamlit run main.py
The application should now be running on http://localhost:8501
. Open this URL in your browser to interact with the travel agent.
Feel free to fork this repository and submit pull requests. Your contributions are welcome!