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

Go to Workflow
0 views
Built by Afigo Sam Afigo Sam
Created on June 09, 2026

Description

🚀 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
Fetches trending topics (e.g., from X or external sources)
Filters and formats relevant trends
Uses Google Gemini to generate:
X (Twitter) tweets
Facebook posts
Thread posts
Formats content for each platform
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
Credentials required
Google Gemini API key
Apify API key
Buffer API access token

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)

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

Nodes Used (4)

Code
n8n-nodes-base.code
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
HTTP Request
n8n-nodes-base.httpRequest
MCP Client
@n8n/n8n-nodes-langchain.mcpClient