YouTube ショート動画脚本の自動化
中級
これはContent Creation, Multimodal AI分野の自動化ワークフローで、11個のノードを含みます。主にSet, Telegram, Supadata, TelegramTrigger, ChainLlmなどのノードを使用。 Gemini AIとTelegramを使って動画リンクからYouTubeショートビデオスクリプトを作成
前提条件
- •Telegram Bot Token
- •Google Gemini API Key
使用ノード (11)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "0b3sNR7VKXCSn2Fq",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "YT script automation",
"tags": [],
"nodes": [
{
"id": "fc5a9462-5e0c-4425-9e24-bf7794da0974",
"name": "要約送信",
"type": "n8n-nodes-base.telegram",
"position": [
980,
400
],
"parameters": {
"text": "={{ $json.output.title }}\n\n{{ $json.output.script }}",
"chatId": "={{ $('Input URL').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "hL07rM7CcHcgYZre",
"name": "youtube_script_maker_bot"
}
},
"typeVersion": 1.2
},
{
"id": "be08404f-7005-46dc-bda0-9fa3bcd638f9",
"name": "URL入力",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
0,
400
],
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "hL07rM7CcHcgYZre",
"name": "youtube_script_maker_bot"
}
},
"typeVersion": 1.2
},
{
"id": "9a74e5e6-e063-4c2d-aeeb-f627a1c8a878",
"name": "Make 文字起こし",
"type": "n8n-nodes-supadata.supadata",
"position": [
160,
400
],
"parameters": {
"videoId": "={{ $json.message.text }}",
"operation": "getTranscript"
},
"credentials": {
"supadataApi": {
"id": "3CjkrDlWjpILdztV",
"name": "Supadata account"
}
},
"typeVersion": 1
},
{
"id": "1fc965aa-ed57-48b5-8185-1e163a9dd7b2",
"name": "解析",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
800,
580
],
"parameters": {
"jsonSchemaExample": "{\n \"title\": \"ここに動画のタイトルが入ります\",\n \"script\": \"ここに動画の台本(全文)が入ります\"\n}"
},
"typeVersion": 1.2
},
{
"id": "d7699f35-e66d-43ae-b0e7-5182cf89b6f0",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
320
],
"parameters": {
"color": 5,
"width": 600,
"height": 340,
"content": "## Get Video Link and Transcribe Video"
},
"typeVersion": 1
},
{
"id": "acd8d2c1-1949-4ac5-a788-69fe154d1fca",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
560,
320
],
"parameters": {
"color": 5,
"width": 620,
"height": 420,
"content": "## AI PARSING & Send Script"
},
"typeVersion": 1
},
{
"id": "6630067d-5175-41f5-be71-833f27c43cb1",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
540,
100
],
"parameters": {
"color": 7,
"width": 640,
"height": 200,
"content": "## This Template is Free✨\n\n### Have any request, contact me [Here](https://x.com/taiki_16_k)"
},
"typeVersion": 1
},
{
"id": "7c9fb068-f93d-4836-be6d-031a1a96cafc",
"name": "スクリプトマッピング",
"type": "n8n-nodes-base.set",
"position": [
320,
400
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f523292a-168d-4f06-9d99-5d5969b1b09e",
"name": "full_script",
"type": "string",
"value": "={{ $json.content.map(item => item.text).join('\\n') }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c5c3e290-df5b-43b7-a2b8-1aaaf88b5a06",
"name": "Google Gemini チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
620,
580
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.5-pro"
},
"credentials": {
"googlePalmApi": {
"id": "Dc4myFSoHsGJrGZP",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "522ed972-2fb6-4c39-b9d7-bf8c2aaa5399",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
100
],
"parameters": {
"width": 600,
"height": 200,
"content": "## Required API Keys:\n- **Supadata KEY**: Get your transcription API key [here](https://supadata.com/)\n\n### Setup Instructions:\n1. Send URL to your bot to start Transcribing"
},
"typeVersion": 1
},
{
"id": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
"name": "スクリプト作成",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
620,
400
],
"parameters": {
"text": "=#background information\n{{ $json.full_script }}",
"batching": {},
"messages": {
"messageValues": [
{
"message": "=You are a professional scriptwriter for YouTube Shorts, specializing in trivia across various genres.\nBased on the background information from the YouTube transcript provided by the user, you will create the ultimate script to captivate viewers. Your expertise lies in crafting scripts that interestingly convey fascinating trivia hidden in science, nature, culture, and daily life. Please use an intelligent yet friendly narrative style.\n\n#Conditions\n\nThe content must be based on accurate information.\n\nStructure the script to introduce a lot of trivia at a good tempo, minimizing transitional words.\n\nSpeak intelligently in a casual tone.\n\nThe script should be approximately 170-200 words.\n\nThe opening sentence must be a shocking fact or a line that strongly stimulates the viewer's curiosity. Get straight to the point.\n\nDo not include narration or timestamps; generate only the pure script text.\n\nCreate the script based on the background information from the provided YouTube transcript.\n\nDo not use bold text.\n\nUse periods to break lines appropriately.\n\n#Output Format\ntitle:\nscript:"
}
]
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.7
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "b464a592-ac27-4c62-aaaf-11b0b970d895",
"connections": {
"1fc965aa-ed57-48b5-8185-1e163a9dd7b2": {
"ai_outputParser": [
[
{
"node": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"be08404f-7005-46dc-bda0-9fa3bcd638f9": {
"main": [
[
{
"node": "9a74e5e6-e063-4c2d-aeeb-f627a1c8a878",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
"type": "main",
"index": 0
}
]
]
},
"fc5a9462-5e0c-4425-9e24-bf7794da0974": {
"main": [
[]
]
},
"5e57ee04-c618-4afb-8bf8-f4ddfe13c04c": {
"main": [
[
{
"node": "fc5a9462-5e0c-4425-9e24-bf7794da0974",
"type": "main",
"index": 0
}
]
]
},
"9a74e5e6-e063-4c2d-aeeb-f627a1c8a878": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"c5c3e290-df5b-43b7-a2b8-1aaaf88b5a06": {
"ai_languageModel": [
[
{
"node": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - コンテンツ作成, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
LinkedInおよびXウイルスのなコンテンツ自動エンジン
AIを使ってLinkedInとXにウイルスのなコンテンツを自動生成して公開する
If
Set
Wait
+
If
Set
Wait
156 ノードDiptamoy Barman
コンテンツ作成
LinkedIn オートメーション
Gemini AI と承認ワークフローを使用して Telegram メッセージをプロフェッショナル LinkedIn 投稿に変換する
If
Set
Code
+
If
Set
Code
54 ノードSateesh
コンテンツ作成
WordPress - SEO記事の自動生成および公開
Gemini AIとOpenAI画像を使用してWordPressでSEO記事を自動生成
Set
Telegram
Wordpress
+
Set
Telegram
Wordpress
18 ノードAgent Circle
コンテンツ作成
URLベースでAI、Telegram、マルチプラットフォームで自動のにソーシャルメディア投稿を生成
URLを基にAI、Telegram、複数のプラットフォームで自動のにソーシャルメディア投稿を作成
If
Set
Code
+
If
Set
Code
42 ノードKarol
コンテンツ作成
WordPress+ソーシャルメディア
GPT/GeminiとWordPressに基づく自動ブログ作成とマルチプラットフォーム公開
If
Set
Switch
+
If
Set
Switch
44 ノードKhairul Muhtadin
コンテンツ作成
GPT-4o、ElevenLabs、WaveSpeed で口語同期してリアル UGC 動画広告を作る
GPT-4o、ElevenLabs、WaveSpeedを使ってリアルなUGC動画広告のメロー同期を作成
If
Set
Wait
+
If
Set
Wait
38 ノードMuhammad Farooq Iqbal
コンテンツ作成