Discover Viral Social Media Trends with Gemini Flash & Apify Scraping

Go to Workflow
0 views
Built by Aslamul Fikri Alfirdausi Aslamul Fikri Alfirdausi
Created on June 15, 2026

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 (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Discord
n8n-nodes-base.discord
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
HTTP Request
n8n-nodes-base.httpRequest