Generate trending X, Facebook, and Threads posts with Apify, Gemini, and Buffer
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Overview
π 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