ποΈ VendorVision VendorVision is an AI-powered customer review analysis platform that leverages Django, Google Cloud NLP, and Plotly Dashboards to extract insights from customer reviews. The system fetches reviews from Google Places API, analyzes sentiments using Google Cloud Natural Language API, and visualizes trends using interactive dashboards.
π Features
β
Fetch Reviews from Google Places API β Retrieve real-time reviews for business locations.
β
AI-Powered Sentiment Analysis β Classify reviews as Positive, Negative, or Neutral.
β
Review Summarization β Identify trends and key phrases in customer feedback.
β
Improvement Suggestions β Uses Google's Gemini AI to suggest business enhancements.
β
Multi-Language Support β Detects and translates reviews using Google Translate API.
β
Interactive Dashboard β Visualize customer feedback using Plotly graphs.
ποΈ Tech Stack
Backend:
πΉ Django β Python web framework for handling API requests.
πΉ Google Cloud Natural Language API β Sentiment analysis and NLP.
πΉ Google Translate API β Language detection and translation.
πΉ Google Places API β Fetches business reviews.
πΉ Gemini AI β Generates business improvement suggestions.
Frontend:
πΉ HTML, CSS, JavaScript β Custom-built templates.
πΉ Plotly.js β Dynamic charts for visualizing customer insights.
Database: πΉ PostgreSQL / SQLite β Stores review data (if needed).
π¦ Installation
1οΈβ£ Clone the Repository
git clone https://github.com/ZaBy10/VendorVision.git
cd VendorVision
2οΈβ£ Set Up Virtual Environment
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
3οΈβ£ Install Dependencies
pip install -r requirements.txt
4οΈβ£ Set Up Google Cloud API Credentials
Create a .env file in the project's root and add:
GOOGLE_APPLICATION_CREDENTIALS=path_to_your_google_credentials.json
GOOGLE_AI_API_KEY=your_gemini_api_key
API_KEY=your_google_places_api_key
Export credentials (for macOS/Linux):
export GOOGLE_APPLICATION_CREDENTIALS="path_to_your_google_credentials.json"
5οΈβ£ Apply Database Migrations (if using a database)
python manage.py makemigrations
python manage.py migrate
6οΈβ£ Run the Django Server
python manage.py runserver
Access the app at http://127.0.0.1:8000/
π Usage
1οΈβ£ Search for a Place β Enter a business name and city to find branches.
2οΈβ£ Select a Branch β Choose a location to fetch customer reviews.
3οΈβ£ Analyze Reviews β NLP processes and categorizes reviews (Positive, Negative, Neutral).
4οΈβ£ View Interactive Dashboard β See sentiment distribution, ratings, and common phrases.
5οΈβ£ Get Business Suggestions β AI-generated recommendations for improvement.
π Project Structure
VendorVision/
βββ place_reviews/
β βββ templates/
β β βββ index.html
β β βββ select_branch.html
β β βββ review_analysis.html
β β βββ review_dashboard.html
β β βββ live_analysis.html
β βββ views.py
β βββ urls.py
βββ static/
βββ requirements.txt
βββ manage.py
βββ README.md
π¨ Interactive Dashboard
The sentiment analysis dashboard is built using Plotly and provides:
π Pie Chart β Sentiment distribution of customer reviews.
π Scatter Plot β Sentiment score vs. review rating.
π Ratings Histogram β Distribution of customer ratings.
π― Future Enhancements
β
Improve AI model accuracy with custom-trained NLP models.
β
Add support for multiple review platforms beyond Google Places.
β
Integrate user authentication for personalized insights.
β
Implement automated email reports for businesses.
π Contact
For any queries or collaboration, reach out to:
π§ Email: [email protected]
π GitHub: ZaBy10