AutomationMart
Home/Browse/Auto-post trending X tweets with Gemini AI images, FLUX and Buffer
n8n

Auto-post trending X tweets with Gemini AI images, FLUX and Buffer

n8nn8n33 modulesv1.0
Google DriveDropboxGeminiHugging Face

This n8n workflow automatically scrapes X (Twitter) trending topics for any country, generates a pidgin-style tweet and a matching AI image for each trend, then schedules and posts them to X via Buffer — all on a custom schedule. Perfect for social media managers, content creators, and personal brands who want to stay relevant on X without manually tracking trends or writing posts every day. Good to know - The workflow runs 3 times daily by default (8:30am, 12:30pm, 4:30pm). You can adjust the s

At a glance

Auto-post trending X tweets with Gemini AI images, FLUX and Buffer is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Drive, Dropbox, Gemini, Hugging Face. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Drive, Dropbox, Gemini, Hugging Face
Modules
33
Price
Free
Version
v1.0
Auto-post trending X tweets with Gemini AI images, FLUX and Buffer workflow diagram

About this workflow

This n8n workflow automatically scrapes X (Twitter) trending topics for any country, generates a pidgin-style tweet and a matching AI image for each trend, then schedules and posts them to X via Buffer — all on a custom schedule. Perfect for social media managers, content creators, and personal brands who want to stay relevant on X without manually tracking trends or writing posts every day. Good to know - The workflow runs 3 times daily by default (8:30am, 12:30pm, 4:30pm). You can adjust the schedule in the Schedule Trigger node to suit your timezone. - Trends already used in the last 24 hours are automatically skipped to avoid repetition. - If the primary Apify scraper fails, the workflow falls back to Gemini AI search to fetch trends — so it rarely runs dry. - FLUX.1-schnell on HuggingFace is a free-tier model but has rate limits. For higher volume, consider upgrading your HuggingFace plan. How it works - A Schedule Trigger fires 3 times a day and kicks off the Apify Twitter Trending Topics Scraper for your chosen country (default: Nigeria). - If Apify fails or returns no data, Gemini AI searches for current trending topics as a fallback. - Already-used trends are fetched from an n8n Data Table and filtered out so the same trend is never posted twice within 24 hours. - 2 unused trends are randomly picked and passed into a loop. - For each trend, Gemini 2.5 Flash generates a short, engaging pidgin-English tweet (≤275 characters) grounded in live context via Google Search. - FLUX.1-schnell on HuggingFace generates a photorealistic image matching the trend topic. - The image is uploaded to Dropbox and a temporary public URL is extracted. - The tweet and image are posted to X via Buffer MCP on automatic scheduling. - The used trend is saved back to the Data Table with a timestamp to prevent reuse. How to use - Change the country field in both Apify nodes to scrape trends for your own country. - Edit the tweet prompt in the Generate Tweet with Gemini node to match your personal tone, language, or brand voice. - Edit the FLUX image prompt in the Generate Image with FLUX node to change the visual style of generated images. - Run the Create a data table node once manually to set up the trend history table, then disable it. - Replace YOURBUFFERCHANNELID in the Post to X via Buffer node with your actual Buffer channel ID. Requirements - Apify account with the Twitter Trending Topics Scraper actor - Google Gemini API credential - HuggingFace account with an API token (HTTP Bearer Token credential) - Dropbox account (OAuth2) - Buffer account connected to your X profile Customising this workflow - Swap Nigeria for any country supported by the Apify actor to target a different audience. - Replace the pidgin-English tweet prompt with any language or tone — formal English, Yoruba slang, Spanish, etc. - Replace Dropbox with Google Drive or S3 if you prefer a different image storage provider. - Increase the number of picked trends from 2 to more in the Pick Trend node to post more tweets per run. --- 👋 Need help or want to customize this workflow? 📺 Contact: Fiverr 📩 Consultation: Book Appointment

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

🤖 Automated SEO Strategy Generator (BrowserAct + Make + AI)

This workflow creates an automated, end-to-end SEO strategy generator. It is triggered by a Telegram message, where an initial AI Toolkit refines the user's keyword. The system then uses four separate BrowserAct nodes to scrape real-time data from Google, Bing, Brave, and Google Trends. All collected data is synthesized by Google Gemini AI (acting as an expert SEO specialist) and delivered as a structured, mobile-ready keyword report back to the user via Telegram. Key Technologies: Trigger/Deliv

Free

Create an Archive in CloudConvert using both upload & import URL methods

Create an Archive in CloudConvert with files imported from Google Drive and URLs stored in Google Sheets. Upload the output archive to Google Drive.

Free

Get daily calendar summaries via SMS with Google Calendar, Twilio and Claude AI

This free n8n automation helps anyone—from busy parents to entrepreneurs—get a daily SMS summary of their calendar events. It’s a personal assistant that gives you a heads up of what your day will look like. Great for: starting your day cognizant of the day's events, or for the neurodivergent. Example use case: Parent receives a text summarizing the Family Calendar events at 5AM. Its a reminder of a child's doctor appointment at 1PM and soccer practice at 430PM. The AI then ends the mess

Free

Make every product photo look like a luxury ad fully automated AI + google drive

Watch the video to better understand this workflow : ARRE-automation Good to know: This workflow automatically processes product images from Google Drive, generates AI-powered background prompts using multiple AI models (ChatGPT, Claude, or Groq), creates professional background scenes using Pixelcut.ai, and saves enhanced images back to your Google Drive. Perfect for e-commerce businesses and product photography workflows. Who is this for? ➖E-commerce store owners who need professional product

Free

Convert files from Google Drive in ConvertAPI and upload the output to Google Drive

Get files meeting specified criteria in Google Drive, convert them to a specified format and upload the converted files back to Google Drive.

Free

Monitor Google Drive folder for new files and upload them via SFTP

Monitor your Google Drive folder for new files and automatically upload them to an SFTP server. Keep your files organized and accessible.

Free

Get qualified leads in one click from Apollo to Airtable

You Don’t Need More Tools. You Just Need the Right Leads. Why spend $1,000s on lead gen when your perfect leads are already waiting in Apollo? You’ve already filtered the ideal prospects. You know who they are, where they work, and what they do. Now imagine turning that list into enriched, ready-to-contact leads—without paying pricey Apollo's recurring subscription (spoiler: you will pay only 0.60$ per 500 leads). From Filter to Outreach-Ready in Seconds With the Lead Generation System, you just

Free

YouTube optimization automation: Google Sheets + DeepSeek integration

Unlock the full potential of your YouTube channel with our powerful integration that connects Google Sheets and DeepSeek AI — designed to skyrocket your video visibility and engagement without manual hassle. What this integration does for you: Automates video data management by pulling your YouTube URLs straight from Google Sheets — no more copy-pasting or manual tracking. Extracts your current titles and descriptions directly from YouTube, giving you a clear starting point. Generates 3 high

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free