YouTube Videos to Viral X Threads by Keywords (using Gemini & Claude)
Needs changesWhat this workflow does
This AI workflow has 19 nodes and runs when someone submits an n8n form. Along the way it connects Google Sheets and Anthropic Chat Model.
How it runs
Trigger: When someone submits an n8n form.
- Key Word + Audience + Tone (Edit Fields (Set)): sets or maps fields
- Keys: YT + Gemini (Edit Fields (Set)): sets or maps fields
- Get videos (HTTP Request): calls an HTTP API
- Get statistics (HTTP Request): calls an HTTP API
- Split Batch (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Top 5 Videos (Limit): keeps the first few items
- Add to Google Sheets (Google Sheets): uses Google Sheets
- Wait: pauses before continuing
- Check if 'Yes' (Google Sheets): uses Google Sheets
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Create Threads (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Create Threads (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Filter
n8n-nodes-base.filter - Limit
n8n-nodes-base.limit - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - n8n Form Trigger
n8n-nodes-base.formTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait
From the author
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…