Skip to content

A CrewAI agent based app that helps you in finding flights and planning your itinerary at the destination with top recommended places to visit

License

Notifications You must be signed in to change notification settings

sachs7/flight_finder_and_trip_planner_crewai

Repository files navigation

Flight Finder and Trip Planner Using CrewAI

A CrewAI agent based app that helps you in finding flights and planning your itinerary at the destination with top recommended places to visit.

Required API Keys

  1. OpenAI
  2. SerpAPI (for Google Flights)
  3. Serper API (for web searchs)

Add the above API keys in .env file

How to Run:

Note: The code is tested on Python version: 3.12.0

  1. Clone the repo
  2. Install UV: pip install uv
  3. Create virtual environment using, uv venv --python 3.12
  4. Run crewai install to install all the dependencies
  5. Run crewai run

Caution

Google SERPAPI is used here to search for flights. If using a free tier, it shouldn't be used for commercial purposes.

Streamlit App:

If you want to run this as a Streamlit app follow the steps:

  1. Clone the repo
  2. Install UV: pip install uv
  3. Create virtual environment using, uv venv --python 3.12
  4. Install the libraries mentioned in pyproject.toml dependencies section using uv pip install xxxxxx
  5. To run the app: streamlit run main_streamlit.py and follow the instructions to access it in a browser

Sample Results:

CrewAI Run:

The output is stored as a trip_itinerary.md file:

Screenshot 2024-11-25 at 9 46 17 PM Screenshot 2024-11-25 at 9 46 44 PM

Output of Streamlit app:

Screenshot 2024-11-26 at 8 53 52 PM Screenshot 2024-11-26 at 8 54 15 PM Screenshot 2024-11-26 at 8 54 24 PM

About

A CrewAI agent based app that helps you in finding flights and planning your itinerary at the destination with top recommended places to visit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages