Reddit Comment Sentiment Analysis with Bright Data and Gemini AI - n8n Workflow

Automate social listening with this powerful n8n workflow. Scrape Reddit comments using Bright Data, analyze sentiment with Google Gemini, and save structured data directly to Google Sheets.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Market researchers needing scalable tools for social media listening.
Marketing teams monitoring brand sentiment following a product launch or news event.
Data analysts looking for advanced n8n templates that combine web scraping and AI.
Users seeking a reliable n8n workflow to automate structured data collection and analysis.

Overview

This comprehensive n8n workflow offers an end-to-end solution for automated social listening on Reddit. Manual sentiment analysis is tedious and non-scalable, but this automation eliminates that problem entirely.

The system utilizes the Bright Data n8n node to reliably extract structured comment data from any target Reddit post URL. After the data is acquired, the workflow processes each comment using Google's powerful Gemini AI, configured via advanced Langchain n8n nodes. The AI determines if the sentiment is positive, negative, or neutral and provides a reasoning contextually. This ensures high-quality, actionable results.

Finally, the cleaned data is automatically saved to Google Sheets, making it one of the most valuable n8n templates for generating real-time sentiment reports without writing any code. Every step, from the initial n8n trigger to the final data storage, is designed for reliability and ease of use.

How it Works

The entire process is initiated by the Manual Start n8n trigger, where the user defines the target Reddit URL using the Set n8n node. This URL is passed to the Bright Data n8n node, which starts a web scraping job and returns a snapshot ID.

Crucially, the n8n workflow includes a Wait node to pause processing for 5 minutes, ensuring the Bright Data scraping job is complete before proceeding. The Bright Data n8n node then downloads the resultant comment snapshot.

To manage processing costs and time, the n8n workflow uses a Limit n8n node to restrict the analysis to the first five comments. Each comment then enters the AI analysis chain: the AI Sentiment Classifier n8n node uses the Google Gemini Chat Model to assess sentiment. Advanced parsing nodes, including the Auto-fixing Output Parser and Structured Output Parser, guarantee the AI output adheres to a specific JSON structure (including the comment, sentiment, and reason).

Finally, the Google Sheets n8n node appends this structured, AI-analyzed data to the target spreadsheet, completing this powerful n8n automation.

Installation Guide


  1. Import the n8n workflow: Copy the provided JSON data and paste it into your n8n canvas using the 'New' button and selecting 'Import from JSON'.

  2. Bright Data Credentials: Configure credentials for the Bright Data n8n node. You will need an API key and account access to their Web Scraper resource.

  3. Google Gemini Credentials: Set up the connection for the Google Gemini Chat Model n8n node using your API key (listed as Google Palm API credentials in this workflow).

  4. Google Sheets Setup: Create a new Google Sheet (or use the provided template in the sticky note). Connect the Google Sheets n8n node using OAuth2 credentials and specify the correct Document ID and Sheet Name (e.g., 'Sheet1'). Ensure your spreadsheet has column headers corresponding to the expected output: 'Comment', 'Sentiment', and 'Reason'.

  5. Test Run: Set a valid Reddit URL in the 'Set Reddit Post URL' n8n node and execute the manual n8n trigger to test the complete automation.

Node Details

Trigger & Setup Nodes

Trigger: Manual Start (n8n trigger): Initiates the n8n workflow manually for testing or single-run execution.
Set Reddit Post URL (n8n node): Defines the post URL variable which is the specific Reddit thread to be analyzed.

Data Acquisition Nodes

Bright Data: Get comments: Uses the Bright Data n8n node to initiate a web scraping job for the input URL, returning a snapshot ID.
Wait for Snapshot Processing (5 min): A critical n8n node that pauses the workflow for 5 minutes to allow the asynchronous scraping job to complete.
Bright Data: Download Comments Snapshot: Downloads the structured data results using the previously generated snapshot ID.
Limit to 5 Comments (n8n node): Reduces the number of items passed to the AI analysis phase to five for efficient processing in this n8n workflow template.

AI Processing Nodes

AI Sentiment Classifier (n8n node): The core Langchain Agent that constructs the prompt for sentiment analysis, feeding the comment and upvote count to the language model.
Function: Decides if the comment is Positive, Negative, or Neutral.
Google Gemini Chat Model (n8n node): The Large Language Model that performs the actual sentiment inference.
Auto-fixing Output Parser: A specialized Langchain n8n node that ensures the raw AI output is standardized and corrected if malformed, crucial for data integrity.
Structured Output Parser: Defines the expected JSON structure (comment, sentiment, reason) that the AI output must conform to, ensuring clean data for the final storage step.

Storage Node

Save Sentiment to Google Sheets (n8n node): The final action. It uses the append operation to save the structured analysis (Comment, Sentiment, Reason) into the designated Google Sheets document.

Related n8n Workflows

Free

Nodes: 11 Nodes
Updated: December 26 2025
View all
Created by

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

Featured*