๐Ÿงพ Automate invoice analysis via Telegram with ChatGPT-4o-mini extraction

โšก 468 views ยท ๐Ÿงพ Invoice Processing

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

  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

Customization

Benefits

๐Ÿ”— Nodes Used

HTTP Request, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Extract from File

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup