Reddit Content Sentiment Analysis with Deepseek AI - n8n Workflow

Use this advanced n8n workflow to automate Reddit data extraction and sentiment analysis. Integrate the OpenRouter n8n node with Deepseek AI to classify comments and posts efficiently.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Market researchers needing rapid sentiment analysis on specific subreddits.

  • Data scientists looking for ready-to-use n8n templates for social media monitoring.

  • Developers building analytical dashboards who require structured data output from unstructured text.

  • Anyone seeking to leverage the power of an OpenRouter n8n node for large-scale text classification.

Overview

Monitoring public sentiment on social platforms like Reddit is crucial for brand management and market intelligence. However, manually sorting through thousands of posts and comments is infeasible. This powerful n8n workflow solves this by providing a fully automated pipeline, triggered by an external webhook, that extracts relevant Reddit data. It utilizes the specialized OpenRouter Chat Model n8n node to connect to advanced LLMs (like Deepseek) for highly accurate sentiment analysis.

This n8n workflow is designed for high throughput, using the Loop Over Items n8n node to efficiently process many comments. The result is structured, quantifiable sentiment data, making it one of the most valuable n8n templates for social listening and data extraction.

How it Works

The entire process is initiated by an external Webhook n8n trigger, making it easily integrated into larger systems or scheduled tasks.


  1. Trigger & Post Extraction: The Webhook n8n trigger starts the execution. It immediately proceeds to the Get many posts n8n node, which retrieves a list of targeted Reddit posts (e.g., from a specific subreddit).

  2. Data Preparation: The Split Out n8n node ensures each post is treated individually for subsequent processing.

  3. Comment Extraction: The Get many comments in a post n8n node fetches all associated comments for the previously split post item.

  4. Batch Processing: The Loop Over Items n8n node manages iteration, ensuring every single comment item is passed through the analysis pipeline.

  5. AI Sentiment Analysis: The core logic resides in the Sentiment Analyzer n8n node (a LangChain component) which uses the configured OpenRouter Chat Model1 n8n node to classify the sentiment (positive, negative, neutral) of the comment text.

  6. Structured Output: Following sentiment classification, the Structured Data Generator n8n node structures the results into a clean format (e.g., JSON), ensuring the output is immediately useful for databases or dashboards.

  7. Finalization & Response: A final Code n8n node can perform aggregation or final cleanup before the Respond to Webhook n8n node sends the comprehensive analysis data back to the system that initiated this automated n8n workflow.

Installation Guide

To deploy this n8n workflow template successfully, follow these steps:


  1. Import the Workflow: Copy the provided JSON data and import it directly into your n8n instance via the 'New' menu -> 'Import from JSON'.

  2. Configure Reddit Credentials: Click the 'Get many posts' n8n node and set up your Reddit API credentials (or use existing ones). This requires a Reddit App registration.

  3. Configure OpenRouter Credentials: Locate the OpenRouter Chat Model1 n8n node. You will need to create a credential resource for OpenRouter, providing your API key. Ensure the selected model supports structured output for best results with the Structured Data Generator n8n node.

  4. Activate the Webhook: After saving the n8n workflow, click the 'Webhook' n8n trigger and copy the test or production URL. This URL is used to start the automation.

  5. Activate Workflow: Ensure the n8n workflow is activated (toggle switch in the top right) to listen for incoming webhook requests.

Node Details

Webhook (n8n trigger): The entry point for the n8n workflow, allowing external systems to initiate the sentiment analysis process.
Get many posts (Reddit n8n node): Connects to the Reddit API to pull a list of recent posts based on specified parameters (e.g., subreddit, sorting method).
Get many comments in a post (Reddit n8n node): Fetches all available comments for a given post ID passed down from the previous n8n node.
Split Out (n8n node): Essential for breaking down aggregated data arrays into individual items, ensuring the downstream nodes process one item at a time.
OpenRouter Chat Model1 (n8n node): Configures the LLM connection, specifying the Deepseek model or similar provider via the OpenRouter service, providing the intelligence for the analysis chain.
Sentiment Analyzer (LangChain n8n node): Uses the OpenRouter model to execute a prompt specifically designed for sentiment classification on the extracted Reddit text content.
Structured Data Generator (LangChain n8n node): Another AI-driven n8n node responsible for formatting the analyzed data into a predictable JSON schema, greatly enhancing data usability.
Respond to Webhook (n8n node): Closes the communication loop, sending the final, analyzed, structured data back to the calling service, completing the powerful n8n workflow.

Related n8n Workflows

Paid

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

Gerald Akhidenor is an AI Automation Lead Creative with 5 years of experience in AI automation consultancy. He specializes in n8n and API integrations, driving innovative automation solutions. As founder of DominixAI, Gerald combines creative vision and technical expertise to streamline processes and boost efficiency through cutting-edge AI technologies. Website: https://dominixai.com JobMonkey: https://trafficabc.com/jobmonkey-application-generator/

Featured*