X and form webhook sentiment filtering into Strapi CMS
This deterministic n8n workflow combines two intake streams into Strapi CMS. An interval trigger searches X every 30 minutes and drops retweets and older posts, while a POST webhook captures form submissions. Both streams pass through Google Cloud Natural Language sentiment scoring so only positive items save to Strapi.
- Catalogue ID
- #0183
- Functional nodes
- 14
- Connections
- 14
- Trigger
- interval, webhook
- AI layer
- Deterministic
Business problem solved
Curating social proof from X mentions and feedback forms manually forces marketing teams to read noisy retweets and off-topic submissions. Publishing unmoderated mentions straight to a CMS risks surfacing negative feedback publicly.
Trigger
A 30-minute interval trigger searches X mentions while a POST webhook receives form submissions.
Connected systems
- X (Twitter)
- Webhook endpoint
- Google Cloud Natural Language
- Strapi CMS
- Interval trigger
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow architecture
- 1. Simplify Result (Service and data) (connects to Is Retweet or Old?)
- 2. Store in Strapi (Service and data)
- 3. Every 30 Minutes (Trigger) (connects to Search Tweets)
- 4. Is Retweet or Old? (Logic and routing) (connects to Analyze Tweet, Merge Tweet Sentiment with…)
- 5. Search Tweets (Service and data) (connects to Simplify Result)
- 6. Webhook (Trigger) (connects to Simplify Webhook Result)
- 7. Simplify Webhook Result (Service and data) (connects to Analyze Form Submission, Merge Form Sentiment with…)
- 8. Analyze Form Submission (Service and data) (connects to Merge Form Sentiment with…)
- 9. Analyze Tweet (Service and data) (connects to Merge Tweet Sentiment with…)
- 10. Merge Form Sentiment with… (Logic and routing) (connects to Positive Form Sentiment?)
- 11. Merge Tweet Sentiment with… (Logic and routing) (connects to Positive Tweet Sentiment?)
- 12. Positive Form Sentiment? (Logic and routing) (connects to Store Form Submission in…)
- 13. Store Form Submission in… (Service and data)
- 14. Positive Tweet Sentiment? (Logic and routing) (connects to Store in Strapi)
- Trigger
- AI layer
- Logic and routing
- Service and data
Node positions and directed links are generated from the verified catalogue record.
Workflow steps
- 01
X search and freshness filtering
Every 30 minutes, X search pulls recent English mentions, strips links and filters out retweets or older entries.
- 02
Form webhook normalisation
The POST webhook captures form author and message fields into a consistent content structure.
- 03
Google Cloud Natural Language scoring
Both branches run through Google Cloud Natural Language and merge sentiment scores back with source metadata.
- 04
Threshold filtering into Strapi
Tweets scoring above 0.3 and form entries above 0.4 are written cleanly into the Strapi posts collection.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow contains zero node-level error flags across its 14 functional nodes and 14 connections.
Production layer added by ALTAI
During live deployment, ALTAI saves Strapi items in draft status behind editorial approval, adds webhook signature verification, duplicate URL locks and an API error queue.
X and webhook sentiment to Strapi Frequently asked questions
In production we store items in Strapi as unpublished drafts so an editor reviews and approves every testimonial before display.
Yes. Threshold values in the conditional nodes are tuned against sample mentions during onboarding.
Yes. Swapping Google Cloud Natural Language for a multilingual structured classification node supports Turkish, Dutch and other languages.
Related n8n workflows
X search to Airtable log
Searches X posts for a tracked term, compares Tweet IDs against existing Airtable records and appends only new entries.
X mention alerts to RocketChat
Polls X mentions via cron, deduplicates seen Tweet IDs using workflow static memory and posts unseen mention links to RocketChat.
Facebook page comments collector
Fetches recent Facebook Page posts via Graph API, collects per-post comments with 1 built-in error flag, filters empty replies and merges output.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms