使用VLM Run AI和Gmail提醒从Google Drive图片提取考勤数据到Sheets
中级
这是一个自动化工作流,包含 11 个节点。主要使用 Gmail, Webhook, GoogleDrive, HttpRequest, VlmRun 等节点。 使用VLM Run AI和Gmail提醒从Google Drive图片提取考勤数据到Sheets
前置要求
- •Google 账号和 Gmail API 凭证
- •HTTP Webhook 端点(n8n 会自动生成)
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
分类
-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "96d35e452e0d9a182973416b7532cfc5643239aaaa764a5bf74d52ca84f4a35c",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "0968592f-243a-4fb9-809c-2434e9375da3",
"name": "VLM Run 用于提取",
"type": "@vlm-run/n8n-nodes-vlmrun.vlmRun",
"position": [
496,
-96
],
"parameters": {
"operation": "executeAgent",
"agentPrompt": "=Analyze the image of user list names and show them in the following json format, make sure to follow this exact structure, where val1 will be current date, val2 will be total user count and rest of the values will be the user names:\n{ \\\"majorDimension\\\": \\\"ROWS\\\", \\\"values\\\": [ [\\\"val1\\\", \\\"val2\\\"] ] }",
"agentCallbackUrl": "https://playground.attensys.ai/webhook/check-attendance"
},
"credentials": {
"vlmRunApi": {
"id": "B7ZYM8AfBgjnOEOl",
"name": "VLM Run account 5"
}
},
"typeVersion": 1
},
{
"id": "32cf5900-f3f2-4a05-b3d0-97848189f513",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
864,
-480
],
"parameters": {
"color": 7,
"width": 464,
"height": 576,
"content": "## 🟣 追加到 Sheets + 发送电子邮件"
},
"typeVersion": 1
},
{
"id": "e37ad5b4-1df1-4d4c-b07a-358ea7c2f8ef",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
432,
-480
],
"parameters": {
"width": 416,
"height": 576,
"content": "## 🟡 VLM Run:提取逻辑"
},
"typeVersion": 1
},
{
"id": "c4b6f7e3-31ff-49ff-9640-c90950141a33",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-480
],
"parameters": {
"color": 7,
"width": 416,
"height": 576,
"content": "## 🟢 Google Drive:监控和下载"
},
"typeVersion": 1
},
{
"id": "fbb0adca-34a1-41c0-847b-5fb7304f2c4a",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-864
],
"parameters": {
"color": 7,
"width": 848,
"height": 368,
"content": "## 🧾 出席提取流水线"
},
"typeVersion": 1
},
{
"id": "3d69f4a9-20f0-487e-9402-cd7f2ec1bd73",
"name": "接收列表",
"type": "n8n-nodes-base.webhook",
"position": [
704,
-96
],
"webhookId": "706a3754-0987-4153-9193-29c27827d442",
"parameters": {
"path": "check-attendance",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2.1
},
{
"id": "0e9e1a63-80b6-4366-bbf9-dd18bfab4efb",
"name": "监控列表上传",
"type": "n8n-nodes-base.googleDriveTrigger",
"notes": "Monitors Google Drive folder for new receipt uploads and triggers processing automatically.",
"position": [
64,
-96
],
"parameters": {
"event": "fileCreated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "1S6baavqJn98MjUlbB6KtmARCWuWEekIZ",
"cachedResultUrl": "https://drive.google.com/drive/folders/1S6baavqJn98MjUlbB6KtmARCWuWEekIZ",
"cachedResultName": "test_data"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "zYyIOFMdGz258avn",
"name": "Google Drive account 6"
}
},
"typeVersion": 1
},
{
"id": "bcdf4ec9-602c-402b-a929-54a0b73f2d70",
"name": "下载列表",
"type": "n8n-nodes-base.googleDrive",
"notes": "Downloads receipt files from Google Drive for AI processing.",
"position": [
240,
-96
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {
"binaryPropertyName": "data"
},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "zYyIOFMdGz258avn",
"name": "Google Drive account 6"
}
},
"typeVersion": 3
},
{
"id": "93549d62-06ba-491d-bb82-c9c79beeca71",
"name": "将新出席追加到 Sheet",
"type": "n8n-nodes-base.httpRequest",
"position": [
944,
-80
],
"parameters": {
"url": "https://sheets.googleapis.com/v4/spreadsheets/1lg0aJKvd7E2pbhumHNjcgxUfEQKvlBs9h1zZbhSeqas/values/Sheet1!A:Z:append",
"method": "POST",
"options": {},
"jsonBody": "={{ $json.body.response }}",
"sendBody": true,
"sendQuery": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"queryParameters": {
"parameters": [
{
"name": "valueInputOption",
"value": "RAW"
},
{
"name": "insertDataOption",
"value": "INSERT_ROWS"
},
{
"name": "includeValuesInResponse",
"value": "true"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"nodeCredentialType": "googleSheetsOAuth2Api"
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "sdLQgQJjowDNfXMU",
"name": "Google Sheets account 7"
}
},
"typeVersion": 4.2
},
{
"id": "bc39bbf9-24a1-422a-99d8-d318bb15c59c",
"name": "发送消息",
"type": "n8n-nodes-base.gmail",
"position": [
1168,
-80
],
"webhookId": "dc974b24-8060-48c3-a143-c4441b191061",
"parameters": {
"sendTo": "mehediahamed@iut-dhaka.edu",
"message": "={{\n(() => {\n const raw = $json.updates?.updatedData?.values;\n\n // Normalize to a flat array of strings\n const parts = Array.isArray(raw)\n ? (Array.isArray(raw[0]) ? raw[0] : raw).map(String)\n : String(raw || \"\").split(\",\").map(s => s.trim());\n\n if (!parts.length) return \"No data received\";\n\n const date = parts[0];\n const total = parts[1];\n const names = parts.slice(2).filter(Boolean);\n\n // Optional pretty date without relying on timezone parsing\n const prettyDate = /^(\\d{4})-(\\d{2})-(\\d{2})$/.test(date)\n ? date.replace(/^(\\d{4})-(\\d{2})-(\\d{2})$/, \"$3-$2-$1\")\n : date;\n\n const list = names.map((n, i) => `${i + 1}. ${n}`).join(\"<br>\");\n\n return `Today's Attendance List (${prettyDate})<br>Total: ${total}<br>${list}`;\n})()\n}}\n",
"options": {},
"subject": "Attendance List"
},
"credentials": {
"gmailOAuth2": {
"id": "GrK9vxqscIwcG24Y",
"name": "Gmail account 4"
}
},
"typeVersion": 2.1
},
{
"id": "4c50399f-3901-4067-859c-241834696ea5",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
864,
-640
],
"parameters": {
"color": 5,
"width": 464,
"height": 144,
"content": "## 📝 Webhook:设置公共回调 URL"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Download List": {
"main": [
[
{
"node": "VLM Run for Extraction",
"type": "main",
"index": 0
}
]
]
},
"Receives the list": {
"main": [
[
{
"node": "Append New Attendance to Sheet",
"type": "main",
"index": 0
}
]
]
},
"Monitor List Uploads": {
"main": [
[
{
"node": "Download List",
"type": "main",
"index": 0
}
]
]
},
"Append New Attendance to Sheet": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Google Drive文档内嵌图片提取
使用VLM Run Agent从Google Drive文档中提取内嵌图片
Webhook
Split Out
Google Drive
+4
11 节点Shahrear
提取法律合同数据并使用VLM Run、Google Workspace和Slack发送提醒
提取法律合同数据并使用VLM Run、Google Workspace和Slack发送提醒
Set
Code
Slack
+7
14 节点Shahrear
AI简历处理与GitHub分析(VLM运行)
AI简历处理与GitHub分析(VLM运行)
If
Code
Gmail
+7
18 节点Shahrear
人工智能
使用Google Drive、VLM Run和Airtable自动化收据处理用于费用跟踪
通过Google Drive、VLM Run和Airtable实现费用跟踪收据处理的自动化
Set
Airtable
Google Drive
+3
9 节点Shahrear
杂项
建筑蓝图至Google Sheets自动化
使用VLM Run和Google Drive实现建筑蓝图至Google Sheets自动化
Google Drive
Google Sheets
Vlm Run
+2
8 节点Shahrear
AI 摘要总结
文档医嘱提取至Google表格(VLM Run AI)
使用VLM Run AI从文档中提取医嘱至Google表格
Google Drive
Google Sheets
Vlm Run
+2
8 节点Shahrear
AI 摘要总结
工作流信息
难度等级
中级
节点数量11
分类-
节点类型7
作者
Shahrear
@shahrearI’m Shahrear, a Software Engineer with over 5 years of experience in full-stack development and workflow automation. I specialize in building intelligent automations using n8n, helping teams streamline operations and boost productivity. I’m also an expert in developing custom n8n nodes, with published work on npm - including the @vlm-run/n8n-nodes-vlmrun package. Linkedin - https://www.linkedin.com/in/shahrear-amin/ Email - shahrearbinamin33@gmail.com
外部链接
在 n8n.io 查看 →
分享此工作流