自动财务追踪器:同步收据、预测现金流并获取月度报告
高级
这是一个Invoice Processing, AI Summarization, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Set, Cron, Gmail, OpenAi 等节点。 使用Gmail、Google Sheets和GPT-4o月度报告的自动化财务追踪器
前置要求
- •Google 账号和 Gmail API 凭证
- •OpenAI API Key
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"templateCreatedBy": {
"id": "template-creator",
"name": "n8n Template Creator"
},
"templateCredentials": [
"gmailOAuth2",
"googleSheetsOAuth2Api",
"openAiApi",
"smtp"
]
},
"name": "自动财务追踪器:同步收据、预测现金流并获取月度报告",
"nodes": [
{
"id": "sticky-description",
"name": "📋 模板描述",
"type": "n8n-nodes-base.stickyNote",
"position": [
50,
50
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "cron-trigger-node",
"name": "月度报告触发器",
"type": "n8n-nodes-base.cron",
"position": [
250,
100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "user-config",
"name": "用户配置",
"type": "n8n-nodes-base.set",
"position": [
50,
200
],
"parameters": {},
"typeVersion": 2
},
{
"id": "gmail-fetch-node",
"name": "获取收据邮件",
"type": "n8n-nodes-base.gmail",
"position": [
250,
300
],
"parameters": {},
"typeVersion": 2
},
{
"id": "gmail-get-attachments",
"name": "获取带附件的邮件",
"type": "n8n-nodes-base.gmail",
"position": [
450,
300
],
"parameters": {},
"typeVersion": 2
},
{
"id": "parse-email-body",
"name": "解析邮件正文并检查附件",
"type": "n8n-nodes-base.function",
"position": [
650,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ai-extract-receipt",
"name": "AI:提取收据数据 (GPT-4o)",
"type": "n8n-nodes-base.openAi",
"position": [
850,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "clean-ai-output",
"name": "清理并解析AI输出",
"type": "n8n-nodes-base.function",
"position": [
1050,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "check-duplicates",
"name": "检查重复项",
"type": "n8n-nodes-base.googleSheets",
"position": [
1250,
300
],
"parameters": {},
"typeVersion": 4
},
{
"id": "filter-missing-vendor",
"name": "过滤器:缺少供应商时跳过",
"type": "n8n-nodes-base.if",
"position": [
1450,
300
],
"parameters": {},
"typeVersion": 2
},
{
"id": "append-to-sheet",
"name": "追加到财务表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
1650,
300
],
"parameters": {},
"typeVersion": 4
},
{
"id": "generate-date-range",
"name": "生成月份范围",
"type": "n8n-nodes-base.function",
"position": [
450,
100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "read-finance-data",
"name": "读取所有财务数据",
"type": "n8n-nodes-base.googleSheets",
"position": [
650,
100
],
"parameters": {},
"typeVersion": 4
},
{
"id": "aggregate-monthly",
"name": "汇总月度数据",
"type": "n8n-nodes-base.function",
"position": [
850,
100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ai-generate-insights",
"name": "AI:生成洞察分析",
"type": "n8n-nodes-base.openAi",
"position": [
1050,
100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "generate-chart",
"name": "生成图表和最终数据",
"type": "n8n-nodes-base.function",
"position": [
1250,
100
],
"parameters": {},
"typeVersion": 1
},
{
"id": "email-report",
"name": "发送月度报告",
"type": "n8n-nodes-base.emailSend",
"position": [
1450,
100
],
"parameters": {},
"typeVersion": 2
}
],
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "v2.1-production-ready",
"connections": {
"Check for Duplicates": {
"main": [
[
{
"node": "Filter: Skip if Missing Vendor",
"type": "main",
"index": 0
}
]
]
},
"Fetch Receipt Emails": {
"main": [
[
{
"node": "Get Email with Attachments",
"type": "main",
"index": 0
}
]
]
},
"Generate Month Range": {
"main": [
[
{
"node": "Read All Finance Data",
"type": "main",
"index": 0
}
]
]
},
"AI: Generate Insights": {
"main": [
[
{
"node": "Generate Chart & Final Data",
"type": "main",
"index": 0
}
]
]
},
"Read All Finance Data": {
"main": [
[
{
"node": "Aggregate Monthly Data",
"type": "main",
"index": 0
}
]
]
},
"Aggregate Monthly Data": {
"main": [
[
{
"node": "AI: Generate Insights",
"type": "main",
"index": 0
}
]
]
},
"Monthly Report Trigger": {
"main": [
[
{
"node": "Generate Month Range",
"type": "main",
"index": 0
},
{
"node": "Fetch Receipt Emails",
"type": "main",
"index": 0
}
]
]
},
"Clean & Parse AI Output": {
"main": [
[
{
"node": "Check for Duplicates",
"type": "main",
"index": 0
}
]
]
},
"Get Email with Attachments": {
"main": [
[
{
"node": "Parse Email Body & Check Attachments",
"type": "main",
"index": 0
}
]
]
},
"Generate Chart & Final Data": {
"main": [
[
{
"node": "Send Monthly Report",
"type": "main",
"index": 0
}
]
]
},
"Filter: Skip if Missing Vendor": {
"main": [
[
{
"node": "Append to Finance Sheet",
"type": "main",
"index": 0
}
]
]
},
"AI: Extract Receipt Data (GPT-4o)": {
"main": [
[
{
"node": "Clean & Parse AI Output",
"type": "main",
"index": 0
}
]
]
},
"Parse Email Body & Check Attachments": {
"main": [
[
{
"node": "AI: Extract Receipt Data (GPT-4o)",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 发票处理, AI 摘要总结, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
自动化客户培育邮件与Notion客户评价收集
使用WhatsApp、GPT-4V和Google Sheets提取并整理收据数据
If
Code
Notion
+7
18 节点Shelly-Ann Davy
发票处理
宁静 CFO 日出 — 软科技晨间简报(家庭 CEO)🌸
🌸 CFO 日出 — 面向家庭 CEO 的软科技晨间简报(n8n 模板)
Set
Cron
Open Ai
+6
15 节点Shelly-Ann Davy
个人效率
竞争对手内容差距分析器:自动化网站主题映射
使用Gemini AI、Apify和Google Sheets分析竞争对手内容差距
If
Set
Code
+10
30 节点Mychel Garzon
杂项
使用AI求职信自动搜索职位
使用 Google Jobs、RemoteOK 和 GPT-3.5 自动化带AI求职信的职位搜索
If
Set
Code
+7
17 节点Shelly-Ann Davy
个人效率
从Notion自动执行客户培育邮件和评价收集
通过Telegram使用Google日历和Notion CRM自动化会议安排
If
Set
Code
+8
19 节点Shelly-Ann Davy
客服机器人
GRC模块3:供应商风险评估器
使用 AI、Google Sheets 和邮件提醒自动化供应商风险评估
If
Set
Gmail
+4
7 节点Adnan Tariq
AI 摘要总结
工作流信息
难度等级
高级
节点数量17
分类3
节点类型9
作者
Shelly-Ann Davy
@SheCodesFlowFounder of The Workflow Muse & @SheCodesFlow. I craft elegant, task-focused automations for creators, founders, and soft-tech enthusiasts. “Automate with grace. Scale with power.”
外部链接
在 n8n.io 查看 →
分享此工作流