Skip to main content

Sentiment analysis of product reviews using Google Sheets & OpenAI

Workflow preview

Workflow preview
100%
Sentiment analysis of product reviews using Google Sheets & OpenAI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Sentiment Analysis of Product Reviews using Google Sheets & OpenAI Quick Implementation Steps Automated customer feedback analyzer : Trigger : Google Sheets triggers on new product review row...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.sentimentanalysis, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.googlesheetstrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Sentiment analysis of product reviews using Google Sheets & OpenAI
Workflow name
Sentiment analysis of product reviews using Google Sheets & OpenAI

🧠 Sentiment Analysis of Product Reviews using Google Sheets & OpenAI

🚀 Quick Implementation Steps

Automated customer feedback analyzer:

  • Trigger: Google Sheets triggers on new product review rows.
  • Sentiment Analysis: Review text sent to OpenAI.
  • Writeback: Resulting sentiment (Positive, Neutral, Negative) is written back to the sheet.

Just connect your credentials and sheet — you're ready to go!

🔍 What It Does

This workflow automatically analyzes user-submitted product reviews and classifies them by sentiment using OpenAI’s powerful language models. It eliminates the need to manually sift through feedback by tagging each review with a sentiment score.

The sentiment result is then written back to the Google Sheet next to the original review, enabling you to get a fast, clear snapshot of overall customer perception, satisfaction and pain points. Whether you're monitoring 10 or 10,000 reviews, this process scales effortlessly and updates every minute.

👤 Who’s It For

This workflow is designed for:

  • E-commerce teams collecting user reviews.
  • Product teams monitoring customer feedback.
  • Marketing teams identifying promotable reviews.
  • Support teams watching for negative experiences.
  • SaaS platforms, apps, and survey tools managing structured text feedback.

✅ Requirements

You’ll need:

  • A Google Sheet with two columns: Review and Sentiment
  • Google Sheets OAuth2 credentials in n8n
  • OpenAI API Key (for GPT-4o-mini or GPT-3.5)
  • n8n instance with LangChain and OpenAI nodes enabled

⚙️ How It Works

  1. Google Sheets Trigger: Watches for new rows every minute
  2. OpenAI Integration:
    • Uses LangChain’s Sentiment Analysis node
    • Passes review text into GPT-4o-mini via the OpenAI Chat Model node
  3. Sheet Update: The sentiment result (Positive, Negative, or Neutral) is written into the Sentiment column in the same row.

Sticky Notes included for better visual understanding inside the workflow editor.

🛠️ Steps to Configure and Use

1. Prepare Your Google Sheet

Make sure your sheet is named Sheet1 with the following structure:

Review Sentiment
Absolutely love it!
Not worth the price.

2. Set Up Credentials

  • Google Sheets: OAuth2 credentials
  • OpenAI: API Key added via OpenAI API credential in n8n

3. Import & Activate Workflow

  • Import the workflow JSON into your n8n instance.
  • Assign the proper credentials to the trigger and OpenAI nodes.
  • Activate the workflow.

🧩 How To Customize

  • 🛎️ Alerting: Add Slack/Email nodes for negative sentiment alerts
  • 🔄 Triggering: Change the polling interval to real-time triggers (e.g., webhook)
  • 📊 Extended Sentiment: Modify sentiment categories (e.g., "Mixed", "Sarcastic")
  • 🧾 Summary Report: Add Cron + Aggregation nodes for daily/weekly summaries
  • 🧠 Prompt Tuning: Adjust system prompt for deeper or context-based sentiment evaluation

🧱 Add‑ons (Optional Features)

  • Email Digest of Negative Reviews
  • Google Drive Logging
  • Team Notification via Slack
  • Summary to Notion, Airtable, or Google Docs

📌 Use Case Examples

  • Online Stores: Auto-tag reviews for reputation monitoring
  • Product Teams: See which feature releases generate positive or negative buzz
  • CX Dashboards: Feed real-time sentiment to internal BI tools
  • Marketing: Extract glowing reviews for social proof
  • Support: Triage issues by flagging critical comments instantly

...and many more applications wherever text feedback is collected.

🧰 Troubleshooting Guide

Issue Possible Cause Suggested Fix
Sentiment not updating Sheet credentials missing or misconfigured Reconnect Google Sheets OAuth2
Blank sentiment Review column empty or misaligned Ensure proper column header & value present
OpenAI errors Invalid or expired API key Regenerate API Key from OpenAI and re-auth
Workflow doesn’t run Polling settings incorrect Confirm interval & document ID in trigger node

🤝 Need Help?

If you need assistance for

  • ✅ Help setting up this workflow
  • ⚙️ Customizing prompts or output
  • 🚀 Automating your full review pipeline

👉 Contact us today at WeblineIndia. We will be happy to assist.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sentiment Analysis

Type / Role
@n8n/n8n-nodes-langchain.sentimentAnalysis - sentimentAnalysis
Config choices
Version 1

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Google Sheets Trigger

Type / Role
n8n-nodes-base.googleSheetsTrigger - googleSheetsTrigger
Config choices
Version 1

Block 4 - Updated Sentiment of Product Review

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Sentiment analysis of product reviews using Google Sheets & OpenAI
Complexity intermediate
Nodes 6
Categories Market Research, AI Summarization
Author WeblineIndia
Published 31 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6739/6739.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Sentiment analysis of product reviews using Google Sheets & OpenAI do?

Sentiment Analysis of Product Reviews using Google Sheets & OpenAI Quick Implementation Steps Automated customer feedback analyzer : Trigger : Google Sheets triggers on new product review row...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.