Generate trending X, Facebook, and Threads posts with Apify, Gemini, and Buffer
UnknownUnknown. 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.
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
@apify/n8n-nodes-apify(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
What it does
π 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 one seamless pipeline, helping creators and marketers stay consistent and relevant without manual effort. π― Who is this for - Content creators & social media managers - Agencies managing multiple accounts - Developers building AI-powered automation systems - Anyone who wants to post consistently on trending topics βοΈ What this workflow does 1. Fetches trending topics (e.g., from X or external sources) 2. Filters and formats relevant trends 3. Uses Google Gemini to generate: 4. X (Twitter) tweets 5. Facebook posts 6. Thread posts 6. Formats content for each platform 7. Publishes posts automatically via Buffer API β¨ Key Features - Fully automated content pipeline - Multi-platform posting (X + Facebook + Thread) - AI-generated threads + captions - Easily customizable prompts and filters - Scalable for multiple niches or accounts π§ Setup Instructions 1. Credentials required - Google Gemini API key - Apify API key - Buffer API access token 2. Configuration steps - Add your API credentials to the respective nodes - Customize the prompt templates for your niche - Define your preferred trend source or keywords - Set posting frequency (via Cron or trigger node) 3. Optional customization - Add moderation/approval step before posting - Filter trends by region, hashtags, or keywords - Adjust tone (professional, funny, viral, etc.) and language π§ How it works (high-level) The workflow monitors trending data, processes it into structured input, and feeds it into AI models to generate platform-specific content. The output is then formatted and sent to Buffer for scheduled or immediate publishing. β οΈ Notes & Limitations - AI-generated content may require review for accuracy - Rate limits may apply depending on APIs used - Ensure Buffer supports your connected accounts - Trending data source reliability may vary --- π Need help or want to customize this workflow? πΊ Contact: Fiverr π© Consultation: Book Appointment