Set Automate

Set Automate streamlines content management by automatically searching Twitter for relevant posts every 30 minutes, filtering out retweets and old tweets, and storing positive sentiment content in Strapi. It enhances engagement by analyzing user submissions and tweets for sentiment, ensuring only valuable insights are captured and stored efficiently.

7/8/2025
14 nodes
Medium
webhookmediumstrapiintervaltwittergooglecloudnaturallanguageadvancedlogicconditionalintegrationapi
Categories:
Webhook TriggeredMedium WorkflowCreative Content & Video AutomationSocial Media Management
Integrations:
StrapiIntervalTwitterGoogleCloudNaturalLanguage

Target Audience

  • Social Media Managers: To automate the process of monitoring and storing relevant tweets about their brand or topics of interest.
    - Content Creators: To gather insights and sentiment from tweets and form submissions, aiding in content strategy.
    - Developers: Those looking to integrate Twitter data into their applications or websites using Strapi.
    - Marketing Teams: To analyze public sentiment and engagement around their campaigns in real-time.
  • Problem Solved

    This workflow automates the collection and analysis of tweets related to specific topics, allowing users to efficiently gather valuable insights without manual effort. It also integrates form submissions, providing a comprehensive view of user sentiment and feedback, which can enhance decision-making and content creation.

    Workflow Steps

  • Webhook Trigger: The workflow starts when a webhook receives a POST request, capturing data from form submissions.
    - Simplify Webhook Result: The data is simplified to extract relevant fields like Content, Author, and Created timestamp.
    - Analyze Form Submission: The Google Cloud Natural Language service analyzes the sentiment of the form submission content.
    - Search Tweets: Every 30 minutes, the workflow searches for recent tweets containing specific keywords (like 'strapi' or 'n8n.io').
    - Simplify Result: The tweets are simplified to focus on Content, Author, Created date, and URL.
    - Check for Retweets or Old Tweets: The workflow checks if the tweets are retweets or older than 30 minutes to filter out less relevant content.
    - Analyze Tweet: For relevant tweets, the sentiment is analyzed using Google Cloud Natural Language.
    - Merge Sentiment Results: The sentiment analysis results from both form submissions and tweets are merged for comprehensive insights.
    - Store in Strapi: Finally, if the sentiment for either the form submission or the tweet is positive, the relevant data is stored in a Strapi content type called 'posts'.
  • Customization Guide

  • Adjust Search Keywords: Modify the searchText parameter in the Search Tweets node to target different topics or hashtags.
    - Change Analysis Thresholds: Update the sentiment score thresholds in the Positive Form Sentiment? and Positive Tweet Sentiment? nodes to fit your specific criteria for what constitutes 'positive' sentiment.
    - Edit Storage Options: Customize the columns parameter in the Store in Strapi and Store Form Submission in Strapi nodes to include additional fields or change the content type as needed.
    - Modify Interval Timing: Adjust the interval parameter in the Every 30 Minutes node to change how frequently the workflow searches for new tweets.