Generate trending X, Facebook, and Threads posts with Apify, Gemini, and Buffer
UnknownWhat this workflow does
This AI workflow has 29 nodes and runs on a schedule (cron =0 8,12,16 * * *). Along the way it connects Google Gemini, MCP Client and Apify (community).
How it runs
Trigger: On a schedule (cron =0 8,12,16 * * *).
- Run an Actor and get dataset (Apify): run actor and get dataset
- Extract Trends (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Split Trend Apify (Code): runs custom JavaScript code
- Run an Actor and get dataset (Apify): run actor and get dataset
- Split Trend (Merge): merges the data from its input branches
- Extract Trends (Code): runs custom JavaScript code
- Create a data table (Data table): create (table)
- If: checks a condition and branches into true / false
- Get Used Trends (Data table): get
…plus 18 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Run an Actor and get dataset1, Run an Actor and get dataset2).
Nodes used (10)
- Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - MCP Client
@n8n/n8n-nodes-langchain.mcpClient - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Apify
@apify/n8n-nodes-apify.apify - Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest
From the author
🚀 Overview This workflow automatically discovers trending topics, generates engaging social media content using AI, and publishes posts to X (Twitter) and Facebook via Buffer. It combines trend monitoring + AI content generation + automated publishing into…