Auto-post trending X tweets with Gemini AI images, FLUX and Buffer
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

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
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 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)
Create an Archive in CloudConvert using both upload & import URL methods
Get daily calendar summaries via SMS with Google Calendar, Twilio and Claude AI
Make every product photo look like a luxury ad fully automated AI + google drive
Convert files from Google Drive in ConvertAPI and upload the output to Google Drive
Monitor Google Drive folder for new files and upload them via SFTP
Get qualified leads in one click from Apollo to Airtable
YouTube optimization automation: Google Sheets + DeepSeek integration
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.
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.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you