π Real-time X post monitoring & auto-categorization with Airtop
β‘ 559 views Β· π Market Research & Insights
π‘ Pro Tip β HTTP Request scraping tends to break when sites update their markup. If youβre scraping a major platform, check if ScraperNode covers it β it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
Monitor X for Relevant Posts
Use Case
This automation monitors X (formerly Twitter) search pages in real time and extracts high-signal posts that match your categories of interest. Itβs ideal for community engagement, lead discovery, thought leadership tracking, or competitive analysis.
What This Automation Does
Given a search URL and a list of categories, it:
- Logs into X using Airtop
- Opens the specified search URL
- Scrolls through the results
- Extracts up to 10 valid, English-language posts
- Filters and classifies each post by category (or marks as
[NA]if unrelated) - Returns the structured results as JSON
Input parameters:
- airtop_profile β An Airtop browser profile authenticated on X
- x_url β X search URL (e.g.,
https://x.com/search?q=ai agents&f=live) - relevant_categories β Text-based list of categories to classify posts (e.g., βWeb automation use casesβ, βThought leadershipβ)
Output: A JSON array of posts, each with:
writertimetexturlcategory
How It Works
- Trigger: This workflow is triggered by another workflow (e.g., a community engagement pipeline).
- Input Setup: Accepts the Airtop profile, search URL, and categories to use for classification.
- Session: Starts a browser session using the Airtop profile.
- Window Navigation: Opens the provided X search URL.
- Extraction: Scrapes up to 10 posts with
/status/in the URL and text in English. - Classification: Each post is labeled with a category if relevant, or
[NA]otherwise. - Filtering: Discards
[NA]posts. - Output: Returns the list of classified posts.
Setup Requirements
- Airtop profile with an active X login.
- Airtop API key connected in n8n.
- List of category definitions to guide post classification (used in prompt).
Next Steps
- Feed into Engagement Workflows: Pass the results to workflows that reply, retweet, or track posts.
- Use in Slack Alerts: Push classified posts into Slack channels for review and reaction.
- Customize Classifier: Refine the categorization logic to include sentiment or company mentions.
Read more about Monitoring X for Relevant Posts
π Nodes Used
Execute Workflow Trigger, Filter, Airtop
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File