This project is designed to track and analyze customer sentiment and Share of Voice (SoV) for various fan brands, specifically Atomberg, Havells, Crompton, and Orient Electric. The pipeline uses a combination of tools like SerpAPI, YouTube API, Twitter API, and the Gemini Chat model for sentiment analysis. The ultimate goal is to compare the brands' SoV across different keywords and platforms, such as YouTube and Twitter, to understand public sentiment and engagement.
The workflow automates the following tasks:
- Collecting customer reviews from Flipkart for the brands: Atomberg, Havells, Crompton, and Orient Electric using SerpAPI.
- Sentiment analysis on these reviews using the Gemini Chat model.
- Finding mentions on YouTube for "smart fan" using Youtube Data API and calculating the number of mentions for Atomberg.
- Sentiment analysis on Twitter using the Twitter API for Atomberg smart fans.
- Keyword-based analysis for comparing the Share of Voice (SoV) of the brands using "bldc fans" and "energy efficient fans" as comparison keywords.
- n8n: An open-source workflow automation tool used to create the entire pipeline.
- SerpAPI: Used for scraping customer reviews and conducting searches on different keywords.
- Gemini Chat Model: Used to perform sentiment analysis on customer reviews and social media mentions.
- Youtube Data API: For searching YouTube for mentions of the "smart fan" keyword.
- Twitter API: To collect tweets and perform sentiment analysis for "Atomberg smart fans."
- Python: For additional analysis (if needed) and sentiment scoring, using libraries like
pandasfor data manipulation andmatplotlibfor visualizations.
-
Clone this repository:
git clone https://github.com/CyberRik/smart-fan.git cd smart-fan -
Install n8n: If you don't have n8n installed, follow the instructions on the n8n website to get it set up.
-
Import the JSON Workflow:
- Inside your n8n instance, go to the "Import" section.
- Upload the
smart fan.jsonfile from this repository.
-
Configure APIs:
- You'll need to set up API keys for SerpAPI, YouTube Data API, and the Twitter API in your n8n workflow to fetch the necessary data.
- Make sure to set up any other required environment variables or credentials.
-
Run the Workflow: Once your APIs are configured, trigger the workflow, and it will collect and analyze the data as described above.
-
Customer Review Collection:
- Source: Flipkart
- Brands: Atomberg, Havells, Crompton, Orient Electric
- API Used: SerpAPI
- Goal: Collect customer reviews and analyze sentiment using the Gemini Chat model.
-
YouTube Mentions for "Smart Fan":
- Source: YouTube via Youtube Data API
- Goal: Find the number of mentions for Atomberg and calculate its Share of Voice.
-
Twitter Mentions:
- Source: Twitter API
- Goal: Analyze sentiment for mentions of "Atomberg smart fans."
-
Keyword Analysis:
- Keywords: "bldc fans" and "energy efficient fans"
- Goal: Compare the SoV across the brands using these additional keywords.
The analysis from the workflow will allow you to compare the Share of Voice (SoV) across different brands and keywords. This includes:
- The number of mentions each brand receives across the platforms.
- Sentiment analysis to understand the public’s positive or negative sentiment towards each brand.
- Engagement metrics to understand which brand receives the most attention and positive interactions.
The findings can be viewed in the analysis report. Some potential recommendations could include:
- Content Strategy: Focus on keywords with higher SoV for improved engagement.
- Brand Positioning: Address negative sentiment by responding to customer feedback on social media platforms.
Below is the workflow for tracking and analyzing customer sentiment and Share of Voice (SoV):
