This project implements a CrewAI-based system with multiple AI agents working together to research products and create comprehensive sales guides.
The system consists of four specialized agents:
- Searcher Agent: Finds relevant product information online using web search APIs
- Scraper Agent: Extracts detailed information from websites using web scraping techniques
- Analyst Agent: Analyzes data for inconsistencies, errors, and gaps
- Writer Agent: Creates comprehensive and persuasive sales guides
- Simple chat interface to input product names
- Support for both OpenAI and Ollama LLM providers
- Verbose mode to see detailed agent activities
- Robust error handling with retry mechanisms
- Automatic saving of generated sales guides
- Python 3.8+
- Dependencies listed in
requirements.txt
Choose one of the following setup scripts based on your operating system:
python setup.pychmod +x setup.sh # Make the script executable
./setup.shsetup.batEach script will:
- Check if Python 3.8+ is installed
- Create a virtual environment
- Install all required dependencies
- Provide instructions for activating the environment and running the project
If you prefer to set up manually:
-
Clone this repository or download the files
-
Create and activate a virtual environment:
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate- Install the required dependencies:
pip install -r requirements.txt-
If using OpenAI, make sure you have an API key ready
-
To deactivate the virtual environment when finished:
# On Windows/macOS/Linux
deactivateRun the script with:
python crew-1.pyFollow the prompts to:
- Enter the product name to research
- Select the LLM provider (OpenAI or Ollama)
- Choose whether to enable verbose mode
The system will:
- Search for information about the product
- Scrape relevant websites for detailed data
- Analyze the data for inconsistencies
- Generate a comprehensive sales guide
- Save the guide to a text file
The system includes robust error handling:
- Retry mechanisms for network errors
- Timeout management for external operations
- Graceful degradation when complete information is unavailable
- Structured error reporting
The final output is a comprehensive sales guide saved to a text file named after the product (e.g., iphone_14_sales_guide.txt).