This workflow corresponds to n8n.io template #4974 — we link there as the canonical source.
This workflow follows the Agent → Form Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "V9X85ydQmlkM8yhA",
"name": "YouTube Keyword -> X Thread",
"tags": [],
"nodes": [
{
"id": "3434ce2c-2c06-40fe-99cc-12061d75cad3",
"name": "Filter High-Performing Videos",
"type": "n8n-nodes-base.filter",
"position": [
1400,
160
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "f3283a02-4800-4a88-844e-631ec28819a4",
"name": "Top 5 Videos",
"type": "n8n-nodes-base.limit",
"position": [
1620,
160
],
"parameters": {},
"typeVersion": 1
},
{
"id": "44f42198-ea4f-4287-af3a-2803b59123d6",
"name": "Structure Thread Data",
"type": "n8n-nodes-base.code",
"position": [
3780,
160
],
"parameters": {},
"typeVersion": 2
},
{
"id": "279bdd2d-192e-46b4-a9c6-e560882cad9e",
"name": "Save to Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
4000,
160
],
"parameters": {},
"typeVersion": 4
},
{
"id": "40b4834f-483e-4062-8d37-43f79f5ed198",
"name": "Get videos",
"type": "n8n-nodes-base.httpRequest",
"position": [
740,
160
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "2cf127e3-d349-40e6-9529-b432003cecf2",
"name": "Get statistics",
"type": "n8n-nodes-base.httpRequest",
"position": [
960,
160
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "0a72dcbe-701f-44ab-8e4c-06fe20b35399",
"name": "Anthropic Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"position": [
3380,
320
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "fa98a773-029d-4caa-9677-4103ca5e1477",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
-20,
160
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "0ba3c06e-3aa5-4008-84a7-f266de700095",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9f27c6d7-58fb-43e3-a454-46692c3b371a",
"name": "Add context file",
"type": "n8n-nodes-base.code",
"position": [
3180,
160
],
"parameters": {},
"typeVersion": 2
},
{
"id": "94b092a3-8a50-40d6-b045-3f7de66e96d6",
"name": "Clean data",
"type": "n8n-nodes-base.code",
"position": [
2960,
160
],
"parameters": {},
"typeVersion": 2
},
{
"id": "a8a4abe7-3a20-46f2-8539-d170047c9ff3",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
700,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ac1c6941-e651-42e4-8ff9-6803bd84d037",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1800,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5c8c571d-676a-4e17-ab98-40d5d0bccb1d",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2680,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "6e302241-7d14-4de3-bcc8-852b40e76db3",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
3740,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "86dc0609-4a1b-4dfe-adfc-220e45af16ac",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
3140,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a4fe3cb6-a467-492c-b0d6-94692c44ec4e",
"name": "Split Batch",
"type": "n8n-nodes-base.code",
"position": [
1180,
160
],
"parameters": {},
"typeVersion": 2
},
{
"id": "c0825b3d-e0a5-4922-90fa-7faf3cff8513",
"name": "Add to Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
1840,
160
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "004844d5-0ef8-4d4a-bb70-b7896d46a99f",
"name": "Extract Video Summary",
"type": "n8n-nodes-base.httpRequest",
"position": [
2740,
160
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "faa5d193-070b-45bb-8d75-a34b5fb083e0",
"name": "Create Threads",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
3400,
160
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "ab3fb889-8b41-448b-8404-dce8946ed62b",
"name": "Key Word + Audience + Tone",
"type": "n8n-nodes-base.set",
"position": [
240,
160
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "c53a959b-01c8-4126-9529-f0be1c9d7763",
"name": "Keys: YT + Gemini",
"type": "n8n-nodes-base.set",
"position": [
500,
160
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "fa3d936f-8080-4b45-8814-f72fd1d2fd2e",
"name": "Wait 30s",
"type": "n8n-nodes-base.wait",
"position": [
2060,
160
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "c9270f5e-deb2-482e-928b-7a9f8d35cf69",
"name": "Filter by 'Yes'",
"type": "n8n-nodes-base.filter",
"position": [
2520,
160
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "b72bd25b-dfde-4beb-b0ea-2fc06a53049b",
"name": "Check if 'Yes'",
"type": "n8n-nodes-base.googleSheets",
"position": [
2300,
160
],
"parameters": {},
"typeVersion": 4.5
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "d3d075a0-7586-43c1-a73b-4b1e9790f1a5",
"connections": {
"Wait 30s": {
"main": [
[
{
"node": "Check if 'Yes'",
"type": "main",
"index": 0
}
]
]
},
"Clean data": {
"main": [
[
{
"node": "Add context file",
"type": "main",
"index": 0
}
]
]
},
"Get videos": {
"main": [
[
{
"node": "Get statistics",
"type": "main",
"index": 0
}
]
]
},
"Split Batch": {
"main": [
[
{
"node": "Filter High-Performing Videos",
"type": "main",
"index": 0
}
]
]
},
"Top 5 Videos": {
"main": [
[
{
"node": "Add to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Check if 'Yes'": {
"main": [
[
{
"node": "Filter by 'Yes'",
"type": "main",
"index": 0
}
]
]
},
"Create Threads": {
"main": [
[
{
"node": "Structure Thread Data",
"type": "main",
"index": 0
}
]
]
},
"Get statistics": {
"main": [
[
{
"node": "Split Batch",
"type": "main",
"index": 0
}
]
]
},
"Filter by 'Yes'": {
"main": [
[
{
"node": "Extract Video Summary",
"type": "main",
"index": 0
}
]
]
},
"Add context file": {
"main": [
[
{
"node": "Create Threads",
"type": "main",
"index": 0
}
]
]
},
"Keys: YT + Gemini": {
"main": [
[
{
"node": "Get videos",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Key Word + Audience + Tone",
"type": "main",
"index": 0
}
]
]
},
"Add to Google Sheets": {
"main": [
[
{
"node": "Wait 30s",
"type": "main",
"index": 0
}
]
]
},
"Anthropic Chat Model": {
"ai_languageModel": [
[
{
"node": "Create Threads",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Extract Video Summary": {
"main": [
[
{
"node": "Clean data",
"type": "main",
"index": 0
}
]
]
},
"Structure Thread Data": {
"main": [
[
{
"node": "Save to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Key Word + Audience + Tone": {
"main": [
[
{
"node": "Keys: YT + Gemini",
"type": "main",
"index": 0
}
]
]
},
"Filter High-Performing Videos": {
"main": [
[
{
"node": "Top 5 Videos",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
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.
Source: https://n8n.io/workflows/4974/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
This template requires a self-hosted n8n instance to run.
A complete n8n automation that discovers TikTok influencers using Bright Data, evaluates their fit using Claude AI, and sends personalized outreach emails. Designed for marketing teams and brands that
Automatically scrape YouTube videos by keyword, generate SEO blog posts with Claude AI, and publish to Blogger with tracking.
Content creators, marketers, and video editors who want to automatically extract highlight clips from YouTube videos using natural language descriptions—no manual timestamp hunting required.