An open API service indexing awesome lists of open source software.

https://github.com/sachs7/flight_finder_and_trip_planner_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
https://github.com/sachs7/flight_finder_and_trip_planner_crewai

agents ai crewai flight-finder google-flights-api gpt-4o llm openai planner serpapi streamlit travel travel-planner

Last synced: 16 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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