Back to Templates

Discover Viral Social Media Trends with Gemini Flash & Apify Scraping

Last update

Last update 10 hours ago

Share


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.

  1. Detection: Polls Google Trends RSS daily for rising regional search queries.
  2. Parallel Extraction: Concurrently triggers industrial-grade Apify actors to scrape TikTok, Instagram, and X (Twitter) without the risk of account bans.
  3. Data Aggregation: Uses custom JavaScript logic to clean and merge disparate data points, optimizing them for LLM processing.
  4. AI Analysis: Google Gemini Flash analyzes the data to identify core topics, sentiment, and trend strength.
  5. Granular Delivery: Delivers individual, structured reports for each identified trend directly to Discord via Webhooks.

Set up steps

  1. API Credentials: Prepare your Apify API Token and Google Gemini API Key.
  2. Discord Setup: Create a Webhook in your Discord server and paste the URL into the Discord node.
  3. Regional Configuration: Set your target country code (e.g., JP, ID, US) in the "Edit Fields" node at the start of the workflow.
  4. 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.