使用Mistral AI总结Google Drive文档并通过Gmail发送
初级
这是一个AI领域的自动化工作流,包含 5 个节点。主要使用 Gmail, GoogleDrive, ManualTrigger, ChainSummarization, LmChatMistralCloud 等节点,结合人工智能技术实现智能自动化。 使用Mistral AI总结Google Drive文档并通过Gmail发送
前置要求
- •Google 账号和 Gmail API 凭证
- •Google Drive API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "Jy1RMuri0WJO5aO4",
"meta": {
"instanceId": "c4e0aa659a8ba8396fb6bfa469d1eafbfbfff96c330631376e31cb897259826e",
"templateCredsSetupCompleted": true
},
"name": "使用 Mistral AI 总结 Google Drive 文档并通过 Gmail 发送",
"tags": [
{
"id": "USkRpjRpntFcI8VH",
"name": "working",
"createdAt": "2025-03-09T00:24:01.723Z",
"updatedAt": "2025-03-09T00:24:01.723Z"
}
],
"nodes": [
{
"id": "680f9002-94fa-48c1-af5f-d2a5305b6291",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
0,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3fa4ad1a-ce87-44db-b016-bd172c2318eb",
"name": "Mistral Cloud Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
"position": [
500,
240
],
"parameters": {
"options": {}
},
"credentials": {
"mistralCloudApi": {
"id": "temjibUluGywOSoS",
"name": "Mistral Cloud account"
}
},
"typeVersion": 1
},
{
"id": "124d62ae-3b46-4e75-a04e-155849fe280d",
"name": "从 Google Drive 下载上传的文件",
"type": "n8n-nodes-base.googleDrive",
"position": [
220,
0
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "list",
"value": "1d0njBA2ZM0zYyJOEbUeFwQmHSYIO7IM2",
"cachedResultUrl": "https://drive.google.com/file/d/1d0njBA2ZM0zYyJOEbUeFwQmHSYIO7IM2/view?usp=drivesdk",
"cachedResultName": "Goods and Services Receipt(WCC).pdf"
},
"options": {},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "7xFbFgdSc78zERPk",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "69b7621b-a273-4b0a-be61-4d45bf87618d",
"name": "使用摘要链总结文件内容",
"type": "@n8n/n8n-nodes-langchain.chainSummarization",
"position": [
480,
0
],
"parameters": {
"options": {
"binaryDataKey": "data"
},
"chunkSize": 800,
"chunkOverlap": 0,
"operationMode": "nodeInputBinary"
},
"typeVersion": 2
},
{
"id": "573194cd-5f37-422f-b3fa-957187ac3538",
"name": "将摘要文本发送至 Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
840,
0
],
"webhookId": "215c6c67-612c-4b8d-9849-0b796570003d",
"parameters": {
"sendTo": "swot.ai25@gmail.com",
"message": "=<h1 style=\"color: #4CAF50;\">📌 Quick Summary of Your Document! ✨</h1>\n<p>\n<h2>📝 Summary:</h2>\n<p>\n{{ $json['response']['text'].replace(\"\\n\", \"<br>\") }}\n<p>\n\n<h3>📅 Date Processed: </h3>\n{{ new Date().toLocaleString('en-GB', { timeZone: 'Africa/Lagos' }) }}\n\n\n\n\n\n ",
"options": {
"senderName": "Swot.AI",
"appendAttribution": false
},
"subject": "Here is Your Summarized Response"
},
"credentials": {
"gmailOAuth2": {
"id": "G3K9RkKiyLHtyVzi",
"name": "Gmail account"
}
},
"typeVersion": 2.1
}
],
"active": false,
"pinData": {},
"settings": {
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "8446e524-8468-4515-8778-be94db41d3e3",
"connections": {
"Mistral Cloud Chat Model": {
"ai_languageModel": [
[
{
"node": "Summarization Chain to summarize a file",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Download uploaded File from Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Summarization Chain to summarize a file": {
"main": [
[
{
"node": "Send Summarized text to Gmail",
"type": "main",
"index": 0
}
]
]
},
"Download uploaded File from Google Drive": {
"main": [
[
{
"node": "Summarization Chain to summarize a file",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
初级 - 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用AI轻松管理邮件
AI驱动的邮件摘要与审阅 - 轻松邮件管理
Set
Gmail
Markdown
+15
31 节点Davide
人工智能
邮件AI自动回复器。总结并发送邮件
企业级AI邮件自动化:基于RAG的邮件总结与回复
Markdown
Email Send
Google Drive
+14
26 节点Davide
人工智能
使用AI分析Reddit帖子识别商机
使用AI分析Reddit帖子以识别商业机会
If
Set
Gmail
+10
22 节点Alex Huang
产品
转录评估器
使用DeepGram和GPT-4o的音频对话分析与可视化
Set
Code
Html
+15
54 节点RealSimple Solutions
人工智能
使用Gmail、OpenAI和Google表格自动化敏捷细化准备
使用Gmail、OpenAI和Google表格自动化敏捷细化准备
If
Set
Gmail
+14
51 节点Willemijn
产品
敏捷团队冲刺规划自动化
使用OpenAI、Google日历和Gmail为敏捷团队自动化冲刺规划
If
Set
Code
+17
52 节点Willemijn
产品