🎬 YouTube Videos to Viral X Threads by Keywords (using Gemini & Claude)

⚡ 235 views · 🎬 Content Creation & Video

💡 Pro Tip — Since TikTok doesn’t have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments — drop it into your workflow and skip the parsing.

View All Scrapers

Description

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

#NodePurpose
1Form TriggerCaptures your keyword, target audience, and content type preferences.
2YouTube Video SearchFinds recent videos (April 2025+) matching your keyword, sorted by view count.
3Get Video StatisticsFetches detailed metrics (views, engagement) for discovered videos.
4Filter High-PerformersKeeps only videos with 100K+ views and excludes YouTube Shorts.
5Top 5 SelectionLimits to the best 2 videos to focus on proven winners.
6Save Video CandidatesLogs discovered videos to Google Sheets for manual approval.
7Wait & Check ApprovalPauses 30 seconds, then checks which videos you marked “Yes” for thread generation.
8Video Analysis (Gemini)Uses Google’s Gemini AI to extract key insights, tools, and strategies from approved videos.
9Thread Generation (Claude)Applies viral thread database patterns to create 3 distinct thread variations using Claude Sonnet 4.
10Structure & Save ThreadsFormats the generated threads and saves them back to Google Sheets for review and posting.

Setup steps

  1. Import & configure credentials
  1. Create your tracking spreadsheet
  1. Configure the viral thread database
  1. Test the workflow

Resources


Extending the workflow

Transform proven YouTube content into viral social media threads—systematically and at scale.

đź”— Nodes Used

Google Sheets, HTTP Request, Filter, AI Agent, Anthropic Chat Model, n8n Form Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup