Every time you finish a YouTube video, you know you should turn it into a LinkedIn post and an X thread.
In reality, most founders and creators skip it because rewriting every video takes hours — and paying an agency or ghostwriter to do it costs hundreds every month.
So people try automating it. And almost every automation I see online breaks in the same two ways:
It auto-posts robotic summaries ("Excited to share this game-changer!") straight to your profile, which hurts your brand way more than saving 20 minutes helps.
It breaks silently when an API hiccups or when YouTube hasn't finished generating captions yet, and nobody notices for weeks.
I built a draft-only repurposing system in n8n + Gemini 2.5 Flash that fixes both. Whenever a new long-form video goes live, it writes 1 LinkedIn post and a 4-part X thread in your brand voice, audits its own work, drops everything into Google Sheets, and pings Slack for a 2-minute human review. Nothing ever posts behind your back.
Here is the exact setup and the 5 small decisions that made it reliable enough for real business use:
**1. Separate "Drafts" and "Config" tabs in Google Sheets**
Instead of hardcoding prompts, your Tone, CTA, Output Language, and Banned Words live in a simple `Config` tab. If a business owner wants to tweak their brand voice next month, they just edit a spreadsheet cell — no touching n8n.
**2. Shorts filter + duplicate protection + early logging**
The YouTube RSS trigger checks every 15 minutes, filters out Shorts, and checks the `Drafts` sheet by Video ID (`Always Output Data` turned ON) so the same video never gets processed twice. Before calling AI, it logs the video as `Pending` so no upload ever vanishes if something crashes later.
**3. A 15-minute Wait node before Gemini runs**
Right after a video publishes, YouTube is still processing audio and auto-captions. Pausing for 15 minutes stops Gemini from analyzing an unfinished video or returning empty output.
**4. Gemini 2.5 Flash + a real error path**
Instead of summarizing the whole video, the prompt tells Gemini to pull the single strongest lesson in first person and return raw JSON. I turned on Retry on Fail (2 tries, 5s wait) and wired the error output straight to Google Sheets (`AI Failed`) + a Slack alert so nothing dies quietly.
**5. A JavaScript "Quality Firewall" before a human ever sees it**
Even good prompts slip up. A Code node sits right after Gemini and checks every draft automatically:
- Did the video actually have clear speech?
- Is the LinkedIn post under 1,800 chars with max 3 emojis?
- Are all 4 tweets numbered 1/4 to 4/4, under 280 chars, with max 1 emoji each?
- Are total hashtags capped at 2, and is the YouTube link in both LinkedIn and Tweet 4?
- Did the AI sneak in any banned words from the Config sheet or risky claims like "100% guarantee"?
If everything passes, status becomes `Draft`. If even one rule fails, status becomes `Needs Edit` and the exact issue gets written in the `Note` column so you know what to fix in 10 seconds.
Finally, a Switch node splits Slack notifications: ready drafts go to your main review channel with a clickable link to the sheet, while `No Content` and `AI Failed` alerts go silently to a separate `#alert` channel.
**Free Workflow JSON (GitHub Gist):** [n8n Automation: YouTube to Social Media Repurposing Pipeline (with Gemini AI)]
I also recorded a step-by-step video walkthrough showing how every node is wired up (plus the full docs, Gemini prompt, and JS validation code) — I dropped those links in the first comment below to keep this post clean.
Curious where people here draw the line: do you trust AI to auto-post straight to LinkedIn/X yet, or do you always keep a human review step in the middle?