π Discover viral social media trends with Gemini Flash & Apify scraping
β‘ 818 views Β· π Market Research & Insights
π‘ Pro Tip β Since TikTok doesnβt have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments β drop it into your workflow and skip the parsing.
Description
How it works
This workflow is a professional-grade market intelligence tool designed to bridge the gap between search interest and social media engagement. It automates the end-to-end process of trend discovery and content strategy.
- Detection: Polls Google Trends RSS daily for rising regional search queries.
- Parallel Extraction: Concurrently triggers industrial-grade Apify actors to scrape TikTok, Instagram, and X (Twitter) without the risk of account bans.
- Data Aggregation: Uses custom JavaScript logic to clean and merge disparate data points, optimizing them for LLM processing.
- AI Analysis: Google Gemini Flash analyzes the data to identify core topics, sentiment, and trend strength.
- Granular Delivery: Delivers individual, structured reports for each identified trend directly to Discord via Webhooks.
Set up steps
- API Credentials: Prepare your Apify API Token and Google Gemini API Key.
- Discord Setup: Create a Webhook in your Discord server and paste the URL into the Discord node.
- Regional Configuration: Set your target country code (e.g.,
JP,ID,US) in the βEdit Fieldsβ node at the start of the workflow. - Node Settings: Ensure all scraper nodes are set to βContinue on Failβ to maintain workflow resilience.
Requirements
- Apify Account.
- Google Gemini API Key.
- Discord Server for report delivery.
π Nodes Used
HTTP Request, Discord, Schedule Trigger, AI Agent, Google Gemini Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File