Skip to main content

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

Workflow preview

Generate trending X, Facebook, and Threads posts with Apify, Gemini, and Buffer preview
Open on n8n.io

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

  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
  7. Formats content for each platform
  8. 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
  1. 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)
  1. 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