使用OpenAI GPT处理和总结来自电子邮件和消息应用的PDF文件
高级
这是一个Document Extraction, AI Summarization领域的自动化工作流,包含 28 个节点。主要使用 If, Set, Code, Gmail, Telegram 等节点。 使用OpenAI GPT处理和总结来自电子邮件和消息应用的PDF文件
前置要求
- •Google 账号和 Gmail API 凭证
- •Telegram Bot Token
- •OpenAI API Key
使用的节点 (28)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "d676ca133e785c55adbd7cf57468d0fee5019c42ddfdd87619722b0202e86f34",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "8d587c30-1a5e-41e0-a57a-d8f6ea9b813b",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3900,
580
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e0916c2e-8bf6-4d6f-a524-49321dfd36dc",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3040,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f20b63e7-27c5-4110-89d8-d9a60749ef64",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3320,
980
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a6deede2-b4db-411d-a0b8-c638e47e5cce",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1920,
800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9c9e9fc3-c529-443c-92af-563e484255d4",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1140,
460
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ff05f9ad-a677-4427-bd04-61fe199c83b7",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2200,
160
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d14ac774-ed2f-4afd-a719-b2974e023cae",
"name": "Gmail 邮件监控器",
"type": "n8n-nodes-base.gmail",
"position": [
-2980,
580
],
"webhookId": "39550326-fad4-4d2e-97da-b51b0ae14af9",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "f3f13448-dcbc-4bff-8fac-40b4637c750c",
"name": "Outlook 邮件监控器",
"type": "n8n-nodes-base.microsoftOutlook",
"position": [
-2980,
780
],
"webhookId": "b34f3373-fd36-4a2a-8cd1-3b3e05efc768",
"parameters": {},
"typeVersion": 2
},
{
"id": "12462284-5842-4e01-9155-828f5001878d",
"name": "Telegram 机器人接收器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-2980,
980
],
"webhookId": "2ab7f854-611e-4d05-a151-340e3e7fb260",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "beae0c9d-1b1e-47c0-a606-ed0e28c5b30b",
"name": "WhatsApp Business 接收器",
"type": "n8n-nodes-base.whatsAppTrigger",
"position": [
-2980,
1180
],
"webhookId": "e4b74c45-c59b-4d5c-8888-3a92ac7be060",
"parameters": {},
"typeVersion": 1
},
{
"id": "d047490e-d5ea-42cc-a939-8becf9cf1d99",
"name": "验证 Telegram PDF",
"type": "n8n-nodes-base.if",
"position": [
-2540,
980
],
"parameters": {},
"typeVersion": 2
},
{
"id": "9188b990-514b-4953-8366-5f78408fc430",
"name": "验证 WhatsApp PDF",
"type": "n8n-nodes-base.if",
"position": [
-2540,
1180
],
"parameters": {},
"typeVersion": 2
},
{
"id": "35eda327-2c0a-4616-b60b-a57b46bfcf16",
"name": "提取 PDF 文本内容",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-2100,
980
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7a9a3361-c25b-460b-8544-6542d2775692",
"name": "准备响应数据",
"type": "n8n-nodes-base.set",
"position": [
-1504,
980
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "afbdabae-a4c0-4f21-a8e1-64f1df2a3052",
"name": "按平台路由响应",
"type": "n8n-nodes-base.if",
"position": [
-1284,
980
],
"parameters": {},
"typeVersion": 2
},
{
"id": "40dfaf0a-8633-4957-aa3a-08ebfe661069",
"name": "发送 WhatsApp 摘要",
"type": "n8n-nodes-base.whatsApp",
"position": [
-1064,
880
],
"webhookId": "fa20e956-7bb6-4e76-ad9a-4f2c7fba6a81",
"parameters": {},
"typeVersion": 1
},
{
"id": "5ea8d3d6-0fb6-4341-b747-97dcafe40ae3",
"name": "发送 Telegram 摘要",
"type": "n8n-nodes-base.telegram",
"position": [
-1060,
1080
],
"webhookId": "ddc96a18-a5df-47ce-9faf-7ca672051dfb",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "8458ae5f-c99f-4b34-bc3e-fdfda72722cd",
"name": "通知邮件 PDF 处理",
"type": "n8n-nodes-base.whatsApp",
"position": [
-1064,
680
],
"webhookId": "4581438c-b751-4277-9595-6ed5d958e3d7",
"parameters": {},
"typeVersion": 1
},
{
"id": "761b32c6-2b9e-42a4-841b-40380dcb6ac1",
"name": "AI PDF 摘要生成器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1880,
980
],
"parameters": {},
"typeVersion": 2
},
{
"id": "a25a69bf-f3cc-4afb-b285-92cf7f4f6ccc",
"name": "检查邮件附件1",
"type": "n8n-nodes-base.if",
"position": [
-2540,
680
],
"parameters": {},
"typeVersion": 2
},
{
"id": "5fb40a4e-ff33-4d36-951e-a8a610933b8b",
"name": "提取 Gmail 数据",
"type": "n8n-nodes-base.set",
"position": [
-2760,
580
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "b96a5582-7d95-4f28-a538-03b59c3f8623",
"name": "提取 Outlook 数据",
"type": "n8n-nodes-base.set",
"position": [
-2760,
780
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "5b9b94c5-f3c9-4f9b-9ae0-cf7c44c9a546",
"name": "提取 Telegram 数据",
"type": "n8n-nodes-base.set",
"position": [
-2760,
980
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "5d5ad692-a4ad-494b-a1b8-232bd0c6c8f3",
"name": "提取 WhatsApp 数据",
"type": "n8n-nodes-base.set",
"position": [
-2760,
1180
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "a548d201-851b-4cdd-bbc4-fb07ef5ae0ac",
"name": "下载 WhatsApp PDF",
"type": "n8n-nodes-base.whatsApp",
"position": [
-2320,
1180
],
"webhookId": "7f3a9d4a-dd48-4069-8c5f-6881d470360f",
"parameters": {},
"typeVersion": 1
},
{
"id": "e9f76e99-ae72-4914-a6ac-07f77382a177",
"name": "下载 Telegram PDF",
"type": "n8n-nodes-base.telegram",
"position": [
-2320,
980
],
"webhookId": "2a00b041-ca58-4737-8a28-85d72df53b05",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "514ebc83-def4-43fd-9765-60cff2650524",
"name": "筛选 PDF 附件",
"type": "n8n-nodes-base.code",
"position": [
-2320,
680
],
"parameters": {},
"typeVersion": 2
},
{
"id": "65c75ced-a300-4c11-b1c1-3a84f7f7030a",
"name": "生成 PDF 摘要",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1800,
1200
],
"parameters": {},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"Summarize PDF": {
"ai_languageModel": [
[
{
"node": "AI PDF Summarizer",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"AI PDF Summarizer": {
"main": [
[
{
"node": "Prepare Response Data",
"type": "main",
"index": 0
}
]
]
},
"Extract Gmail Data": {
"main": [
[
{
"node": "Check Email Attachments1",
"type": "main",
"index": 0
}
]
]
},
"Gmail Email Monitor": {
"main": [
[
{
"node": "Extract Gmail Data",
"type": "main",
"index": 0
}
]
]
},
"Extract Outlook Data": {
"main": [
[
{
"node": "Check Email Attachments1",
"type": "main",
"index": 0
}
]
]
},
"Download Telegram PDF": {
"main": [
[
{
"node": "Extract PDF Text Content",
"type": "main",
"index": 0
}
]
]
},
"Download WhatsApp PDF": {
"main": [
[
{
"node": "Extract PDF Text Content",
"type": "main",
"index": 0
}
]
]
},
"Extract Telegram Data": {
"main": [
[
{
"node": "Validate Telegram PDF",
"type": "main",
"index": 0
}
]
]
},
"Extract WhatsApp Data": {
"main": [
[
{
"node": "Validate WhatsApp PDF",
"type": "main",
"index": 0
}
]
]
},
"Outlook Email Monitor": {
"main": [
[
{
"node": "Extract Outlook Data",
"type": "main",
"index": 0
}
]
]
},
"Prepare Response Data": {
"main": [
[
{
"node": "Route Response by Platform",
"type": "main",
"index": 0
}
]
]
},
"Telegram Bot Receiver": {
"main": [
[
{
"node": "Extract Telegram Data",
"type": "main",
"index": 0
}
]
]
},
"Validate Telegram PDF": {
"main": [
[
{
"node": "Download Telegram PDF",
"type": "main",
"index": 0
}
]
]
},
"Validate WhatsApp PDF": {
"main": [
[
{
"node": "Download WhatsApp PDF",
"type": "main",
"index": 0
}
]
]
},
"Filter PDF Attachments": {
"main": [
[
{
"node": "Extract PDF Text Content",
"type": "main",
"index": 0
}
]
]
},
"Check Email Attachments1": {
"main": [
[
{
"node": "Filter PDF Attachments",
"type": "main",
"index": 0
}
]
]
},
"Extract PDF Text Content": {
"main": [
[
{
"node": "AI PDF Summarizer",
"type": "main",
"index": 0
}
]
]
},
"Route Response by Platform": {
"main": [
[
{
"node": "Send WhatsApp Summary",
"type": "main",
"index": 0
},
{
"node": "Notify Email PDF Processing",
"type": "main",
"index": 0
}
],
[
{
"node": "Send Telegram Summary",
"type": "main",
"index": 0
},
{
"node": "Notify Email PDF Processing",
"type": "main",
"index": 0
}
]
]
},
"WhatsApp Business Receiver": {
"main": [
[
{
"node": "Extract WhatsApp Data",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 文档提取, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
商业AI指挥中心:Google Workspace模块化代理、向量搜索与多渠道报告
商业AI指挥中心:Google Workspace模块化代理、向量搜索与多渠道报告
Set
Gmail
Slack
+35
80 节点Paul
文档提取
使用GPT-4o-mini自动化从Gmail到Google Sheets的酒店预订请求
通过GPT-4o-mini将Gmail中的酒店预订请求自动录入Google Sheets
If
Set
Code
+8
29 节点Gtaras
文档提取
使用GPT-5、知识检索和文档上下文自动化HighLevel CRM
通过GPT-5、知识检索和文档上下文自动化HighLevel CRM
Set
Gmail
Slack
+25
55 节点Paul
客户关系管理
美甲沙龙(美国)
使用WhatsApp、GPT和Google日历自动化沙龙预约管理
If
Set
Code
+20
164 节点Denis
客户支持
AI驱动的文档摘要生成器与通知器
使用GPT-4汇总Google文档和PDF并发送到Slack或邮件
If
Set
Gmail
+8
16 节点Krishna Sharma
文档提取
第一轮 Telegram 和 LinkedIn 快速通道 AI 招聘助手
AI候选人筛选流程:LinkedIn到Telegram,集成Gemini与Apify
If
Set
Code
+15
55 节点Dean Pike
人力资源
工作流信息
难度等级
高级
节点数量28
分类2
节点类型13
作者
papcy
@papcy- AI-Powered Software Consultant - AI-DRIVEN SOFTWARE INNOVATOR - AI DEVELOPER & SYSTEM INTEGRATOR
外部链接
在 n8n.io 查看 →
分享此工作流