YouTube 到 Instagram_Facebook
中级
这是一个Design, AI, Marketing领域的自动化工作流,包含 13 个节点。主要使用 HttpRequest, Agent, RssFeedReadTrigger, LmChatOpenAi 等节点,结合人工智能技术实现智能自动化。 使用 AI 生成字幕自动发布 YouTube 视频到 Facebook 和 Instagram
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "kPBvBnjidCFr5v69",
"meta": {
"instanceId": "2c6d3d38af8a4c0f79fb39f43818e6004a0dbcc85be9dad124fc43e13d64847f",
"templateCredsSetupCompleted": true
},
"name": "YouTube 到 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 到社交媒体自动化"
},
"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 触发器"
},
"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 标题生成"
},
"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 发布"
},
"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 发布流程"
},
"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 要求**"
},
"typeVersion": 1
},
{
"id": "cda123c2-21a3-421d-918e-5a6973002aa3",
"name": "AI Agent",
"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 Chat Model",
"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": {
"AI Agent": {
"main": [
[
{
"node": "Get IG Business Account ID",
"type": "main",
"index": 0
},
{
"node": "Post on Facebook",
"type": "main",
"index": 0
}
]
]
},
"Post on Facebook": {
"main": [
[]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Create Media Container": {
"main": [
[
{
"node": "Publish Post On Instagram",
"type": "main",
"index": 0
}
]
]
},
"Publish Post On Instagram": {
"main": [
[]
]
},
"Get IG Business Account ID": {
"main": [
[
{
"node": "Create Media Container",
"type": "main",
"index": 0
}
]
]
},
"Pull Youtube Video From Channel": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 设计, 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
YouTube 视频摘要生成器(GPT-4o、Slack 审批与 Reddit 发布)
使用 GPT-4o 生成 YouTube 视频摘要,支持 Slack 审批和 Reddit 发布
Code
Slack
Reddit
+6
15 节点Yaron Been
人工智能
YouTube 视频摘要发送至 Discord(GPT-4o、Slack 审批和 Google Sheets)
使用 GPT-4o 生成 YouTube 视频摘要,发送至 Discord,支持 Slack 审批和 Google Sheets
Code
Slack
Discord
+6
15 节点Yaron Been
人工智能
AI YouTube分析助手:评论分析与洞察报告
AI YouTube分析助手:评论分析器与洞察报告生成器
If
Set
Code
+9
19 节点Yaron Been
人工智能
使用 GPT-4 自动生成并分发 LinkedIn 帖子到个人资料和群组
使用 GPT-4 自动生成并分发 LinkedIn 帖子到个人资料和群组
If
Code
Limit
+8
14 节点Yaron Been
人工智能
使用 Phantombuster 的 LinkedIn 帖子互动
使用 Phantombuster、OpenAI GPT 和 Google Sheets 跟踪自动化 LinkedIn 互动
Http Request
Google Sheets
Agent
+3
14 节点Yaron Been
人工智能
自动新闻摘要与邮件简报(GPT-4、NewsAPI 和 Gmail)
使用 GPT-4、NewsAPI 和 Gmail 自动生成新闻摘要与邮件简报
Gmail
Http Request
Google Sheets
+4
7 节点Yaron Been
人工智能
工作流信息
难度等级
中级
节点数量13
分类3
节点类型5
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host
外部链接
在 n8n.io 查看 →
分享此工作流