Developer & DevOps

Fetch Strapi Articles and Auto-Post to X with Sentiment Analysis

14 nodes 314 128 Scheduled trigger
Download

Workflow Description

Scheduled automation that retrieves new articles from Strapi, analyzes their sentiment using Google Cloud Natural Language API, applies conditional filtering, and automatically publishes formatted posts to your X (Twitter) account with optimal engagement strategies.

How it works

  1. 1.Retrieve newly published articles from Strapi CMS database
  2. 2.Analyze content sentiment and tone using Google Cloud Natural Language
  3. 3.Apply conditional logic to filter posts based on quality thresholds
  4. 4.Format tweet content with hashtags, links, and optimized text
  5. 5.Post formatted content to X account automatically

Use cases

  • Auto-distribute blog articles and news updates to X in real-time
  • Maintain consistent multi-channel content strategy for media brands
  • Screen content sentiment before publishing to ensure brand-safe messaging

Requirements

  • Active Strapi instance with configured API endpoints
  • Google Cloud Natural Language API credentials and valid key
  • X (Twitter) account with API write permissions enabled
  • Scheduled trigger timing aligned with article publication frequency

Service Value

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

Apps Used

Strapi Interval Twitter/X Google Cloud Natural Language

Details

Trigger Scheduled trigger
Nodes 14
Apps 4
Views 314
Downloads 128

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 (14)

/

Simplify Result

Set

#1

Store in Strapi

Strapi

#2

Every 30 Minutes

Interval

#3

Is Retweet or Old?

If

#4

Search Tweets

Set

#5

Webhook

Webhook

#6

Simplify Webhook Result

Set

#7

Analyze Form Submission

Google Cloud Natural Language

#8

Analyze Tweet

Google Cloud Natural Language

#9

Merge Form Sentiment with Source

Merge

#10

Merge Tweet Sentiment with Source

Merge

#11

Positive Form Sentiment?

If

#12

Store Form Submission in Strapi

Strapi

#13

Positive Tweet Sentiment?

If

#14