使用AI从PDF提取发票数据 - Google Sheets和邮件提醒
这是一个Finance, AI领域的自动化工作流,包含 11 个节点。主要使用 Gmail, GoogleDrive, GoogleSheets, ExtractFromFile, OpenAi 等节点,结合人工智能技术实现智能自动化。 使用AI从PDF提取发票数据 - Google Sheets和邮件提醒
- •Google 账号和 Gmail API 凭证
- •Google Drive API 凭证
- •Google Sheets API 凭证
- •OpenAI API Key
使用的节点 (11)
{
"meta": {
"instanceId": "473ff4054f1a6c3ed6f17a2b4a2e55676fe5b921cceb87b2256e6c416c158559"
},
"nodes": [
{
"id": "76600f2a-f77c-4c95-8df6-e4d44a2d9e9e",
"name": "信息提取器",
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"position": [
1420,
40
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c96acdd1-a755-4700-86b5-c29e8cb5d32d",
"name": "发送电子邮件",
"type": "n8n-nodes-base.gmail",
"position": [
1360,
420
],
"webhookId": "da2aa524-25e5-47e2-bd1a-fe7a97edf8a7",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "ef869446-c764-4957-8c27-4f51410c80c9",
"name": "无操作,不执行任何操作",
"type": "n8n-nodes-base.noOp",
"position": [
1580,
440
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8e257d7c-bd82-44c4-901f-1b35d6ed1033",
"name": "Ollama Model",
"type": "@n8n/n8n-nodes-langchain.lmOllama",
"position": [
1440,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2e5babac-d216-48d5-97c5-7b528078a52a",
"name": "Postgres PGVector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStorePGVector",
"position": [
1380,
680
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0348c94a-d362-4c1f-8679-3d4e0a42ddfb",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-60,
-80
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "fc19ba2d-a2ee-424b-a2f8-49690f1a2f74",
"name": "Google Drive 触发器 - 文件创建",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
0,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f081fb04-9a51-42f5-8664-9fd866de9cf1",
"name": "下载二进制文件 - 文件",
"type": "n8n-nodes-base.googleDrive",
"position": [
220,
0
],
"parameters": {},
"typeVersion": 3
},
{
"id": "470c9772-00cf-420e-876f-7efad7274ca9",
"name": "从 PDF 提取内容",
"type": "n8n-nodes-base.extractFromFile",
"position": [
800,
20
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1cc7eae0-ccab-4c8a-a469-b27a7057d22a",
"name": "创建邮件代理",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1020,
420
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "42588358-40ba-46f7-bb97-38c67c676901",
"name": "更新数据库 - 电子表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
1100,
600
],
"parameters": {},
"typeVersion": 4.5
}
],
"pinData": {},
"connections": {
"Send Email": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Ollama Model": {
"ai_languageModel": [
[
{
"node": "Information Extractor",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Extract from PDF": {
"main": [
[
{
"node": "Information Extractor",
"type": "main",
"index": 0
}
]
]
},
"Create Email Agent": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
},
"Information Extractor": {
"main": [
[
{
"node": "Update DB - spreadsheet",
"type": "main",
"index": 0
}
]
]
},
"Download Binary - file": {
"main": [
[
{
"node": "Extract from PDF",
"type": "main",
"index": 0
},
{
"node": "Update DB - spreadsheet",
"type": "main",
"index": 0
}
]
]
},
"Postgres PGVector Store": {
"ai_tool": [
[
{
"node": "Create Email Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Update DB - spreadsheet": {
"main": [
[
{
"node": "Create Email Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Drive Trigger - file creation": {
"main": [
[
{
"node": "Download Binary - file",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 财务, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Aashit Sharma
@aashitsharmaWith a strong background in AI agent systems, RAG pipelines, and open-source automation tools like n8n, LangChain, and Ollama, Aashit specializes in crafting end-to-end solutions that merge intelligence with efficiency. He has developed multiple production-ready n8n templates — from personalized interview prep systems and document generators to AI-powered support agents — all designed to empower teams with scalable, low-code automation.
分享此工作流