Automate invoice analysis via Telegram with ChatGPT-4o-mini extraction

Go to Workflow
1 views
Built by Cheng Siong Chin Cheng Siong Chin
Created on June 05, 2026

Description

Introduction
Upload invoices via Telegram, receive structured data instantly. Perfect for accountants and finance teams.
How It Works
Telegram bot receives invoices, downloads files, extracts data using OpenAI, then returns analysis.
Workflow Template
Telegram Trigger → Document Check → Get File → HTTP Download → AI Extract → Format Response → Send to Telegram

Workflow Steps
Telegram Trigger: Listens for uploads.
Document Check: Validates files; routes errors.
Get File: Retrieves metadata.
HTTP Download: Fetches content.
AI Extract: OpenAI parses invoice fields.
Format Response: Structures data.
Send Analysis: Delivers to chat.
Setup Instructions
Telegram Bot: Create via BotFather, add credentials.
OpenAI Agent: Add API key and extraction prompt.
HTTP Node: Set authentication.
Parser: Define invoice schema.
Error Handling: Configure fallbacks.
Prerequisites
n8n instance
Telegram Bot Token
OpenAI API key
Customization
Database storage
Accounting software integration
Benefits
Eliminates manual entry
Reduces errors

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Telegram
n8n-nodes-base.telegram