Open Source Review Analyzer Chrome Extension for ChatGPT
Tags: chatgpt, webdev, programming, webscraping
Published: 2023-04-28 10:38:19

## Introduction
Online reviews are instrumental in influencing consumer decisions. As a result, effective and efficient review analysis is essential for businesses. SerpApi has developed a practical tool that streamlines this process by harnessing both the capabilities of ChatGPT, and SerpApi: [SerpApi's ChatGPT Review Analyzer Chrome Extension](https://github.com/serpapi/review-analyzer).

## How SerpApi's ChatGPT Review Analyzer Works
### The role of ChatGPT in review analysis
SerpApi's ChatGPT Review Analyzer employs OpenAI's ChatGPT, an advanced language model chatbot, and SerpApi's Review Results from Search Engines to process and analyze vast amounts of review data swiftly. By using artificial intelligence, natural language processing (NLP) techniques, and SERP data, the extension can extract valuable insights from reviews, generating concise summaries, sentiment analysis, and keyword extraction.

**References**
- https://serpapi.com/use-cases/machine-learning-and-artificial-intelligence
- https://openai.com/blog/chatgpt

### The ChatGPT Chrome Extension
This powerful tool is designed as a Chrome extension, allowing for smooth integration with your web browser. The extension is ready to use and usable with ChatGPT on Chrome and Brave browsers, offering valuable insights directly within your browsing experience.

You need two accounts for this extension to work. One of which is obviously the ChatGPT account. Another is the SerpApi Account. You may [register to claim free credits recurring each month](https://serpapi.com/users/sign_up).

Alongside Google Search Results in an easy-to-understand JSON format without worrying about proxies and parsers, SerpApi also provides many search result features in different engines like Bing, Duckduckgo, or shopping engines like Walmart, eBay, etc.

**References**
- https://github.com/serpapi/review-analyzer
- https://serpapi.com/search-api
- https://serpapi.com/bing-search-api
- https://serpapi.com/duckduckgo-search-api
- https://serpapi.com/walmart-search-api
- https://serpapi.com/ebay-search-api

## Features of SerpApi's ChatGPT Review Analyzer
### An example Output of the extension
```bash
    Quality of coffee (70% positive)
    Service (40% positive, 30% negative)
    Ambiance/decor (60% positive)
    Availability of snacks/food options (40% positive, 20% negative)
    Price (20% negative)
    Seating/WiFi (60% positive)
    Milk options (30% positive, 10% negative)
    Accessibility (10% positive)
    Cleanliness (20% positive)
    Location (10% positive)
```
### Real-time review analysis
SerpApi offers a variety of engines that offer review results. Most of templates are covered in this extension. You can get real-time review results using the vast ecosystem of SERP Engines such as SerpApi’s Google Reviews Results API, Google Maps Reviews API, Walmart Product Reviews API, Apple App Store Reviews API, and much more. You can find links to some of their documentation and tutorials in the references.

The Google Chrome extension examines reviews instantly, providing valuable insights with the ChatGPT response. This real-time capability enables you to make informed decisions quickly without manually sorting through numerous reviews.

SerpApi also provides an add-on called Ludicrous Speed which provides up to 2.5x speeds. If you would like to improve the speed at which you gather your results, you may take a look at [Ludicrous Speed Page](https://serpapi.com/ludicrous-speed).

**References**
- https://serpapi.com/ludicrous-speed
- https://serpapi.com/reviews-results
- https://serpapi.com/google-maps-reviews-api
- https://serpapi.com/walmart-reviews-results
- https://serpapi.com/walmart-product-reviews-api
- https://serpapi.com/apple-reviews
- https://serpapi.com/google-play-product-reviews

### Sentiment analysis
SerpApi's ChatGPT Review Analyzer can ascertain the overall sentiment of a review, classifying it as positive, negative, or neutral. This feature allows users to gauge general opinions about a product or service without reading every review in depth.

**References**
- https://aws.amazon.com/what-is/sentiment-analysis/

### Review summarization
The extension employs ChatGPT to produce concise summaries of extensive reviews, emphasizing the most critical points. This feature lets users grasp the crux of a review without dedicating time to reading the entire text.

**References**
- https://huggingface.co/tasks/summarization

### Keyword extraction and Topic Modeling
The tool can identify and extract relevant keywords from reviews, offering users a snapshot of the most frequently mentioned topics. This feature assists users in recognizing patterns and trends in customer feedback and opinions, allowing them to concentrate on specific areas of interest or concern.

This is actually also a bit of my personal area of interest. We have a variety of transformer models for on-demand labeled classification. But when it comes to generating labels for these, we haven't got many approaches. In one of my previous blog posts, I covered Latent Dirichlet Allocation (LDA) algorithm for label generation. LLMs prove to be useful in doing the same thing for the batches. A chain of batches, and selection of the most common labels between results has the possibility to provide label generation. This function could be used to classify a larger corpus of text for a variety of purposes beyond reviews.

**References**
- https://en.wikipedia.org/wiki/Latent_Dirichlet_allocation
- https://www.quora.com/What-is-the-difference-between-keyword-extraction-and-Topic-modeling-such-as-Latent-Dirichlet-Allocation
- https://serpapi.com/blog/topic-analysis-of-app-store-reviews-a-heatmap-approach-with-the-app-store-reviews-scraper-api/

## Benefits of SerpApi's ChatGPT Review Analyzer
### Time-saving
By automating the review analysis process, SerpApi's ChatGPT Review Analyzer saves users considerable time. This frees businesses and individuals to focus on other essential tasks, enhancing overall productivity without worrying about how to collect their reviews, or how to get insights from them.

### Improved decision-making
With SerpApi's capacity to supply real-time insights, users can make better-informed decisions based on customer feedback. This can result in more effective marketing strategies, product improvements, and overall business growth.

### Enhanced user experience
SerpApi's ChatGPT Review Analyzer Chrome extension streamlines the review analysis process, creating a more enjoyable and efficient browsing experience. Users can quickly access valuable insights by copying the results SerpApi already scraped for them without the need for opening a new tab to scrape each different review.

### Competitive edge
By leveraging ChatGPT and SerpApi, businesses can gain a competitive advantage by staying abreast of trends and comprehending customer feedback better than their competitors. This can lead to improved customer satisfaction and loyalty, as well as increased market share.

## How do I use ChatGPT extension in Chrome?
### Installation process
The extension isn’t published under Chrome Web Store yet, so the only web page you can access is the GitHub Repository for the moment. It doesn’t have support for Firefox yet. You will need a Chrome or a Brave Browser to use it.

1. Visit the GitHub repository at [https://github.com/serpapi/review-analyzer](https://github.com/serpapi/review-analyzer).
2. Download the repository as a ZIP file and extract it, or just clone it.
3. In your Chrome or Brave browser, open the Extensions page (chrome://extensions for Chrome Browser, brave://extensions for Brave Browser).
4. Enable "Developer mode" in the top right corner of the page.
5. Click "Load unpacked" and select the extracted folder from your computer.

**References**
- https://github.com/serpapi/review-analyzer
- https://www.reddit.com/r/chrome_extensions/comments/zh4ave/how_to_manually_add_extension_to_chrome_when_i/

### Usage
1. Navigate to ChatGPT webpage.
2. Navigate to SerpApi Playground to filter the review results you desire.
3. Click on the SerpApi's ChatGPT Review Analyzer icon in your browser.
4. A popup window will open. Copy the review results you gathered from SerpApi in JSON format. (Do not try to trim the unnecessary parts.)
5. Click on the Analyze Button.
6. The extension will automatically process and display insights from the reviews, providing you with the 10 most common labels and their percentages based on occurrence rate. It will also indicate whether a label is positive or negative.

Here is an example of Google Maps Reviews Results for a Cafe in New York using SerpApi’s Google Maps Reviews API and GPT-4:

```bash
Coffee Quality (70% positive): 7 out of 10 reviews mentioned the quality of the coffee as a positive aspect.
Staff Attitude (30% positive, 60% negative): 6 out of 10 reviews mentioned staff attitude, with 4 of them being negative and 2 being positive.
Pastries and Baked Goods (50% positive, 30% negative): 5 out of 10 reviews mentioned the pastries and baked goods, with 3 being positive and 2 being negative.
Ambiance and Decor (70% positive): 7 out of 10 reviews mentioned the ambiance and decor positively.
Cleanliness (50% negative): 2 out of 10 reviews mentioned cleanliness negatively.
Seating Options (50% positive): 3 out of 10 reviews mentioned seating options as a positive aspect.
Service Speed (50% positive): 2 out of 10 reviews mentioned the speed of service positively.
Location (80% positive): 4 out of 10 reviews mentioned the location as a positive aspect.
Crockery (50% negative): 1 out of 10 reviews mentioned the lack of crockery negatively.
Restroom Availability (100% negative): 1 out of 10 reviews mentioned the lack of restroom negatively.
```

**References**
- https://serpapi.com/playground
- https://serpapi.com/playground?engine=google_maps_reviews
- https://serpapi.com/google-maps-reviews-api

## Alternative Input Method
Aside from using the extension with SerpApi's Engines like Google Maps Reviews API or Apple Reviews API, users can alternatively input reviews in an array format. This option offers flexibility in handling reviews from various sources such as tweets, social media posts, youtube video comments, etc., ensuring that valuable insights are not missed. SerpApi also serves these results in its engines. But it is not supported yet for this extension.

Here is an example of reviews from different sources about SerpApi:
Input:
```bash
[
"I wanted to try out events search API and found SERP API to be more manageable and versatile with plenty of other things to integrate! Pretty straightforward integration and support are on time with less than 15 mins TAT.",
"As the CEO of ReviewsJet, I have witnessed firsthand the immense value Serp API has brought to our platform. By integrating this powerful real-time API into our review software, we have revolutionized how our users collect and analyze customer feedback from sources such as Google, Yelp, Bing, Yahoo, eBay, and many more.

Before incorporating Serp API, we faced numerous challenges in aggregating reviews from various platforms. Our users often had to spend hours manually searching and compiling data, which led to inefficiencies and inaccuracies. Serp API has completely changed the game for us by automating this process and providing a seamless, comprehensive, and up-to-date source of information.

The real-time capabilities of Serp API have greatly benefited our clients. They can now access the most relevant and current data without worrying about outdated information. This has allowed them to make timely and well-informed decisions, ultimately leading to better products and services for their customers.

At ReviewsJet, we pride ourselves on delivering an exceptional user experience, and Serp API's seamless integration within our platform has been a significant contributing factor to this. Our clients can now easily access and analyze data from multiple sources in a unified interface, resulting in a more efficient and enjoyable workflow.

Furthermore, Serp API's extensive coverage across search engines and platforms has given our users a holistic view of their customer's experiences and opinions. This comprehensive understanding has empowered them to identify areas for improvement and capitalize on their strengths, leading to happier customers and more successful businesses.",
"I used the google scholar service, it was pretty smooth and nice. I spend couple of day to figure a way to do it myself. Then I decided to use SerpApi and it took like 10 minutes to implement and run my good."
...
]
```

Output:
```bash
Ease of Use (Positive) - 23%
Fast and Responsive API (Positive) - 20%
Excellent Customer Support (Positive) - 18%
Comprehensive and Versatile (Positive) - 15%
Pricing Concerns (Negative) - 10%
Documentation Quality (Mixed) - 7% (Positive: 5%, Negative: 2%)
Integration Issues (Negative) - 3%
Wide Range of Features (Positive) - 2%
Real-time Results (Positive) - 1%
Wish for More Free Credits (Negative) - 1%
```

**References**
- https://www.trustpilot.com/review/serpapi.com
- https://www.g2.com/products/serpapi-serpapi/reviews
- https://crozdesk.com/software/serpapi
- https://www.capterra.co.il/reviews/1030762/serpapi

## Conclusion
I'm grateful for the reader's time and attention. SerpApi's ChatGPT Review Analyzer Chrome extension offers users a streamlined and efficient way to analyze reviews using SerpAPI results. By harnessing the power of ChatGPT, the extension provides valuable insights, such as sentiment analysis, review summarization, and label extraction. Although it is not an officially supported SerpApi tool or official plugin OpenAI APIs, the extension is an invaluable resource for businesses and individuals seeking to make informed decisions based on customer feedback. I hope it demonstrates to the reader that SerpApi is a great source for developing ChatGPT-powered AI tools.