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.

On this page
How it works
- On schedule, a scraper fetches recent posts for your search.
- Each post is checked against the sheet to skip duplicates.
- AI classifies the sentiment.
- Positive posts get a drafted reply and negative posts alert Slack.
- 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.
| Table | Columns |
|---|---|
| Google Map Scraper → Twitter(hashtag)Google Sheets | IDTweetUrlTweetTextSentimentPost Reply |
Setup
- 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.
- Connect the credentials listed above.
- Point the Sheets, Airtable, Drive, and Slack nodes at your own files and channels.
- Replace placeholder emails, phone numbers, and form links with your own.
- 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
| Node | Type |
|---|---|
| Loop Over Items | splitInBatches |
| OpenAI | openAi |
| Structured Output Parser | outputParserStructured |
| Get Post Data | googleSheets |
| Sentiment Analyst | agent |
| Switch According Analyst | switch |
| Add Post Data | googleSheets |
| Schedule Trigger | scheduleTrigger |
| Set Field for Loop | set |
| Send negative post message on slack | slack |
| Request for Twitter Post via Apify | httpRequest |
| Get Requested Post from Apify | httpRequest |
| OpenAI Chat Model | lmChatOpenAi |
| If Duplicate | if |
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.



