Data & Databases

Collect X posts, analyze sentiment, and store in MongoDB with Slack alerts

9 nodes 141 107 Scheduled trigger
Download

Workflow Description

A scheduled automation that retrieves posts from your X account, analyzes their sentiment and language patterns using Google Cloud Natural Language, stores analyzed data in MongoDB, and sends periodic summaries to your Slack workspace for monitoring trends and engagement.

How it works

  1. 1.Trigger the workflow on a defined schedule using Cron expressions
  2. 2.Fetch posts from your X timeline using the Twitter/X API connector
  3. 3.Analyze text sentiment and extract key entities via Google Cloud Natural Language
  4. 4.Store original posts and analysis results in MongoDB collections
  5. 5.Send formatted analysis reports to your designated Slack channel

Use cases

  • Monitor brand mentions and user engagement across your X account with persistent historical records
  • Automatically categorize posts by sentiment to identify positive, negative, or neutral audience reactions
  • Build a searchable archive of your posts with AI-extracted insights for future content strategy analysis

Requirements

  • Active X account with valid API credentials and read permissions
  • MongoDB instance with write access and proper authentication configured
  • Slack workspace with bot token authorized to post messages to channels
  • Google Cloud project with Natural Language API enabled and service account setup

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Twitter/X Postgres MongoDB Slack Google Cloud Natural Language Schedule

Details

Trigger Scheduled trigger
Nodes 9
Apps 6
Views 141
Downloads 107

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (9)

Twitter

Set

#1

Postgres

Postgres

#2

MongoDB

Mongo Db

#3

Slack

Slack

#4

IF

If

#5

NoOp

No Op

#6

Google Cloud Natural Language

Google Cloud Natural Language

#7

Set

Set

#8

Cron

Cron

#9