PDF Vector 및 Google Drive를 사용한 자동화 영수증 처리 및 세금 분류
중급
이것은Invoice Processing, AI Summarization, Multimodal AI분야의자동화 워크플로우로, 9개의 노드를 포함합니다.주로 Code, GoogleDrive, GoogleSheets, ManualTrigger, PdfVector 등의 노드를 사용하며. PDF Vector 및 Google Drive를 사용한 자동화된 영수증 처리 및 세금 분류
사전 요구사항
- •Google Drive API 인증 정보
- •Google Sheets API 인증 정보
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "placeholder"
},
"nodes": [
{
"id": "overview-note",
"name": "영수증 개요",
"type": "n8n-nodes-base.stickyNote",
"position": [
50,
50
],
"parameters": {
"color": 5,
"width": 350,
"height": 180,
"content": "## 🧾 Receipt & Tax Tracker\n\nAutomated expense management:\n• **Monitors** receipt folder hourly\n• **Extracts** data from photos/PDFs\n• **Categorizes** for tax purposes\n• **Calculates** deductions\n• **Syncs** with QuickBooks"
},
"typeVersion": 1
},
{
"id": "input-note",
"name": "입력 소스",
"type": "n8n-nodes-base.stickyNote",
"position": [
450,
450
],
"parameters": {
"width": 250,
"height": 150,
"content": "## 📸 Receipt Input\n\nHandles all formats:\n• Phone photos\n• Scanned PDFs\n• Email forwards\n• Poor quality images\n\n💡 OCR enhancement"
},
"typeVersion": 1
},
{
"id": "tax-note",
"name": "세금 범주",
"type": "n8n-nodes-base.stickyNote",
"position": [
850,
450
],
"parameters": {
"color": 4,
"width": 260,
"height": 160,
"content": "## 💰 Tax Logic\n\n**Auto-categorizes:**\n• Travel expenses\n• Office supplies\n• Meals (50% deduction)\n• Utilities\n\n⚠️ Consult tax advisor!"
},
"typeVersion": 1
},
{
"id": "manual-trigger",
"name": "수동 트리거",
"type": "n8n-nodes-base.manualTrigger",
"notes": "Process receipt",
"position": [
250,
300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "google-drive",
"name": "Google Drive - 영수증 가져오기",
"type": "n8n-nodes-base.googleDrive",
"notes": "Retrieve receipt from Drive",
"position": [
450,
300
],
"parameters": {
"fileId": "={{ $json.fileId }}",
"operation": "download"
},
"typeVersion": 3
},
{
"id": "pdfvector-extract",
"name": "PDF Vector - 영수증 추출",
"type": "n8n-nodes-pdfvector.pdfVector",
"notes": "Extract receipt data",
"position": [
650,
300
],
"parameters": {
"prompt": "Extract all receipt information from this document or image including merchant name and address, transaction date and time, all items with descriptions and prices, subtotal, tax amount and rate, tip if applicable, total amount, payment method, and any loyalty or membership numbers. Use OCR if this is a scanned receipt or image.",
"schema": "{\"type\":\"object\",\"properties\":{\"merchant\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"address\":{\"type\":\"string\"},\"phone\":{\"type\":\"string\"},\"taxId\":{\"type\":\"string\"}}},\"transaction\":{\"type\":\"object\",\"properties\":{\"date\":{\"type\":\"string\"},\"time\":{\"type\":\"string\"},\"receiptNumber\":{\"type\":\"string\"},\"cashier\":{\"type\":\"string\"}}},\"items\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"description\":{\"type\":\"string\"},\"quantity\":{\"type\":\"number\"},\"unitPrice\":{\"type\":\"number\"},\"totalPrice\":{\"type\":\"number\"},\"taxable\":{\"type\":\"boolean\"}}}},\"financial\":{\"type\":\"object\",\"properties\":{\"subtotal\":{\"type\":\"number\"},\"taxRate\":{\"type\":\"number\"},\"taxAmount\":{\"type\":\"number\"},\"tip\":{\"type\":\"number\"},\"total\":{\"type\":\"number\"},\"currency\":{\"type\":\"string\"}}},\"payment\":{\"type\":\"object\",\"properties\":{\"method\":{\"type\":\"string\"},\"lastFourDigits\":{\"type\":\"string\"},\"authCode\":{\"type\":\"string\"}}},\"loyalty\":{\"type\":\"object\",\"properties\":{\"memberNumber\":{\"type\":\"string\"},\"pointsEarned\":{\"type\":\"number\"},\"pointsBalance\":{\"type\":\"number\"}}}},\"required\":[\"merchant\",\"financial\"],\"additionalProperties\":false}",
"resource": "document",
"inputType": "file",
"operation": "extract",
"binaryPropertyName": "data"
},
"typeVersion": 1
},
{
"id": "pdfvector-categorize",
"name": "PDF Vector - 세금 분류",
"type": "n8n-nodes-pdfvector.pdfVector",
"notes": "Categorize for taxes",
"position": [
850,
300
],
"parameters": {
"prompt": "Based on this receipt document or image, determine: 1) The most appropriate tax category (meals, travel, supplies, equipment, etc.), 2) Whether this is likely tax deductible for business, 3) If this is a meal receipt, what percentage would typically be deductible, 4) Any special considerations for tax purposes. Process any image format using OCR if needed.",
"resource": "document",
"inputType": "file",
"operation": "ask",
"binaryPropertyName": "data"
},
"typeVersion": 1
},
{
"id": "process-expense",
"name": "비용 데이터 처리",
"type": "n8n-nodes-base.code",
"notes": "Validate and categorize",
"position": [
1050,
300
],
"parameters": {
"jsCode": "// Process receipt data and tax categorization\nconst receiptData = $node['PDF Vector - Extract Receipt'].json.data;\nconst taxCategory = $node['PDF Vector - Tax Categorization'].json.answer;\n\n// Validate financial calculations\nlet validationErrors = [];\nif (receiptData.items && receiptData.items.length > 0) {\n const calculatedSubtotal = receiptData.items.reduce((sum, item) => sum + (item.totalPrice || 0), 0);\n if (Math.abs(calculatedSubtotal - receiptData.financial.subtotal) > 0.02) {\n validationErrors.push('Item totals do not match subtotal');\n }\n}\n\n// Calculate tax consistency\nconst expectedTax = receiptData.financial.subtotal * (receiptData.financial.taxRate / 100);\nif (Math.abs(expectedTax - receiptData.financial.taxAmount) > 0.02) {\n validationErrors.push('Tax calculation inconsistency');\n}\n\n// Determine expense category and deductibility\nlet expenseCategory = 'Other';\nlet deductiblePercentage = 100;\nlet taxNotes = '';\n\nif (taxCategory.toLowerCase().includes('meal')) {\n expenseCategory = 'Meals & Entertainment';\n deductiblePercentage = 50; // Typical meal deduction\n taxNotes = 'Business meal - 50% deductible';\n} else if (taxCategory.toLowerCase().includes('travel')) {\n expenseCategory = 'Travel';\n deductiblePercentage = 100;\n taxNotes = 'Business travel expense';\n} else if (taxCategory.toLowerCase().includes('supplies')) {\n expenseCategory = 'Office Supplies';\n deductiblePercentage = 100;\n taxNotes = 'Business supplies';\n}\n\n// Create processed expense record\nconst processedExpense = {\n // Receipt data\n merchant: receiptData.merchant.name,\n date: receiptData.transaction.date,\n amount: receiptData.financial.total,\n currency: receiptData.financial.currency || 'USD',\n \n // Tax information\n expenseCategory,\n deductiblePercentage,\n deductibleAmount: (receiptData.financial.total * deductiblePercentage / 100).toFixed(2),\n taxNotes,\n \n // Original data\n originalReceipt: receiptData,\n aiCategorization: taxCategory,\n \n // Validation\n isValid: validationErrors.length === 0,\n validationErrors,\n \n // Metadata\n processedAt: new Date().toISOString(),\n taxYear: new Date(receiptData.transaction.date).getFullYear()\n};\n\nreturn [{ json: processedExpense }];"
},
"typeVersion": 2
},
{
"id": "save-spreadsheet",
"name": "비용 시트에 저장",
"type": "n8n-nodes-base.googleSheets",
"notes": "Track in spreadsheet",
"position": [
1250,
300
],
"parameters": {
"data": "={{ [[$json.date, $json.merchant, $json.expenseCategory, $json.amount, $json.deductibleAmount, $json.deductiblePercentage + '%', $json.taxNotes, $json.processedAt]] }}",
"range": "A:H",
"sheetId": "{{ $json.taxYear }}-expenses",
"operation": "append"
},
"typeVersion": 1
}
],
"connections": {
"manual-trigger": {
"main": [
[
{
"node": "google-drive",
"type": "main",
"index": 0
}
]
]
},
"process-expense": {
"main": [
[
{
"node": "save-spreadsheet",
"type": "main",
"index": 0
}
]
]
},
"google-drive": {
"main": [
[
{
"node": "pdfvector-extract",
"type": "main",
"index": 0
}
]
]
},
"pdfvector-extract": {
"main": [
[
{
"node": "pdfvector-categorize",
"type": "main",
"index": 0
}
]
]
},
"pdfvector-categorize": {
"main": [
[
{
"node": "process-expense",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 청구서 처리, AI 요약, 멀티모달 AI
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
PDF 벡터, Google Drive 및 데이터베이스를 사용하여发票 데이터를 추출하고 저장
PDF 벡터, Google Drive, 데이터베이스를 사용하여 청구서 데이터를 추출하고 저장합니다.
If
Code
Slack
+
If
Code
Slack
26 노드PDF Vector
청구서 처리
PDF 벡터와 HIPAA 준수를 통해 의료 문서에서 临床 데이터 추출
PDF Vector와 HIPAA 준수를 통해 의료 문서에서 临床 데이터를 추출
If
Code
Postgres
+
If
Code
Postgres
9 노드PDF Vector
문서 추출
GPT-4와 PDF Vector를 사용하여 다양한 형식의 연구 논문 요약 생성
GPT-4와 PDF Vector를 사용하여 다양한 포맷 연구 논문 요약 생성
Code
Open Ai
Webhook
+
Code
Open Ai
Webhook
9 노드PDF Vector
AI 요약
批量 PDF를 Markdown으로 변환 (Google Drive와 LLM 분석)
Google Drive와 LLM 기반의 파싱을 사용하여 대량 PDF를 Markdown로 변환
If
Set
Code
+
If
Set
Code
8 노드PDF Vector
콘텐츠 제작
PDF Vector AI를 사용하여 문서에서 법적 인용을 추출하고 검증
PDF Vector AI를 사용하여 문서에서 법적 참조를 추출하고 확인합니다.
If
Code
Google Drive
+
If
Code
Google Drive
8 노드PDF Vector
문서 추출
스킬 매트릭스 추출기
Google Drive와 GPT-4o를 사용하여 기술 행렬을 Google 스프레드시트에 추출
Code
Google Drive
Google Sheets
+
Code
Google Drive
Google Sheets
17 노드Rahul Joshi
기타
워크플로우 정보
난이도
중급
노드 수9
카테고리3
노드 유형6
저자
PDF Vector
@pdfvectorA fully featured PDF APIs for developers - Parse any PDF or Word document, extract structured data, and access millions of academic papers - all through simple APIs.
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유