Data & Databases

Fetch X Tweets, Analyze Sentiment, and Store in MongoDB

9 nodes 106 76 Scheduled trigger
Download

Workflow Description

Automated workflow that retrieves tweets from your X account on a schedule, analyzes their sentiment and content using natural language processing, stores results in MongoDB, and sends regular summaries to Slack for team visibility.

How it works

  1. 1.Schedule trigger executes the workflow at defined intervals
  2. 2.Retrieve tweets from your X account timeline
  3. 3.Analyze text using Google Cloud Natural Language to extract sentiment and entities
  4. 4.Store analyzed data and metadata in MongoDB collection
  5. 5.Send results summary to Slack channel with key insights

Use cases

  • Monitor tweet performance and audience reception automatically
  • Collect social media data for analytics and reporting
  • Build an intelligent archive of tweets with sentiment classification

Requirements

  • Active X (Twitter) account with API access
  • MongoDB database configured and ready
  • Google Cloud Natural Language API credentials
  • Slack workspace with message posting permissions

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 106
Downloads 76

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