Scrape Twitter for mentions of company

Scrape Twitter for mentions of your company every 10 minutes, automatically filtering and posting new tweets to a designated Slack channel. Stay updated on brand engagement effortlessly, enhancing communication and response times.

7/8/2025
7 nodes
Medium
schedulemediumtwitterslackautomationlogicconditionalcommunicationnotification
Categories:
Communication & MessagingSchedule TriggeredMedium WorkflowSocial Media Management
Integrations:
TwitterSlack

Target Audience

Who Should Use This Workflow


- Social Media Managers: To keep track of mentions and engage with users efficiently.
- Marketing Teams: To monitor brand reputation and customer feedback in real-time.
- Customer Support Teams: To respond quickly to customer inquiries or issues raised on Twitter.
- Business Owners: To stay informed about public perception and brand mentions without manual checking.

Problem Solved

What Problem Does This Workflow Solve


- Time Consumption: Manually monitoring Twitter for mentions can be time-consuming. This workflow automates the process, running every 10 minutes.
- Missed Opportunities: By automating tweet monitoring, businesses can avoid missing important mentions that require immediate attention.
- Communication Gaps: Ensures that relevant mentions are shared instantly on Slack, keeping teams informed and responsive.

Workflow Steps

Detailed Explanation of the Workflow Process


1. Setup Node: Initializes the workflow with parameters such as the Slack channel and the Twitter search value (e.g., @n8n_io).
2. Run Every 10 Minutes: Triggers the workflow to run at a fixed interval of 10 minutes.
3. Now - 10 Minutes Node: Calculates the current time minus 10 minutes to filter tweets based on their creation time.
4. Get Last 50 Mentions: Retrieves the last 50 mentions of the specified Twitter handle.
5. Created Since Last Run?: Checks if any of the retrieved tweets were created after the last run time to ensure only new mentions are processed.
6. Filter Tweet Data: Extracts relevant tweet information such as the tweet text and its URL.
7. Post to Slack: Sends a notification to the specified Slack channel with the new mention details, including a link to the tweet.

Customization Guide

How Users Can Customize and Adapt This Workflow


- Change Twitter Handle: Modify the twitterSearchValue in the Setup node to track different Twitter handles or keywords.
- Adjust Slack Channel: Update the slackChannel parameter to send notifications to a different Slack channel.
- Alter Frequency: Change the interval in the Run Every 10 Minutes node to a different time frame, such as every 5 or 15 minutes, depending on the need for monitoring.
- Additional Filters: Add more conditions in the Created Since Last Run? node to filter tweets based on specific criteria, like hashtags or keywords.