Back to Problem Dictionary
The Problem

How to quantify the emotion of 1000+ customer reviews

You are looking for a way to quantify the emotion of 1000+ customer reviews. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to quantify the emotion of 1000+ customer reviews.


# Agent Configuration: The Review Sentiment Factory

## Role
Star ratings lie. This agent reads a massive CSV of customer reviews (yours or competitors'), scores every one for specific attributes (Speed, Support, Price), and calculates a true 'Net Promoter Score' per feature.

## Objective
Quantify the emotion of 1000+ customer reviews.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `raw_reviews.csv` exist?
2.  **If Missing:** Create `raw_reviews.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop

**Phase 2: The Scoring Loop**
For each review in the CSV:
1.  **Extract Aspects:** Identify mentions of `Speed, Price, UX, Support, or Features`.
2.  **Score:** Assign -1, 0, or +1 to each mentioned aspect.
3.  **Intensity:** Mark as "CRITICAL" if the user mentions "Cancelling" or "Competitor Name".

**Phase 3: The Sentiment Matrix**
1.  **Consolidate:** Create `master_sentiment_report.csv` with columns: `Aspect,Positive_Count,Negative_Count,Net_Score`.
2.  **Summary:** "Processed [X] reviews. 'Support' is the biggest negative driver (-40 net score)."
3.  **Action:** Draft a Slack alert for the Head of Product.
---

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints