Social Media

X (Twitter) Sentiment Monitor

Pulls fresh posts for your keywords from X, skips the ones already seen, scores the sentiment with AI, drafts replies for positive posts, alerts Slack on negative ones and logs everything.

The X (Twitter) Sentiment Monitor workflow on the n8n canvas, with its 15 nodes and connections
The workflow on the n8n canvas. Click to open it full size.

At a glance

Category
Social Media
Nodes
15
Apps
Slack, OpenAI, HTTP
Price
Free
Download JSON
On this page

How it works

  1. On schedule, a scraper fetches recent posts for your search.
  2. Each post is checked against the sheet to skip duplicates.
  3. AI classifies the sentiment.
  4. Positive posts get a drafted reply and negative posts alert Slack.
  5. All results are saved to Google Sheets.

Use cases

  • Brand monitoring
  • PR and crisis alerts
  • Competitor tracking

What you need

This workflow connects to these apps.

  • Slack
  • OpenAI
  • HTTP

You'll need an n8n instance, on n8n Cloud or self-hosted, and these credentials. Our credentials guide shows how to create each one.

  • Google Sheets account
  • OpenAI account
  • Slack account

Data setup

Create these tables with these exact column names before the first run.

TableColumns
Google Map Scraper → Twitter(hashtag)Google SheetsIDTweetUrlTweetTextSentimentPost Reply

Setup

  1. Download the JSON and import it into n8n with Import from File, or copy it and paste it onto an empty canvas. The import guide walks through both.
  2. Connect the credentials listed above.
  3. Point the Sheets, Airtable, Drive, and Slack nodes at your own files and channels.
  4. Replace placeholder emails, phone numbers, and form links with your own.
  5. Times use the America/New York timezone and dates use MM/DD/YYYY. Change them if you need to, then test and activate. The setup guide covers this step by step.

Nodes

NodeType
Loop Over ItemssplitInBatches
OpenAIopenAi
Structured Output ParseroutputParserStructured
Get Post DatagoogleSheets
Sentiment Analystagent
Switch According Analystswitch
Add Post DatagoogleSheets
Schedule TriggerscheduleTrigger
Set Field for Loopset
Send negative post message on slackslack
Request for Twitter Post via ApifyhttpRequest
Get Requested Post from ApifyhttpRequest
OpenAI Chat ModellmChatOpenAi
If Duplicateif

Frequently asked questions

Pulls fresh posts for your keywords from X, skips the ones already seen, scores the sentiment with AI, drafts replies for positive posts, alerts Slack on negative ones and logs everything. It's a 15-node n8n workflow.

An n8n instance, on n8n Cloud or self-hosted, and credentials for Google Sheets, OpenAI, and Slack. It uses only nodes that ship with n8n, so there's nothing else to install.

It works with 1 table in Google Sheets. Create it with the column names listed under Data setup on this page before the first run.

Download the JSON, then in n8n create a new workflow, open the menu in the top right, and choose Import from File. You can also copy the JSON and paste it onto an empty canvas.

Yes. It's free to download, import, and change, with no sign-up. You only pay for the apps it connects to, where those aren't free on your plan.

Keep exploring
  • n8n canvas of the AI Crop Advisory for Farmers workflow

    Agriculture27 nodes

    AI Crop Advisory for Farmers

    Gives farmers practical, AI-generated crop advice based on their soil, crop and live weather. Advice is delivered instantly on sign-up and refreshed daily over WhatsApp.

  • n8n canvas of the AI Email Classifier & Slack Router workflow

    AI Automation11 nodes

    AI Email Classifier & Slack Router

    Reads incoming emails, has AI classify each one (support, sales, billing, HR and so on) and notifies the right team on Slack straight away.

  • n8n canvas of the AI Shopify Product Builder with Review workflow

    E-commerce37 nodes

    AI Shopify Product Builder with Review

    Creates complete Shopify products from a photo or a brief. AI writes the copy, generates images and saves everything for review, and approved products are published automatically.