使用Ollama上的Gemma 3汇总文档、图像和电子表格
高级
这是一个Document Extraction, AI Summarization领域的自动化工作流,包含 24 个节点。主要使用 Switch, ConvertToFile, ReadWriteFile, Agent, ExtractFromFile 等节点。 使用Ollama上的Gemma 3汇总文档、图像和电子表格
前置要求
- •无特殊前置要求,导入即可使用
使用的节点 (24)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "e5aa7986ab694604988fd614f16d3dd8cb275c306d75d6a818e14c909713473c",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "8fc8fe7b-e0de-4bf6-b87c-2fcb146f66da",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1320,
340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ddb2650a-c27e-4e4d-b176-3cb0fd113293",
"name": "从磁盘读取/写入文件",
"type": "n8n-nodes-base.readWriteFile",
"position": [
-720,
680
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f7081e2e-29ba-4c3f-ba61-4c0dfada91fb",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-780,
440
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "06bee204-49c1-4c62-8272-ff603e1c6e63",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
120,
480
],
"parameters": {},
"typeVersion": 2
},
{
"id": "1b48e2a6-09a2-4a62-ae15-324881af96a8",
"name": "Ollama聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"position": [
20,
700
],
"parameters": {},
"typeVersion": 1
},
{
"id": "36ef7f39-028a-42a4-8f44-b5eab31046da",
"name": "本地文件触发器",
"type": "n8n-nodes-base.localFileTrigger",
"position": [
-940,
680
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3937fa33-c19b-4755-8119-f3ae8b6b3ce6",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1300,
760
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b485e613-26d6-443d-9728-7e3ea4431bf5",
"name": "Google Calendar MCP",
"type": "n8n-nodes-base.switch",
"position": [
-500,
640
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "14dfd48f-e9f4-474c-9751-714a99a972da",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-540,
340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c3f3b7a0-387a-4c31-90aa-7d6535ae1bf8",
"name": "AI Agent1",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
100,
80
],
"parameters": {},
"typeVersion": 2
},
{
"id": "b41b7504-9592-4718-8309-6a3ab4d8c0a4",
"name": "Ollama聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"position": [
20,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "559f2df4-6784-4f07-a214-0dfde3838e50",
"name": "便签说明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
-40
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b93389c0-0781-4365-a8e5-fa816484d846",
"name": "AI 智能体2",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
220,
960
],
"parameters": {},
"typeVersion": 2
},
{
"id": "8b44acb7-914f-4daa-a757-9446eef58dbf",
"name": "Ollama聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"position": [
200,
1220
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a0cbe628-023a-472d-b44a-7d5812dd594f",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
180,
300
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "517ac3a2-4f5b-4e88-bd76-76c7bff3d33b",
"name": "从 PDF 提取内容",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-140,
580
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0dc98958-324c-42d0-bac3-f9cb74310d7d",
"name": "从XLS提取",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-140,
800
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c30a13c2-32c0-4b57-b25f-2c300e831170",
"name": "从CSV提取",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-140,
1040
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c0deb047-bfa6-4802-984a-f7aae52ee4b9",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-180,
360
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5a8a0dd8-6f1a-4494-8664-307a3e2da30f",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
700
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d3f938d8-6ba5-4f15-b991-bdf8ff54960e",
"name": "转换为文件",
"type": "n8n-nodes-base.convertToFile",
"position": [
680,
600
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "b4533061-af36-46c7-90c8-38bd752eb888",
"name": "从磁盘读取/写入文件1",
"type": "n8n-nodes-base.readWriteFile",
"position": [
900,
600
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c4d0c3e7-ba1c-4fc4-8fa5-12c05178a14b",
"name": "## 为什么选择 4o 模型?👆",
"type": "n8n-nodes-base.stickyNote",
"position": [
620,
380
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2cfcdb84-0f36-442a-a2fa-43aaf17317bd",
"name": "便签 9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1300,
60
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Switch": {
"main": [
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
],
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
],
[
{
"node": "Extract from PDF",
"type": "main",
"index": 0
}
],
[
{
"node": "Extract from XLS",
"type": "main",
"index": 0
}
],
[
{
"node": "Extract from CSV",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"AI Agent1": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"AI Agent2": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "Read/Write Files from Disk1",
"type": "main",
"index": 0
}
]
]
},
"Extract from CSV": {
"main": [
[
{
"node": "AI Agent2",
"type": "main",
"index": 0
}
]
]
},
"Extract from PDF": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Extract from XLS": {
"main": [
[
{
"node": "AI Agent2",
"type": "main",
"index": 0
}
]
]
},
"Ollama Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Local File Trigger": {
"main": [
[
{
"node": "Read/Write Files from Disk",
"type": "main",
"index": 0
}
]
]
},
"Ollama Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Ollama Chat Model2": {
"ai_languageModel": [
[
{
"node": "AI Agent2",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Read/Write Files from Disk": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 文档提取, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
本地PDF
使用Ollama AI处理法律文档并生成HTML报告(100%本地)
Convert To File
Read Write File
Agent
+4
15 节点Rish
人工智能
使用GPT-4o自动生成科研PDF的结构化摘要
使用GPT-4o生成结构化科研PDF摘要
Code
Convert To File
Read Write File
+5
9 节点AiAgent
文档提取
AI驱动的GPT-4-Turbo作业评分与多格式输出
使用GPT-4-Turbo自动化作业评分并生成多格式报告
Set
Code
Webhook
+7
15 节点Cheng Siong Chin
文档提取
自动化学术论文元数据及变量提取,从Gemini到Google Sheets
自动化学术论文元数据及变量提取,从Gemini到Google Sheets
Set
Code
Wait
+14
39 节点OwenLee
文档提取
使用Qdrant RAG和Ollama构建本地AI Kaggle竞赛助手
使用Qdrant RAG和Ollama构建本地AI Kaggle竞赛助手
Set
Merge
Switch
+16
23 节点JHH
工程
从PDF提取并整理合同详情至Slack、GPT-4o和Google Sheets
从PDF提取并整理合同详情至Slack、GPT-4o和Google Sheets
Slack
Switch
Http Request
+7
19 节点Toshiki Hirao
文档提取