Automated Invoice Processing with Telegram, GPT-4o, OCR and SAP Integration โ n8n ์ํฌํ๋ก
๊ฐ์
++HOW IT WORKS:++ This workflow automates the processing of invoices sent via Telegram. It extracts the data using LlamaIndex OCR, logs it in Google Sheets, and optionally pushes the structured data to SAP Business One
๐น 1. Receive Invoice via Telegram:** A user sends a PDF of an invoice through Telegram A Telegram Trigger node listens for incoming messages and captures the file and metadata The document is downloaded and prepared for OCR
๐น 2. OCR with LlamaIndex: The file is uploaded to the L
์ฌ์ฉ๋ ๋ ธ๋
์ํฌํ๋ก ๋ฏธ๋ฆฌ๋ณด๊ธฐ
์๋ ์๋ฆฌ
- 1
ํธ๋ฆฌ๊ฑฐ
์ํฌํ๋ก๋ ํธ๋ฆฌ๊ฑฐ ํธ๋ฆฌ๊ฑฐ๋ก ์์ํฉ๋๋ค.
- 2
์ฒ๋ฆฌ
๋ฐ์ดํฐ๊ฐ 27๊ฐ์ ๋ ธ๋๋ฅผ ํตํด ํ๋ฆ ๋๋ค, connecting chainllm, code, googlesheets.
- 3
์ถ๋ ฅ
์ํฌํ๋ก๊ฐ ์๋ํ๋ฅผ ์๋ฃํ๊ณ ๊ตฌ์ฑ๋ ๋์์ ๊ฒฐ๊ณผ๋ฅผ ์ ๋ฌํฉ๋๋ค.
๋ ธ๋ ์ธ๋ถ ์ ๋ณด (27)
Google Sheets
googleSheets
HTTP Request
httpRequest
Telegram
telegram
Code
code
Basic LLM Chain
n8n-nodes-langchain.chainLlm
OpenAI Chat Model
n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
n8n-nodes-langchain.outputParserStructured
์ด ์ํฌํ๋ก ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ
- 1์ค๋ฅธ์ชฝ์ JSON ๋ค์ด๋ก๋ ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ํฌํ๋ก ํ์ผ์ ์ ์ฅํฉ๋๋ค.
- 2n8n ์ธ์คํด์ค๋ฅผ ์ด๊ณ ์ํฌํ๋ก โ ์๋ก ๋ง๋ค๊ธฐ โ ํ์ผ์์ ๊ฐ์ ธ์ค๊ธฐ๋ก ์ด๋ํฉ๋๋ค.
- 3๋ค์ด๋ก๋๋
automated-invoice-processing-with-telegram-gpt-4o-ocr-and-sap-integrationํ์ผ์ ์ ํํ๊ณ ๊ฐ์ ธ์ค๊ธฐ๋ฅผ ํด๋ฆญํฉ๋๋ค. - 4๊ฐ ์๋น์ค ๋ ธ๋์ ๋ํ ์๊ฒฉ ์ฆ๋ช ๏ผAPI ํค, OAuth ๋ฑ๏ผ์ ์ค์ ํฉ๋๋ค.
- 5์ํฌํ๋ก ํ ์คํธ๋ฅผ ํด๋ฆญํ์ฌ ๋ชจ๋ ๊ฒ์ด ์๋ํ๋์ง ํ์ธํ ํ ํ์ฑํํฉ๋๋ค.
๋๋ n8n โ JSON์์ ๊ฐ์ ธ์ค๊ธฐ์ ์ง์ ๋ถ์ฌ๋ฃ๊ธฐ:
ํตํฉ
์ด ์ํฌํ๋ก ๊ฐ์ ธ์ค๊ธฐ
ํ ๋ฒ์ ํด๋ฆญ์ผ๋ก ๋ค์ด๋ก๋ ๋ฐ ๊ฐ์ ธ์ค๊ธฐ
JSON ๋ค์ด๋ก๋n8n.io์์ ๋ณด๊ธฐ์ ์์
Raquel Giugliano
@raquelgiugliano
ํ๊ทธ
n8n์ ์ฒ์ ์ฌ์ฉํ์๋์?
n8n์ ๋ฌด๋ฃ ์คํ์์ค ์ํฌํ๋ก ์๋ํ ๋๊ตฌ์ ๋๋ค. ์์ฒด ํธ์คํ ํ๊ฑฐ๋ ํด๋ผ์ฐ๋ ๋ฒ์ ์ ์ฌ์ฉํ์ธ์.
n8n ๋ฌด๋ฃ๋ก ์์ํ๊ธฐ โ