视频分析
中级
这是一个AI、Marketing领域的自动化工作流,包含 15 个节点。主要使用 Set、GoogleDrive、HttpRequest、ScheduleTrigger、ChainLlm 等节点,结合人工智能技术实现智能自动化。 从Google Drive自动进行AI驱动的视频洞察生成
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "En63BLYn2fE6YxKh",
"meta": {
"instanceId": "57c71fe69aec521b7d0bd3751d2e0aaa08f8884418e122571610a23c9eb8a65c",
"templateCredsSetupCompleted": true
},
"name": "视频分析",
"tags": [],
"nodes": [
{
"id": "5cf5eee1-1a5a-481b-b0a7-e6bc8e7a072a",
"name": "从 Google Drive 下载视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
-80,
-100
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "list",
"value": ""
},
"options": {},
"operation": "download",
"authentication": "oAuth2"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "pIW55BNPyp4T9msu",
"name": "Google Drive account 2"
}
},
"typeVersion": 1
},
{
"id": "b46a5743-2ec9-48c8-9884-1cda4d021ec5",
"name": "检查文件状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
360,
-100
],
"parameters": {
"url": "https://generativelanguage.googleapis.com/v1beta/files/your_file_id",
"options": {},
"authentication": "predefinedCredentialType"
},
"typeVersion": 1
},
{
"id": "957978bf-d401-4f5e-b15e-64c2a7d806e2",
"name": "分析视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
540,
-100
],
"parameters": {
"url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro:generateContent",
"options": {},
"requestMethod": "POST",
"jsonParameters": true,
"bodyParametersJson": "{\n \"contents\": [\n {\n \"role\": \"user\",\n \"parts\": [\n {\n \"fileData\": {\n \"fileUri\": \"files/your_file_id\"\n }\n },\n {\n \"text\": \"Please analyze the video and provide a summary.\"\n }\n ]\n }\n ]\n}"
},
"typeVersion": 1
},
{
"id": "78834072-6f1a-43e5-8d53-6f65b8ef31a3",
"name": "格式化分析结果",
"type": "n8n-nodes-base.set",
"position": [
720,
-100
],
"parameters": {
"options": {}
},
"typeVersion": 1
},
{
"id": "acd2575c-2145-43d2-930a-0c95fdbf0035",
"name": "定时触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-260,
-100
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "6f710275-eb3b-4d11-98d3-9191176960ef",
"name": "便签 - 协助",
"type": "n8n-nodes-base.stickyNote",
"position": [
940,
-260
],
"parameters": {
"color": 4,
"width": 340,
"height": 620,
"content": "======================================="
},
"typeVersion": 1
},
{
"id": "a322cc61-d934-489d-8984-7b7fbf19ed67",
"name": "基础LLM链",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
60,
-100
],
"parameters": {
"text": "Hi, could you please prepare the video below:\n",
"promptType": "define"
},
"typeVersion": 1.5
},
{
"id": "ea265edc-b687-4aae-ad2d-3f27be704afc",
"name": "Google Gemini 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
20,
200
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "cHiuNFEYYehlLyFW",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "01975cf6-f26e-4d14-a595-59cce454b9a2",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-300,
-360
],
"parameters": {
"width": 560,
"content": "该工作流使用 Gemini API 自动执行从 Google Drive 下载视频文件、状态检查及基于 AI 的视频分析"
},
"typeVersion": 1
},
{
"id": "a5c33cfe-9dc1-4741-87b0-f564e8d8dc9d",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
80
],
"parameters": {
"width": 150,
"height": 80,
"content": "设置执行间隔(例如每日)"
},
"typeVersion": 1
},
{
"id": "dbf28a97-1dac-4d20-af65-180c59dfa690",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-100,
80
],
"parameters": {
"width": 150,
"height": 80,
"content": "使用 Google Drive 节点拉取视频"
},
"typeVersion": 1
},
{
"id": "81977563-018b-4b9b-b440-71f84abea87e",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
60
],
"parameters": {
"width": 150,
"height": 80,
"content": "准备输入并传递给 Gemini"
},
"typeVersion": 1
},
{
"id": "18a0147d-f9d1-4332-90a5-60346cbec9c2",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
60
],
"parameters": {
"width": 150,
"height": 80,
"content": "验证视频是否已上传至 Gemini 端点"
},
"typeVersion": 1
},
{
"id": "be07e477-aee6-4546-8930-907b1b41780a",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
520,
60
],
"parameters": {
"width": 150,
"height": 80,
"content": "使用 Gemini API 分析视频内容"
},
"typeVersion": 1
},
{
"id": "b082a61d-3f5b-4395-a095-d9177cdce954",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
720,
60
],
"parameters": {
"width": 150,
"height": 80,
"content": "构建摘要输出结构"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "948c65d2-fbc8-4204-860a-cda81b0b8eb2",
"connections": {
"Analyze Video": {
"main": [
[
{
"node": "Format Analysis Result",
"type": "main",
"index": 0
}
]
]
},
"Basic LLM Chain": {
"main": [
[
{
"node": "Check File Status",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Download Video from Drive",
"type": "main",
"index": 0
}
]
]
},
"Check File Status": {
"main": [
[
{
"node": "Analyze Video",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Basic LLM Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Download Video from Drive": {
"main": [
[
{
"node": "Basic LLM Chain",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于AI、Marketing等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用Bright Data和LLMs自动化大规模超个性化外联
通过Bright Data和大语言模型实现大规模超个性化外联自动化
If
Set
Wait
+8
21 节点Yaron Been
Sales
自动化AI内容创作及从Google Sheets发布到Instagram
自动化AI内容创作及从Google Sheets发布到Instagram
Set
Wait
Http Request
+7
26 节点Onur
Design
我的工作流
基于Reddit和Anthropic的每周数字公关故事自动推荐
If
Set
Code
+11
29 节点Custom Workflows AI
AI
使用AI、ElevenLabs和多平台发布创建和审批POV视频
使用AI、ElevenLabs和多平台发布创建和审批POV视频(TikTok/IG/YT)
If
Set
Code
+20
60 节点Immanuel
Design
(Duc)深度研究市场模板
集成PerplexityAI研究和OpenAI内容的多层级WordPress博客生成器
If
Set
Xml
+28
132 节点Daniel Ng
AI
WordPress博客自动化专业版(SEO主题)v2
WordPress自动博客专业版 - SEO主题内容自动化机器
If
Set
Xml
+21
63 节点Daniel Ng
AI
工作流信息
难度等级
中级
节点数量15
分类2
节点类型7
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos
外部链接
在 n8n.io 上查看 →
分享此工作流