📊 X (Twitter) brand sentiment analysis with Gemini AI & Slack alerts

127 views · 📊 Market Research & Insights

💡 Pro Tip — Twitter’s API is paid now, which makes simple data pulls expensive. ScraperNode is a community node that scrapes Twitter profiles and posts without needing API access.

View All Scrapers

Description

This workflow is the AI analysis and alerting engine for a complete social media monitoring system. It’s designed to work with data scraped from X (formerly Twitter) using a tool like the Apify Tweet Scraper, which logs the data into a Google Sheet. The workflow then automatically analyzes new tweets with Google Gemini and sends tailored alerts to Slack.

How it works

This workflow automates the analysis and reporting part of your social media monitoring:

Set up steps

It should take about 5-10 minutes to get this workflow running.

  1. Prerequisite - Data Source: Ensure you have a Google Sheet being populated with tweet data. For a complete automation, you can set up a new google sheet with the same structure for saving the tweets data and run the Tweet Scraper on a schedule.
  2. Configure Credentials: Make sure you have credentials set up in your n8n instance for Google Sheets, Google Gemini (PaLM) API, and Slack.
  3. Google Sheets Node (“Get row(s) in sheet”):
    • Select your Google Sheet containing the tweet data.
    • Choose the specific sheet name from the dropdown.
    • Ensure your sheet has a column named action taken so the filter works correctly.
  4. Google Gemini Chat Model Node: Select your Google Gemini credential from the dropdown.
  5. Slack Nodes (“Send a message” & “Send a message1”):
    • In the first Slack node, choose the channel for the summary report.
    • In the second Slack node, choose the channel for urgent alerts.
  6. Save and Activate: Once configured, save your workflow and turn it on!

🔗 Nodes Used

Google Sheets, HTTP Request, Slack, Schedule Trigger, AI Agent, Basic LLM Chain

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup