Automate invoice analysis via Telegram with ChatGPT-4o-mini extraction
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Important notice
This workflow is provided as-is. Please review and test before using in production.
Overview
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