Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Monitor Twitter Sentiment with OpenAI and Slack Alerts
On a schedule, the workflow collects posts with Apify, classifies sentiment using OpenAI, logs results in Google Sheets and sends Slack alerts for the posts that matter.
What it does
## Sample Output Sheet - https://docs.google.com/spreadsheets/d/1sOxYQtX-O6p35FCNSRsovKEHL4w4GsfF-ylMVcwpb_E/edit?usp=sharing ## Workflow Summary This n8n workflow is designed to automate the collection, sentiment analysis, and response process for trending content. It uses the Apify API(https://apify.com/) to fetch trending data, performs sentiment analysis, and takes conditional actions based on the results. All outcomes are logged in a Google Sheet for record-keeping and future insights. ## How to Use Apify API in n8n for Trending Data ### API Endpoint Use this Apify Actor to fetch trending data via a POST request *https://api.apify.com/v2/acts/scraper_one~x-posts-search/run-sync?token=YOUR_API_TOKEN* Important: Replace YOUR_API_TOKEN with your actual Apify API token. ### Request Body Format { "search": "YOUR TOPIC", "mode": "latest", "maxItems": 10 }
The steps
- Loop Over Items
- OpenAI
- Structured Output Parser
- Get Post Data
- Sentiment Analyst
- Switch According Analyst
- Add Post Data
- Schedule Trigger
- Set Field for Loop
- Send negative post message on slack
- Request for Twitter Post via Apify
- Get Requested Post from Apify
- OpenAI Chat Model
- If Duplicate
Similar automations
Monitoring, Ops & IncidentsTrack Brand Sentiment on Twitter and Reddit to Slack11 stepsMonitoring, Ops & IncidentsMonitor weekly domain health with Apify, Google Sheets, and Slack11 stepsMonitoring, Ops & IncidentsMonitor Reddit and score leads with Apify, OpenAI, OpenRouter and Slack28 stepsMonitoring, Ops & IncidentsTriage app store reviews with Apify and OpenAI and route alerts to Slack and Sheets20 steps