Create AI-driven social media posts and publish to all major platforms
This n8n template is a complete, two-part social media engine: it automates competitor/inspiration research, uses AI to recreate viral formats for your niche, and handles multi-platform distribution with auto-generated visuals.
Instead of staring at a blank page, this workflow scrapes top-performing content, breaks down the psychological hooks, rewrites it for your specific audience, and drafts a custom text graphic. Once you approve the draft, n8n handles the heavy lifting of posting it everywhere.
You curate and approve. n8n researches, writes, designs, and publishes.
How it works Part 1: Research & Recreating
A scheduled trigger runs daily to pull a target username from your Airtable database. Apify scrapes the latest tweets from that user, filtering out replies and links, and sorts them by the highest view count. An AI Analysis Agent (Gemini) breaks down the top post's structure and creates a reusable template. An AI Writing Agent (GPT) uses that template to write a fresh, original post tailored to your niche. A Caption Agent (GPT) writes an engaging, long-form caption with hooks and hashtags. The draft is saved into Airtable for your review.
Part 2: Auto-Posting & Repurposing
When you change a draft's status to "Approved" in Airtable, the second flow triggers. An AI Image generator creates a sleek text-graphic based on your short post. The image is uploaded to ImgBB to generate a public URL. The pure text version is pushed directly to X (Twitter) and Threads (via authenticated HTTP requests). The generated image and long-form caption are published to LinkedIn, Facebook, and Instagram. Finally, the Airtable record is marked as "Posted."
How to use
Set up an Airtable base with your target usernames and a table for content drafts. Update the AI Agent system prompts (Writing and Caption) to match your specific target audience, expertise, and tone. Connect all your platform credentials in n8n (ensure you use the credential manager for the HTTP nodes, like HTTP Header Auth for Threads and Query Auth for ImgBB—no hardcoded API keys!). Let the schedule scrape and draft content for you. Simply mark a draft as "Approved" in Airtable when you want it to go live.
What you get
Automated viral content research and curation AI-driven structural analysis and rewriting Auto-generated text-graphics for visual platforms Hands-free publishing to 5 platforms (X, Threads, IG, FB, LinkedIn) A centralized content approval system
Requirements
Airtable account Apify account (Twitter Scraper actor) OpenAI & Google Gemini API credentials ImgBB account X (Twitter), Threads, LinkedIn, Facebook, and Instagram accounts
Need help tweaking the AI agents for your specific funnel?
Ask in the n8n Forum or shoot me a DM on LinkedIn
Happy automating 🚀
Tags
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
📰 AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments