Templates / Generate trending X, Facebook, and Threads posts with Apify, Gemini, and Buffer

Generate trending X, Facebook, and Threads posts with Apify, Gemini, and Buffer

Unknown

by Afigo Sam ✓ · 263 views · created 2026-04-09 · Social Media, Multimodal AI

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What 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 * * *).

  1. Run an Actor and get dataset (Apify): run actor and get dataset
  2. Extract Trends (Code): runs custom JavaScript code
  3. If: checks a condition and branches into true / false
  4. Split Trend Apify (Code): runs custom JavaScript code
  5. Run an Actor and get dataset (Apify): run actor and get dataset
  6. Split Trend (Merge): merges the data from its input branches
  7. Extract Trends (Code): runs custom JavaScript code
  8. Create a data table (Data table): create (table)
  9. If: checks a condition and branches into true / false
  10. Get Used Trends (Data table): get

…plus 18 more steps. See the full node list below.

Services it uses

Google GeminiMCP ClientApify (community)

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)

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…

Excerpt from Afigo Sam's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.