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