从Google Drive获取最新文档
中级
这是一个AI领域的自动化工作流,包含 12 个节点。主要使用 GoogleDocs, GoogleSheets, OpenAi, GoogleDriveTrigger, ToolWikipedia 等节点,结合人工智能技术实现智能自动化。 总结Google Drive中的新文档并将摘要保存到Google Sheet
前置要求
- •Google Sheets API 凭证
- •OpenAI API Key
- •Google Drive API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "aswQJmksAOmHmn8c",
"meta": {
"instanceId": "14e4c77104722ab186539dfea5182e419aecc83d85963fe13f6de862c875ebfa"
},
"name": "从 Google Drive 获取最新文档",
"tags": [
{
"id": "uScnF9NzR3PLIyvU",
"name": "Published",
"createdAt": "2025-03-21T07:22:28.491Z",
"updatedAt": "2025-03-21T07:22:28.491Z"
}
],
"nodes": [
{
"id": "d9df98fe-bf03-45bd-9cb9-ed32371b7970",
"name": "Google Docs",
"type": "n8n-nodes-base.googleDocs",
"position": [
100,
500
],
"parameters": {
"operation": "get",
"documentURL": "={{ $json.id }}"
},
"credentials": {
"googleDocsOAuth2Api": {
"id": "",
"name": ""
}
},
"typeVersion": 2
},
{
"id": "46daf9a2-0d13-49c3-8272-e366888e1960",
"name": "维基百科",
"type": "@n8n/n8n-nodes-langchain.toolWikipedia",
"position": [
440,
440
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9dafd444-257c-4f44-9550-1dbd19dc44d4",
"name": "计算器",
"type": "@n8n/n8n-nodes-langchain.toolCalculator",
"position": [
700,
440
],
"parameters": {},
"typeVersion": 1
},
{
"id": "259a7fa0-4b37-453e-a730-fb2fc7bc3eb0",
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
1040,
540
],
"parameters": {
"columns": {
"value": {
"Name": "={{ $('Google Drive ').item.json.lastModifyingUser.displayName }}",
"Email ": "={{ $('Google Drive ').item.json.lastModifyingUser.emailAddress }}",
"Summarise Conetent data ": "={{ $json.message.content }}"
},
"schema": [
{
"id": "Email ",
"type": "string",
"display": true,
"required": false,
"displayName": "Email ",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Name",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Summarise Conetent data ",
"type": "string",
"display": true,
"required": false,
"displayName": "Summarise Conetent data ",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": []
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "url",
"value": "",
"__regex": "https:\\/\\/(?:drive|docs)\\.google\\.com(?:\\/.*|)\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "",
"name": ""
}
},
"typeVersion": 4.5
},
{
"id": "d5b63de6-bc9a-4e44-a9a2-85026a16aec7",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-320,
180
],
"parameters": {
"color": 5,
"height": 260,
"content": "## 获取最新文件"
},
"typeVersion": 1
},
{
"id": "d00720d9-a344-48c9-9c31-7c4391ecda70",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDriveTrigger",
"notes": "Received the doc",
"position": [
-240,
260
],
"parameters": {
"event": "fileCreated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "url",
"value": ""
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "",
"name": ""
}
},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "4e326b5d-f116-4de7-bf4b-bac11772e54d",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
20,
400
],
"parameters": {
"color": 5,
"width": 260,
"height": 260,
"content": "## 获取文档内容"
},
"typeVersion": 1
},
{
"id": "b2f25e20-0c61-4af4-b2b5-dbeb20720c3b",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
200
],
"parameters": {
"color": 5,
"width": 440,
"height": 380,
"content": "## AI 摘要生成"
},
"typeVersion": 1
},
{
"id": "af9b81f3-b65d-4957-8471-978dc90970f2",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
920,
420
],
"parameters": {
"color": 5,
"width": 300,
"height": 280,
"content": "## 在表格中存储摘要"
},
"typeVersion": 1
},
{
"id": "4cd99298-968b-4a47-bcf9-b4e006d8dab0",
"name": "生成摘要 AI",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
460,
280
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "GPT-4O-MINI"
},
"options": {},
"messages": {
"values": [
{
"content": "=Summarise the below content\n {{ $json.content }}"
}
]
}
},
"typeVersion": 1.7
},
{
"id": "af7afd98-8707-4db6-acb0-796427f6e304",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"color": 5,
"width": 800,
"height": 80,
"content": "# Google 文档摘要生成器到 Google Sheets"
},
"typeVersion": 1
},
{
"id": "d0c4ae80-d120-457a-975d-7cfcb963b922",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-260,
760
],
"parameters": {
"color": 5,
"width": 1280,
"content": "## 描述"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "b3ee0a62-7c2f-4dc4-9e2c-f16211e02008",
"connections": {
"Wikipedia": {
"ai_tool": [
[
{
"node": "Generate Summary AI",
"type": "ai_tool",
"index": 0
}
]
]
},
"Calculator": {
"ai_tool": [
[
{
"node": "Generate Summary AI",
"type": "ai_tool",
"index": 0
}
]
]
},
"Google Docs": {
"main": [
[
{
"node": "Generate Summary AI",
"type": "main",
"index": 0
}
]
]
},
"Google Drive ": {
"main": [
[
{
"node": "Google Docs",
"type": "main",
"index": 0
}
]
]
},
"Generate Summary AI": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
AI房地产经纪人:端到端运营自动化(网络、数据、语音)
AI房地产经纪人:端到端运营自动化(网络、数据、语音)
If
Set
Code
+16
45 节点Sam Yassine
销售
基于AI的MIS代理
基于AI的管理信息系统代理
If
Set
Code
+29
129 节点Kumar Shivam
客户支持
Printify自动化 - 更新标题和描述 - AlexK1919
优化和更新Printify标题与描述的工作流
If
Set
Code
+10
26 节点Alex Kim
销售
宠物店 4
🐶 宠物店预约 AI 代理
If
Set
Code
+41
187 节点Bruno Dias
人工智能
技术雷达
使用SQL数据库、RAG和路由代理构建AI驱动的技术雷达顾问
If
Code
Cron
+22
53 节点Sean Lon
工程
工作流信息
难度等级
中级
节点数量12
分类1
节点类型7
作者
WeblineIndia
@weblineindiaA Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.
外部链接
在 n8n.io 查看 →
分享此工作流