YouTubeからInstagram_Facebook
中級
これはDesign, AI, Marketing分野の自動化ワークフローで、13個のノードを含みます。主にHttpRequest, Agent, RssFeedReadTrigger, LmChatOpenAiなどのノードを使用、AI技術を活用したスマート自動化を実現。 AI による字幕生成で YouTube 動画を Facebook および Instagram へ自動公開
前提条件
- •ターゲットAPIの認証情報が必要な場合あり
- •OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "kPBvBnjidCFr5v69",
"meta": {
"instanceId": "2c6d3d38af8a4c0f79fb39f43818e6004a0dbcc85be9dad124fc43e13d64847f",
"templateCredsSetupCompleted": true
},
"name": "Youtube to Instagram_Facebook",
"tags": [],
"nodes": [
{
"id": "workflow-overview-social",
"name": "ワークフロー概要",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1300,
-320
],
"parameters": {
"color": 2,
"width": 350,
"height": 380,
"content": "# 📱 YouTube to Social Media Automation\n\n**Purpose:** Auto-publish YouTube videos to Facebook & Instagram\n\n**Schedule:** Checks for new videos every hour\n\n**Required Setup:**\n1. YouTube channel RSS feed\n2. OpenAI API key (GPT-4o-mini)\n3. Meta App with permissions\n4. Long-lived access token\n\n## Workflow Steps:\n1. **Monitor** - RSS feed for new videos\n2. **Generate** - AI creates social caption\n3. **Publish** - Posts to FB & Instagram\n\n💡 Update all `<Access_Token>` and `<Facebook_PageID>` placeholders"
},
"typeVersion": 1
},
{
"id": "rss-trigger-note",
"name": "RSSトリガー情報",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1040,
-320
],
"parameters": {
"color": 3,
"width": 280,
"height": 220,
"content": "## 🎥 YouTube RSS Trigger\n\n**Monitors your YouTube channel:**\n- Checks every hour for new uploads\n- Uses YouTube RSS feed format\n\n**To find your channel ID:**\n1. Go to your YouTube channel\n2. View page source\n3. Search for \"channelId\"\n\n⚠️ Replace channel_id in RSS URL"
},
"typeVersion": 1
},
{
"id": "ai-caption-note",
"name": "AI字幕生成",
"type": "n8n-nodes-base.stickyNote",
"position": [
-740,
-320
],
"parameters": {
"color": 5,
"width": 280,
"height": 200,
"content": "## 🤖 AI Caption Generation\n\n**OpenAI GPT-4o-mini:**\n- Generates engaging social media captions\n- Includes emojis automatically\n- Adds call-to-action\n\n**Customize the prompt to:**\n- Match your brand voice\n- Include specific hashtags\n- Target your audience"
},
"typeVersion": 1
},
{
"id": "facebook-post-note",
"name": "Facebook 投稿",
"type": "n8n-nodes-base.stickyNote",
"position": [
-390,
-440
],
"parameters": {
"color": 4,
"width": 250,
"height": 180,
"content": "## 📘 Facebook Publishing\n\n**Direct post to Facebook Page**\n\n⚠️ **Required updates:**\n- Replace `<Facebook_PageID>`\n- Replace `<Access_Token>`\n\n**Note:** Uses error handling to continue workflow even if Facebook fails"
},
"typeVersion": 1
},
{
"id": "instagram-flow-note",
"name": "Instagram 投稿フロー",
"type": "n8n-nodes-base.stickyNote",
"position": [
-120,
-180
],
"parameters": {
"color": 6,
"width": 300,
"height": 220,
"content": "## 📸 Instagram Publishing Flow\n\n**3-step process:**\n1. Get Business Account ID\n2. Create media container with thumbnail\n3. Publish the post\n\n**Automatic thumbnail:**\nPulls YouTube video thumbnail as Instagram image\n\n⚠️ Requires Instagram Business Account linked to Facebook Page"
},
"typeVersion": 1
},
{
"id": "api-requirements-note",
"name": "API 要件",
"type": "n8n-nodes-base.stickyNote",
"position": [
-440,
280
],
"parameters": {
"color": 1,
"width": 250,
"height": 200,
"content": "⚠️ **Meta API Requirements**\n\n**Required Permissions:**\n- pages_manage_posts\n- pages_read_engagement\n- pages_show_list\n- instagram_content_publish\n- instagram_basic\n\n**Token Type:** Long-lived access token\n**API Version:** v22.0"
},
"typeVersion": 1
},
{
"id": "cda123c2-21a3-421d-918e-5a6973002aa3",
"name": "AIエージェント",
"type": "@n8n/n8n-nodes-langchain.agent",
"notes": "Formats post caption using video metadata. Customize prompt for your brand voice and hashtags",
"position": [
-740,
-80
],
"parameters": {
"text": "=Write a short, engaging social media post about this new YouTube video:\n\nTitle: {{ $json.title }}\nURL: {{ $json.link }}\n\nInclude emojis and a call to action.",
"options": {},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "d215f6c3-f9d7-4103-8c26-419f468cf74b",
"name": "OpenAI チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"notes": "Uses GPT-4o-mini to generate the caption text",
"position": [
-740,
160
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "p5RrjC1K9qFbdflM",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "fbf6f102-1f8d-4e22-a850-1f5f163b94d5",
"name": "Facebook に投稿",
"type": "n8n-nodes-base.httpRequest",
"notes": "Publishes the caption using Facebook Graph API. Replace <Facebook_PageID> and <Access_Token>",
"onError": "continueErrorOutput",
"position": [
-340,
-240
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/<Facebook_PageID>/feed\n",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "message",
"value": "={{ $json.output }}"
},
{
"name": "access_token",
"value": "<Access_Token>"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "jfdonlZifjvvr",
"name": "Header Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "000891de-e3e2-4de8-8742-ad45a2a958db",
"name": "Instagram に投稿公開",
"type": "n8n-nodes-base.httpRequest",
"notes": "Publishes post to Instagram feed using the media container ID",
"position": [
180,
60
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $('Get IG Business Account ID').item.json.instagram_business_account.id }}/media_publish\n",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"bodyParameters": {
"parameters": [
{
"name": "creation_id",
"value": "={{ $json.id }}"
},
{
"name": "access_token",
"value": "<Access_Token>"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "2e65dd2e-7f9e-4abd-b6c7-e811b3a86349",
"name": "IGビジネスアカウントID取得",
"type": "n8n-nodes-base.httpRequest",
"notes": "Retrieves Instagram Business account ID linked to Facebook Page",
"onError": "continueErrorOutput",
"position": [
-340,
80
],
"parameters": {
"url": "https://graph.facebook.com/v22.0/<Facebook_PageID>",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "fields",
"value": "instagram_business_account"
},
{
"name": "access_token",
"value": "<Access_Token>"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "c2d089b9-754c-49fe-aa4d-976072340a0e",
"name": "メディアコンテナ作成",
"type": "n8n-nodes-base.httpRequest",
"notes": "Uploads YouTube thumbnail as Instagram image with AI-generated caption",
"position": [
-80,
60
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $json.instagram_business_account.id }}/media",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "form-urlencoded",
"bodyParameters": {
"parameters": [
{
"name": "image_url",
"value": "=https://img.youtube.com/vi/{{ $('Pull Youtube Video From Channel').item.json.link.split(\"=\")[1] }}/maxresdefault.jpg"
},
{
"name": "caption",
"value": "={{ $('AI Agent').item.json.output }}"
},
{
"name": "access_token",
"value": "<Access_Token>"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "29656ae1-d60e-4f4d-9326-17801ddcbb65",
"name": "Youtube 動画をチャンネルから取得",
"type": "n8n-nodes-base.rssFeedReadTrigger",
"notes": "Monitors new uploads from your YouTube channel. Replace channel_id in RSS URL",
"position": [
-1000,
-80
],
"parameters": {
"feedUrl": "https://www.youtube.com/feeds/videos.xml?channel_id=UC2Tf8MGUzFX-GPkuBEBSKMg",
"pollTimes": {
"item": [
{
"mode": "everyHour"
}
]
}
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a459b777-6ecf-46d2-9543-061a888393a6",
"connections": {
"cda123c2-21a3-421d-918e-5a6973002aa3": {
"main": [
[
{
"node": "2e65dd2e-7f9e-4abd-b6c7-e811b3a86349",
"type": "main",
"index": 0
},
{
"node": "fbf6f102-1f8d-4e22-a850-1f5f163b94d5",
"type": "main",
"index": 0
}
]
]
},
"fbf6f102-1f8d-4e22-a850-1f5f163b94d5": {
"main": [
[]
]
},
"d215f6c3-f9d7-4103-8c26-419f468cf74b": {
"ai_languageModel": [
[
{
"node": "cda123c2-21a3-421d-918e-5a6973002aa3",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"c2d089b9-754c-49fe-aa4d-976072340a0e": {
"main": [
[
{
"node": "000891de-e3e2-4de8-8742-ad45a2a958db",
"type": "main",
"index": 0
}
]
]
},
"000891de-e3e2-4de8-8742-ad45a2a958db": {
"main": [
[]
]
},
"2e65dd2e-7f9e-4abd-b6c7-e811b3a86349": {
"main": [
[
{
"node": "c2d089b9-754c-49fe-aa4d-976072340a0e",
"type": "main",
"index": 0
}
]
]
},
"29656ae1-d60e-4f4d-9326-17801ddcbb65": {
"main": [
[
{
"node": "cda123c2-21a3-421d-918e-5a6973002aa3",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - デザイン, 人工知能, マーケティング
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
AI YouTube分析アシスタント:コメント分析とインサイトレポート
AI YouTube分析アシスタント:コメント分析ツールとインサイトレポート生成ツール
If
Set
Code
+
If
Set
Code
19 ノードYaron Been
人工知能
GPT-4を使用して、自動のにLinkedInの投稿を生成し、プロフィールとグループに配信する
GPT-4 を使って LinkedIn の投稿を自動生成してプロフィールとグループへ配信する
If
Code
Limit
+
If
Code
Limit
14 ノードYaron Been
人工知能
Phantombuster を使った LinkedIn 投稿の返信アクション自動化
Phantombuster、OpenAI GPT、Google Sheets を使って LinkedIn の自動インタラクションを追跡
Http Request
Google Sheets
Agent
+
Http Request
Google Sheets
Agent
14 ノードYaron Been
人工知能
自動ニュース要約とメールサマリ(GPT-4、NewsAPI、Gmail)
GPT-4、NewsAPI、Gmail を使用したニュース要約とメールサマリーの自動生成
Gmail
Http Request
Google Sheets
+
Gmail
Http Request
Google Sheets
7 ノードYaron Been
人工知能
Crunchbaseスタートアップ活動モニタ
毎日のスタートアップインテリジェンスでGPTがCrunchbaseのアップデートを処理し、メールで要約を送信
Set
Gmail
Http Request
+
Set
Gmail
Http Request
12 ノードYaron Been
人工知能
FireCrawl要約ボット
Firecrawl AI搭載マーケットインテリジェンスロボット:自動ニュースインサイト配送
Code
Slack
Http Request
+
Code
Slack
Http Request
10 ノードYaron Been
人工知能
ワークフロー情報
難易度
中級
ノード数13
カテゴリー3
ノードタイプ5
作成者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host
外部リンク
n8n.ioで表示 →
このワークフローを共有