5,296,544 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Automated invoice processing with Telegram, GPT-4o, OCR and SAP integration

Documents & extraction workflow for n8n with 27 active steps. Starts with Telegram Trigger. Uses OpenAI. Integrations include OpenAI, Telegram, Google Sheets.

What it does

27 active nodes · Starts with Telegram Trigger.

Steps in the template include:

  • Wait (Wait)
  • Basic LLM Chain (Basic LLM Chain)
  • OpenAI Chat Model (OpenAI Chat Model)
  • No Operation, do nothing (No Operation, do nothing)

Nodes and integrations

  • Wait
  • Basic LLM Chain
  • OpenAI Chat Model
  • No Operation, do nothing
  • Split Out
  • Merge
  • Telegram Trigger ×2
  • Switch ×2
  • HTTP Request ×5
  • Google Sheets ×4
  • Code ×2
  • Telegram ×4
  • Edit Fields (Set)
  • Structured Output Parser
See the author’s step names
  • Wait (Wait)
  • Basic LLM Chain (Basic LLM Chain)
  • OpenAI Chat Model (OpenAI Chat Model)
  • No Operation, do nothing (No Operation, do nothing)
  • Split Out (Split Out)
  • Merge (Merge)
  • Callback Waiting Answer (Telegram Trigger)
  • Answer? (Switch)
  • Connect to SAP (HTTP Request)
  • Get Header (Google Sheets)
  • Get Row Details (Google Sheets)
  • Generate DocumentLines (Code)
  • Create JSON (Code)
  • POST PurchaseInvoices (HTTP Request)
  • PurchaseInvoices created (Telegram)
  • Trigger Receive Message (Telegram Trigger)
  • Capture Telegram Data (Edit Fields (Set))
  • File Received (Telegram)
  • Download File (Telegram) — file
  • Upload File LlamaIndex (HTTP Request)
  • Validate Status LlamaIndex (HTTP Request)
  • Status? (Switch)
  • Get Results LlamaIndex (HTTP Request)
  • Structured Output Parser (Example) (Structured Output Parser)
  • Detail (Google Sheets) — append
  • Header (Google Sheets) — append
  • ¿Upload to SAP? (Telegram)

Accounts and credentials

  • OpenAI access
  • Telegram
  • Google Sheets

Credential types in the graph: telegramApi, googleSheetsOAuth2Api

Check the HTTP request steps for any additional service accounts or API keys.

AI models and swaps

OpenAI · Chat

gpt-4o-mini in OpenAI Chat Model. Potentially swappable with a compatible n8n chat model node. Match structured output before testing.

Inputs and setup options

  • n8n variable: user_sap
  • n8n variable: password_sap
  • n8n variable: company_db
  • n8n variable: url_sap
  • n8n variable: llamaindex_apikey

Resource information

Credit basis
Author listed by n8n
Pricing
Template access shown on n8n
License
Not specified
Last record update
Nov 5, 2026