GPT-4o를 사용하여 Slack PDF에서 인보이스 데이터 추출하여 Google Sheets에 저장
중급
이것은Miscellaneous, AI Summarization, Multimodal AI분야의자동화 워크플로우로, 10개의 노드를 포함합니다.주로 Slack, HttpRequest, GoogleSheets, SlackTrigger, Agent 등의 노드를 사용하며. GPT-4o를 사용하여 Slack PDF에서 발표 데이터를 Google Sheets로 추출
사전 요구사항
- •Slack Bot Token 또는 Webhook URL
- •대상 API의 인증 정보가 필요할 수 있음
- •Google Sheets API 인증 정보
- •OpenAI API Key
사용된 노드 (10)
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "e04cc86c30b0cecda8e6bbc7cc41459d9bf4d76816638a14d42d636b91913ebc",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "421fef2b-90cb-496d-8dd4-b613e10e9fe8",
"name": "시트에 행 추가",
"type": "n8n-nodes-base.googleSheets",
"position": [
528,
0
],
"parameters": {
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": ""
},
"documentId": {
"__rl": true,
"mode": "list",
"value": ""
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "OADOUEa3B96W0iqk",
"name": "Google Sheets account 2"
}
},
"typeVersion": 4.7
},
{
"id": "1f16c6d5-fc5a-4ff6-b77b-f3bcc60040fc",
"name": "메시지 보내기",
"type": "n8n-nodes-base.slack",
"position": [
752,
0
],
"webhookId": "bae395be-21a2-47f4-86ca-1991460e5cec",
"parameters": {
"text": "=---\nInvoice date: {{ $json.invoice_date }}\nBilling to: {{ $json['billing to'] }}\nEmail: {{ $json.email }}\nTotal Amount: {{ $json.total_amount }}\nDue date: {{ $json.due_date }}",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C09ECEMB012",
"cachedResultName": "invoice"
},
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "VLK4L2mMCF7UFZXF",
"name": "Slack account 4"
}
},
"typeVersion": 2.3
},
{
"id": "00111f6b-fd0b-49d9-80f6-3f0ca060de18",
"name": "출력 구조화",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
312,
224
],
"parameters": {
"jsonSchemaExample": "[{\n\t\"billing to\": \"Toshiki Hirao\",\n\t\"total_amount\": \"1000\",\n \"invoice_date\": \"2025/04/29\",\n \"due_date\" : \"2025/05/29\",\n \"email\": \"xxx@yyy.jp\"\n}]\n"
},
"typeVersion": 1.3
},
{
"id": "492e5b93-bde0-4335-843e-0f63ba151b53",
"name": "AI 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
184,
224
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "gpt-4o"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "in4FUooE7goQS8l0",
"name": "OpenAi account 2"
}
},
"typeVersion": 1.2
},
{
"id": "abc9bc40-d167-41e7-921b-1e5d8afd6810",
"name": "청구서 pdf 수신",
"type": "n8n-nodes-base.slackTrigger",
"position": [
-496,
0
],
"webhookId": "c612a1bc-e6ae-4ce0-8776-e707ae30fc11",
"parameters": {
"options": {},
"trigger": [
"message"
],
"channelId": {
"__rl": true,
"mode": "list",
"value": "C09ECEMB012",
"cachedResultName": "invoice"
}
},
"credentials": {
"slackApi": {
"id": "VLK4L2mMCF7UFZXF",
"name": "Slack account 4"
}
},
"notesInFlow": false,
"typeVersion": 1
},
{
"id": "1be006ae-9577-413f-be7d-3b3c82945b7b",
"name": "pdf 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
-272,
0
],
"parameters": {
"url": "={{ $json.files[0].url_private_download }}",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "slackApi"
},
"credentials": {
"slackApi": {
"id": "VLK4L2mMCF7UFZXF",
"name": "Slack account 4"
}
},
"typeVersion": 4.2
},
{
"id": "e4b2917c-dd4b-47f9-a16d-3b234b548f0d",
"name": "pdf에서 정보 추출",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-48,
0
],
"parameters": {
"options": {},
"operation": "pdf",
"binaryPropertyName": "=data"
},
"typeVersion": 1
},
{
"id": "b75eb6e0-6daa-436f-a415-1c86a455cc0e",
"name": "청구서 정보 추출",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
176,
0
],
"parameters": {
"text": "=please read and understand the input data({{ $json.text }}). I would like you to extract billing to, email, total amount, invoice date and due date. ",
"options": {
"systemMessage": ""
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.1
},
{
"id": "54cacdd2-806a-40d5-9e3a-986b9d042dfc",
"name": "스티커 메모",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1056,
-144
],
"parameters": {
"width": 464,
"height": 1024,
"content": "## How it works\n1. Receive invoice in Slack – When a PDF invoice is uploaded to a designated Slack channel, the workflow is triggered.\n2. Fetch the PDF – The file is downloaded automatically for processing.\n3. Extract data from PDF – Basic text extraction is performed to capture invoice content.\n4. AI-powered invoice parsing – An AI model interprets the extracted text and structures essential fields such as company name, invoice number, total amount, invoice date, and due date.\n5. Save to Google Sheets – The structured invoice data is appended as a new row in a Google Sheet for easy tracking and reporting.\n6. Slack confirmation – A summary of the saved invoice details is sent back to Slack to notify the team.\n\n## How to use\n1. Import the workflow into your n8n instance.\n2. Connect Slack – Authenticate your Slack account and set up the trigger channel where invoices will be uploaded.\n3. Connect Google Sheets – Authenticate with Google Sheets and specify the target spreadsheet and sheet name.\n4. Configure the AI extraction – Adjust the parsing prompt or output structure to fit your preferred data fields (e.g., vendor name, invoice ID, amount, dates).\n5. Test the workflow – Upload a sample invoice PDF in Slack and verify that the data is correctly extracted and saved to Google Sheets.\n\n## Requirements\n- An n8n instance (cloud)\n- Slack account with permission to read uploaded files and post messages\n- Google account with access to the spreadsheet you want to update\n- AI integration (e.g., OpenAI GPT or another LLM with PDF parsing capabilities)\n- A designated Slack channel for receiving invoice PDFs"
},
"typeVersion": 1
},
{
"id": "cbb83217-4629-4870-8340-5d65ac37f3b0",
"name": "스티커 메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-576,
-352
],
"parameters": {
"width": 576,
"height": 272,
"content": "## Workflow\nAutomate Invoice Extraction from Slack to Google Sheets with GPT Model\n\n## Introduction\nManaging invoices manually can be time-consuming and error-prone. This workflow automates the process by extracting key invoice details from PDFs shared in Slack, structuring the information with AI, saving it to Google Sheets, and sending a confirmation back to Slack. It’s a seamless way to keep your financial records organized without manual data entry."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"492e5b93-bde0-4335-843e-0f63ba151b53": {
"ai_languageModel": [
[
{
"node": "b75eb6e0-6daa-436f-a415-1c86a455cc0e",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"1be006ae-9577-413f-be7d-3b3c82945b7b": {
"main": [
[
{
"node": "e4b2917c-dd4b-47f9-a16d-3b234b548f0d",
"type": "main",
"index": 0
}
]
]
},
"1f16c6d5-fc5a-4ff6-b77b-f3bcc60040fc": {
"main": [
[]
]
},
"00111f6b-fd0b-49d9-80f6-3f0ca060de18": {
"ai_outputParser": [
[
{
"node": "b75eb6e0-6daa-436f-a415-1c86a455cc0e",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"421fef2b-90cb-496d-8dd4-b613e10e9fe8": {
"main": [
[
{
"node": "1f16c6d5-fc5a-4ff6-b77b-f3bcc60040fc",
"type": "main",
"index": 0
}
]
]
},
"abc9bc40-d167-41e7-921b-1e5d8afd6810": {
"main": [
[
{
"node": "1be006ae-9577-413f-be7d-3b3c82945b7b",
"type": "main",
"index": 0
}
]
]
},
"b75eb6e0-6daa-436f-a415-1c86a455cc0e": {
"main": [
[
{
"node": "421fef2b-90cb-496d-8dd4-b613e10e9fe8",
"type": "main",
"index": 0
}
]
]
},
"e4b2917c-dd4b-47f9-a16d-3b234b548f0d": {
"main": [
[
{
"node": "b75eb6e0-6daa-436f-a415-1c86a455cc0e",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 기타, AI 요약, 멀티모달 AI
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
GPT-4o OCR을 사용하여 Slack에서 명함 데이터를 Google Sheets로 추출
GPT-4o OCR을 사용하여 Slack에서 명함 데이터를 Google Sheets로 추출합니다.
Slack
Split Out
Http Request
+
Slack
Split Out
Http Request
10 노드Toshiki Hirao
기타
PDF에서 계약 세부 정보를 추출하고 Slack, GPT-4o, Google Sheets에 정리
PDF에서 계약 세부 정보 추출 및 Slack, GPT-4o, Google Sheets에 정리
Slack
Switch
Http Request
+
Slack
Switch
Http Request
19 노드Toshiki Hirao
문서 추출
자동화된 B2B 리드 생성: Google Places, Scrape.do 및 AI 데이터 강화
자동화된 B2B 잠재 고객 생성: Google Places, Scrape.do 및 AI 데이터 강화
If
Set
Html
+
If
Set
Html
19 노드Onur
기타
Slack 후보자 평가를 위한 AI 기반 챗봇 구축
AI 이력서 분석 및 후보자 평가: Slack과 Google 스프레드시트 통합
If
Code
Slack
+
If
Code
Slack
29 노드Trung Tran
AI 챗봇
매일 WhatsApp 그룹 지능형 분석: GPT-4.1 분석 및 음성 메시지 변환
매일 WhatsApp 그룹 지능 분석: GPT-4.1 분석 및 음성 메시지 트랜스크립션
If
Set
Code
+
If
Set
Code
52 노드Daniel Lianes
기타
🚀 Shopify 브랜드를 위한 AI 기반 WhatsApp 고객 지원
Shopify 브랜드용 AI 기반 WhatsApp 고객 지원(LLM 에이전트)
Set
Slack
Switch
+
Set
Slack
Switch
30 노드Ruthwik
기타