AI驱动的文档摘要生成器与通知器
高级
这是一个Document Extraction, AI Summarization, Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 If, Set, Gmail, Slack, GoogleDocs 等节点。 使用GPT-4汇总Google文档和PDF并发送到Slack或邮件
前置要求
- •Google 账号和 Gmail API 凭证
- •Slack Bot Token 或 Webhook URL
- •Google Drive API 凭证
- •OpenAI API Key
使用的节点 (16)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "cFXP4gO2L3sOPL5k",
"meta": {
"instanceId": "af9fe5bb0163dc4cbb85dd6fb4c45fe63eac1327996aeecd696d8f7aed2d776b",
"templateCredsSetupCompleted": true
},
"name": "AI 驱动的文档摘要生成器与通知器",
"tags": [
{
"id": "oXLqGOyVDwolvp9S",
"name": "document summarizer",
"createdAt": "2025-09-17T10:08:20.905Z",
"updatedAt": "2025-09-17T10:08:20.905Z"
},
{
"id": "qtuQF3Lc141mfYiM",
"name": "n8n template",
"createdAt": "2025-09-11T07:44:43.900Z",
"updatedAt": "2025-09-17T10:07:33.999Z"
}
],
"nodes": [
{
"id": "77c58599-2aea-4ba4-8132-4f82fdcf8bd3",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1136,
720
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "WCk5ptERvfLe219v",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "f645be4e-6234-4984-9e4a-1552e847d927",
"name": "文件已创建",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
32,
544
],
"parameters": {
"event": "watchFolderUpdated",
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "id",
"value": "1FxZOCBSgyd0KyK13cEOwpAGHj8acIyVK"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "6hdkTGuRRpQ6NGmj",
"name": "Google Drive account"
}
},
"typeVersion": 1
},
{
"id": "e97c0523-5ba4-45d3-a993-b11320f99e26",
"name": "获取文档",
"type": "n8n-nodes-base.googleDocs",
"position": [
608,
400
],
"parameters": {
"operation": "get",
"documentURL": "={{ $('Check Document Type').item.json.id }}"
},
"credentials": {
"googleDocsOAuth2Api": {
"id": "FrKnM9ye3ZQCmzfg",
"name": "Google Docs account"
}
},
"typeVersion": 2
},
{
"id": "cd20e8af-3fba-4204-a953-ab8d07c25184",
"name": "检查文档类型",
"type": "n8n-nodes-base.if",
"position": [
256,
544
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4e823422-08d2-4b98-a537-058c84010f1c",
"operator": {
"type": "string",
"operation": "contains"
},
"leftValue": "={{ $json.mimeType }}",
"rightValue": "application/vnd.google-apps."
}
]
}
},
"typeVersion": 2.2
},
{
"id": "db6038cb-5a52-420d-abd5-4655e2f383f0",
"name": "设置字段",
"type": "n8n-nodes-base.set",
"position": [
816,
400
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "2a756e70-4b34-4595-a1cb-a8e6dd715f07",
"name": "text",
"type": "string",
"value": "={{ $json.content }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "bf9bf0f4-1315-4816-91ff-9b53c6bf9423",
"name": "转换为文本",
"type": "n8n-nodes-base.extractFromFile",
"position": [
816,
768
],
"parameters": {
"options": {},
"operation": "pdf"
},
"typeVersion": 1
},
{
"id": "f34b4745-ebd6-430b-88c6-9c34d0e4b03d",
"name": "下载 PDF",
"type": "n8n-nodes-base.googleDrive",
"position": [
608,
768
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {},
"operation": "download",
"authentication": "oAuth2",
"binaryPropertyName": "=data"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "6hdkTGuRRpQ6NGmj",
"name": "Google Drive account"
}
},
"typeVersion": 1
},
{
"id": "4c376f18-39b0-4832-9fe9-2d574e2e31b3",
"name": "发送消息到 Slack 频道",
"type": "n8n-nodes-base.slack",
"position": [
1776,
384
],
"webhookId": "5c1613ef-6856-4a87-95b5-dda331a04a8c",
"parameters": {
"text": "={{ $json.output }}",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C096E5P119V",
"cachedResultName": "general"
},
"otherOptions": {},
"authentication": "oAuth2"
},
"credentials": {
"slackOAuth2Api": {
"id": "ntTzsGmt8PVJZSJL",
"name": "Slack account"
}
},
"typeVersion": 2.3
},
{
"id": "ab6365c4-bba3-42fa-b702-fe4f5183ccc9",
"name": "邮件发送摘要",
"type": "n8n-nodes-base.gmail",
"position": [
1792,
656
],
"webhookId": "9e12e184-df96-4d24-ad0f-f3f9ce1582f7",
"parameters": {
"sendTo": "krishna@triggerall.com",
"message": "={{ $json.output }}",
"options": {
"appendAttribution": false
},
"subject": "Doc Summary",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "bkdHqAeZVazFcy8X",
"name": "Gmail account KOW"
}
},
"typeVersion": 2.1
},
{
"id": "da8dfa4a-23ca-469f-ad13-9811184a3308",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
272
],
"parameters": {
"color": 4,
"width": 560,
"height": 688,
"content": "## 📑 自动触发与检查文件类型"
},
"typeVersion": 1
},
{
"id": "d6411536-3cb7-499d-b27b-c18cf9a09e1d",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
512,
272
],
"parameters": {
"color": 6,
"width": 480,
"height": 320,
"content": "## 📑 文档、TXT 文件路径"
},
"typeVersion": 1
},
{
"id": "cd769f6e-9ffb-431f-8c10-62a6ad85e452",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1024,
272
],
"parameters": {
"width": 624,
"height": 688,
"content": "## 📑 文档摘要生成"
},
"typeVersion": 1
},
{
"id": "8515df5f-189b-4c8a-8ca8-2c0329544aad",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1680,
272
],
"parameters": {
"color": 7,
"width": 336,
"height": 688,
"content": "## 📑 通知器"
},
"typeVersion": 1
},
{
"id": "ba29ca4f-8f7b-44f5-ae89-c53c88e288eb",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
512,
624
],
"parameters": {
"color": 6,
"width": 480,
"height": 336,
"content": "## 📑 PDF 文件路径"
},
"typeVersion": 1
},
{
"id": "68ce3cde-5de5-4eed-be04-e98ffb53412a",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1088,
64
],
"parameters": {
"width": 928,
"height": 1200,
"content": "# 🛠️ 设置指南"
},
"typeVersion": 1
},
{
"id": "d0cae7fa-fd10-4a7b-95ba-5e864357d94c",
"name": "文档摘要生成器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1232,
544
],
"parameters": {
"text": "=Summarize the following document in less than 300 characters:{{ $json.text }}",
"options": {
"systemMessage": "=You are a concise, factual document summarizer. \n\n- Title: short title (<= 60 chars)\n- Summary: concise summary (3–5 sentences; <= 300 characters)\n- Key Points: array of up to 5 short bullet points (each <= 140 chars)\n- Action Items: array of up to 3 suggested actions (may be empty)\n- Language: 2-letter ISO code of detected language (e.g., \"en\")\n- Sentiment: \"positive\", \"neutral\", or \"negative\"\n- Truncated: boolean (true if input was trimmed / chunked)\n- Summary Length Chars: integer (actual character length of summary)\n- Max Tokens: 200-300\n\nRules:\n1. Keep the summary factual; do not invent facts or dates. If unsure, use \"likely\" or omit the fact.\n2. If the input contains clear dates, people, numbers or deadlines, include them in key_points.\n5. Always follow the character / length constraints above."
},
"promptType": "define"
},
"typeVersion": 2.2
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "14a6ff36-644a-4db4-9a6b-ad48392fccfa",
"connections": {
"Set Field": {
"main": [
[
{
"node": "Doc Summarizer",
"type": "main",
"index": 0
}
]
]
},
"Download PDF": {
"main": [
[
{
"node": "Convert to Text",
"type": "main",
"index": 0
}
]
]
},
"File Created": {
"main": [
[
{
"node": "Check Document Type",
"type": "main",
"index": 0
}
]
]
},
"Doc Summarizer": {
"main": [
[
{
"node": "Send message to Slack Channel",
"type": "main",
"index": 0
},
{
"node": "Email the Summary",
"type": "main",
"index": 0
}
]
]
},
"Get a document": {
"main": [
[
{
"node": "Set Field",
"type": "main",
"index": 0
}
]
]
},
"Convert to Text": {
"main": [
[
{
"node": "Doc Summarizer",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Doc Summarizer",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Check Document Type": {
"main": [
[
{
"node": "Get a document",
"type": "main",
"index": 0
}
],
[
{
"node": "Download PDF",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 文档提取, AI 摘要总结, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-4o、GoHighLevel、Google Drive、Slack和Gmail自动化客户入职
使用GPT-4o、GoHighLevel、Google Drive、Slack和Gmail自动化客户入职
Set
Gmail
Slack
+10
17 节点Adam Crafts
AI 摘要总结
使用GPT-4o-mini、Asana、Slack、Google Drive和Gmail自动化客户入职
使用GPT-4o-mini、Asana、Slack、Google Drive和Gmail自动化客户入职
Set
Asana
Gmail
+10
19 节点Adam Crafts
AI 摘要总结
自动向客户发送发票
通过 OCR.Space、GPT-4 和 Google Drive 到 Gmail 实现发票处理的自动化
If
Set
Code
+12
29 节点Michael Taleb
AI 摘要总结
从PDF起草摘要工作流
使用Google Drive、GPT-4和邮件通知从PDF生成专业文档草稿
Set
Code
Gmail
+8
14 节点Michael Gullo
文档提取
✨🩷自动化社交媒体内容发布工厂 + 系统提示组合
基于动态系统提示和GPT-4o的AI驱动多平台社交媒体内容工厂
If
Set
Code
+20
100 节点Amit Mehta
内容创作
✨🩷自动化社交媒体内容发布工厂 + 系统提示组合
使用GPT-4o为6个平台生成平台优化的社交媒体内容
If
Set
Code
+20
100 节点Luan Correia
社交媒体
工作流信息
难度等级
高级
节点数量16
分类3
节点类型11
作者
Krishna Sharma
@triggerallWith 5+ years of experience, I help operations, sales, and marketing teams as well as founders, solopreneurs, freelancers, and growing businesses to streamline workflows and automate processes using n8n. 🚀 Need custom automation? Use the link below to book your initial consultation and let's build something powerful together.
外部链接
在 n8n.io 查看 →
分享此工作流