Who is this for? Content creators, marketers, and social media managers who want to turn high-performing YouTube videos into viral X (Twitter) threads using keywords (without manual research). Perfect for anyone looking to systematically create engaging social content from proven video sources. --- What problem does it solve? Finding viral content ideas and writing engaging threads is time-consuming and hit-or-miss. This workflow automates the entire process: discovers high-performing YouTube vi
YouTube Videos to Viral X Threads by Keywords (using Gemini & Claude) is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, LinkedIn, Instagram, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Who is this for? Content creators, marketers, and social media managers who want to turn high-performing YouTube videos into viral X (Twitter) threads using keywords (without manual research). Perfect for anyone looking to systematically create engaging social content from proven video sources. --- What problem does it solve? Finding viral content ideas and writing engaging threads is time-consuming and hit-or-miss. This workflow automates the entire process: discovers high-performing YouTube videos based on your keywords, extracts key insights using AI, and generates multiple viral thread variations using proven patterns from 12.5M+ view threads. --- How it works | # | Node | Purpose | |---|------|---------| | 1 | Form Trigger | Captures your keyword, target audience, and content type preferences. | | 2 | YouTube Video Search | Finds recent videos (April 2025+) matching your keyword, sorted by view count. | | 3 | Get Video Statistics | Fetches detailed metrics (views, engagement) for discovered videos. | | 4 | Filter High-Performers | Keeps only videos with 100K+ views and excludes YouTube Shorts. | | 5 | Top 5 Selection | Limits to the best 2 videos to focus on proven winners. | | 6 | Save Video Candidates | Logs discovered videos to Google Sheets for manual approval. | | 7 | Wait & Check Approval | Pauses 30 seconds, then checks which videos you marked "Yes" for thread generation. | | 8 | Video Analysis (Gemini) | Uses Google's Gemini AI to extract key insights, tools, and strategies from approved videos. | | 9 | Thread Generation (Claude) | Applies viral thread database patterns to create 3 distinct thread variations using Claude Sonnet 4. | | 10 | Structure & Save Threads | Formats the generated threads and saves them back to Google Sheets for review and posting. | --- Setup steps 1. Import & configure credentials Import the JSON workflow into n8n Add your YouTube Data API key (get from Google Cloud Console) Add your Google Gemini API key (get from Google AI Studio) Connect Anthropic API for Claude access Set up Google Sheets OAuth2 credential 2. Create your tracking spreadsheet The workflow auto-creates a sheet with columns: Keyword, Youtube video title, Description, Video URL, Turn into thread?, Thread 1, Thread 2, Thread 3 You'll manually review and mark videos "Yes" in the Turn into thread? column 3. Configure the viral thread database The workflow includes proven patterns from threads with 12.5M+ views Adjust the target audience and content style in the AI prompts if needed 4. Test the workflow Submit the form with a keyword like "AI automation" Check that videos appear in your Google Sheet Mark one "Yes" and verify threads are generated --- Resources YouTube Data API Documentation Google Gemini AI Platform Anthropic Claude API n8n Documentation Viral Thread Generator Demo --- Extending the workflow Auto-posting – Connect X API to automatically post generated threads Competitor tracking – Monitor specific channels for new content opportunities Multi-platform – Adapt threads for LinkedIn, Instagram, or TikTok formats Performance tracking – Log thread performance back to sheets for optimization Webhook triggers – Set up Zapier integration for form submissions from other tools Transform proven YouTube content into viral social media threads—systematically and at scale.
Download the workflow JSON file after purchase.
Open n8n → click the menu → Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
Discover business leads with Gemini, Brave Search and web scraping
Analyze Landing Page with OpenAI and Get Optimization Tips
Prevent duplicate webhook executions with AARI idempotency gate
Generate trend-based marketing videos with Seedance AI, Perplexity, and GPT
Build a voice AI chatbot with ElevenLabs and InfraNodus knowledge experts
Automatically update n8n version
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.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.