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

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

Needs changes

by Cheng Siong Chin ✓ · 694 views · created 2025-10-29 · Invoice Processing, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent - Analyze Invoice (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (8)

TelegramAI AgentOpenAI Chat Model

What it does

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 1. Telegram Trigger: Listens for uploads. 2. Document Check: Validates files; routes errors. 3. Get File: Retrieves metadata. 4. HTTP Download: Fetches content. 5. AI Extract: OpenAI parses invoice fields. 6. Format Response: Structures data. 7. Send Analysis: Delivers to chat. Setup Instructions 1. Telegram Bot: Create via BotFather, add credentials. 2. OpenAI Agent: Add API key and extraction prompt. 3. HTTP Node: Set authentication. 4. Parser: Define invoice schema. 5. 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

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.