邮件摘要
中级
这是一个Personal Productivity, AI Summarization领域的自动化工作流,包含 8 个节点。主要使用 Code, Gmail, Aggregate, Agent, ScheduleTrigger 等节点。 通过 Gmail 和 OpenRouter 的 GPT-3.5 生成自动化每日邮件摘要
前置要求
- •Google 账号和 Gmail API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "qP5k8BFhuCwgV11k",
"meta": {
"instanceId": "6851c31ef6402f951221982c1f1a22b3b1853c378309b131c1582e19af821817"
},
"name": "邮件摘要",
"tags": [],
"nodes": [
{
"id": "46d63134-365b-4bc5-a657-e0a3743f5cf7",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
640,
352
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 7
}
]
}
},
"typeVersion": 1.2
},
{
"id": "6c1b4568-6665-44d1-b6bc-6bdd846cdd69",
"name": "聚合",
"type": "n8n-nodes-base.aggregate",
"position": [
1280,
352
],
"parameters": {
"include": "specifiedFields",
"options": {
"includeBinaries": false
},
"aggregate": "aggregateAllItemData",
"fieldsToInclude": "id, From, To, Subject, snippet,CC"
},
"typeVersion": 1
},
{
"id": "5f7ac7f7-a583-411f-8868-f6f0f94a053d",
"name": "OpenRouter 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
1504,
512
],
"parameters": {
"model": "openai/gpt-3.5-turbo",
"options": {}
},
"typeVersion": 1
},
{
"id": "35906c87-a40f-4813-be44-8176c841dcfa",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"width": 2080,
"height": 800,
"content": "## 每日邮件摘要 - 工作流概述"
},
"typeVersion": 1
},
{
"id": "1c67630d-b1a1-49b6-bf3e-296671ea69d3",
"name": "获取未读邮件",
"type": "n8n-nodes-base.gmail",
"position": [
1072,
352
],
"webhookId": "c5fbc402-41c9-4cd2-8102-569394b084f1",
"parameters": {
"filters": {
"q": "={{ $json.searchQuery }}"
},
"operation": "getAll",
"returnAll": true
},
"typeVersion": 2.1
},
{
"id": "490e099b-77af-4fdc-8b0f-6119e8858cda",
"name": "摘要",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1504,
352
],
"parameters": {
"text": "={{ $json.data }}",
"options": {
"systemMessage": "=Email Processing System\n\nStep 1: Extract Key Details\nRead the email thoroughly and identify:\n\nMain topics discussed\n\nCritical data points (dates, numbers, names)\n\nExplicit requests or requirements\n\nProblems or concerns raised\n\nStep 2: Organize Output\nSummary of Email\nBullet-point list of key takeaways\n\nExample:\n\nProject deadline extended to March 15\n\nNew compliance rules apply to all vendors\n\nIssues Identified\nList problems with context:\n\nIssue: Vendor delay impacting timeline\n\nImpact: Risk to Q2 launch\n\nAction Items\nClear tasks with owners:\n\nTask: Approve revised budget\n\nOwner: Finance Team\n\nDeadline: EOD Friday\n\nFollow-Up Needed\nOpen questions or missing info:\n\n\"Confirm if the client approved the scope change?\"\n\nRules for Clarity\n✔ Be concise – 1 line per point\n✔ Prioritize – Flag urgent items with [!]\n✔ Ownership – Always note who needs to act\n✔ Use plain language – Avoid jargon\n\nExample Output:\n\nSummary\n\nMarketing campaign paused due to budget review\n\nNew analytics tool rollout delayed by 2 weeks\n\nIssues\n\n[!] Budget approval missing – blocking all spend\n\nLow engagement on recent social posts\n\nActions\n\nSend revised budget to CFO (Owner: Alex)\n\nAudit social content (Owner: Marketing, Due: Nov 30)\n\nFollow-Up\n\nIs the budget review meeting scheduled?"
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "c5895989-9d5f-4337-b5fb-83abeb05be8e",
"name": "发送摘要邮件",
"type": "n8n-nodes-base.gmail",
"position": [
1872,
352
],
"webhookId": "13b2950b-47c0-4578-8c3f-b444d00cb1bd",
"parameters": {
"sendTo": "={{ $('Aggregate').item.json.data[1].To }}",
"message": "={{ $json.output }}",
"options": {
"appendAttribution": false
},
"subject": "Summary Of Emails Last 24 Hours",
"emailType": "text"
},
"typeVersion": 2.1
},
{
"id": "ae322ead-35fd-458e-ba37-263ee2f37e32",
"name": "获取昨天日期",
"type": "n8n-nodes-base.code",
"position": [
848,
352
],
"parameters": {
"jsCode": "const yesterday = new Date();\nyesterday.setDate(yesterday.getDate() - 1);\n\nconst year = yesterday.getFullYear();\nconst month = (yesterday.getMonth() + 1).toString().padStart(2, '0');\nconst day = yesterday.getDate().toString().padStart(2, '0');\n\nconst searchQuery = `<Your Email ID> after:${year}/${month}/${day}`;\n\nreturn [\n {\n json: {\n searchQuery\n }\n }\n];\n"
},
"typeVersion": 2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "87f35ba3-5574-4e08-b77b-b908d05c3118",
"connections": {
"Summary": {
"main": [
[
{
"node": "Send A email of Summary",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Summary",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Fetch Yeasterday's Date",
"type": "main",
"index": 0
}
]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "Summary",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Fetch Yeasterday's Date": {
"main": [
[
{
"node": "Fetch Email Which is Unread",
"type": "main",
"index": 0
}
]
]
},
"Fetch Email Which is Unread": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 个人效率, AI 摘要总结
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 Mistral AI、LinkedIn 和 Google Sheets 自动化职位搜索与简历定制
使用 Mistral AI、LinkedIn 和 Google Sheets 自动化职位搜索与简历定制
Set
Code
Html
+18
46 节点Jordan Hoyle
个人效率
使用Gemini、Slack和Notion从新闻简报创建AI情报摘要
使用Gemini、Slack和Notion从新闻简报创建AI情报摘要
Set
Code
Gmail
+12
19 节点Harry Siggins
杂项
基于AI的政府资助追踪器(RSS → AI → Google Sheets → 电子邮件)
使用OpenRouter AI、RSS源、Google Sheets和Gmail追踪政府资助
Code
Gmail
Aggregate
+9
21 节点Tsubasa Shukuwa
文档提取
发送定时n8n发布说明通知到Gmail
基于AI的n8n发布说明摘要通知(通过Gmail与GPT-5-Mini)
Set
Code
Html
+7
16 节点Jeff Huera
个人效率
生日邮件
使用Google Sheets、OpenRouter GPT-4o和Gmail的自动化生日邮件
Gmail
Filter
Google Sheets
+4
7 节点Parth Pansuriya
个人效率
基于Mistral AI的邮件转任务自动化(Gmail/Outlook转Google Tasks/Microsoft To Do)
基于Mistral AI的邮件转任务自动化(Gmail/Outlook转Google Tasks/Microsoft To Do)
Code
Gmail
Merge
+11
35 节点Jordan Hoyle
个人效率
工作流信息
难度等级
中级
节点数量8
分类2
节点类型7
作者
Parth Pansuriya
@parthpansuriyaI build smart and scalable automation workflows using n8n to simplify tasks, connect apps, and boost productivity. From WhatsApp bots to AI-powered systems, I create seamless automations tailored for business and creators.
外部链接
在 n8n.io 查看 →
分享此工作流