Automated Invoice Processing with Telegram, GPT-4o, OCR and SAP Integration — n8n Workflow
Overview
++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
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 27 nodes, connecting chainllm, code, googlesheets.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (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
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
automated-invoice-processing-with-telegram-gpt-4o-ocr-and-sap-integrationfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Raquel Giugliano
@raquelgiugliano
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →