๐Ÿงพ AI-powered invoice extractor via Telegram to Airtable

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

Description

๐Ÿ“„ Description

This workflow automates the extraction of structured invoice data from PDF files sent via Telegram and stores it in Airtable. It leverages GPT-4o for intelligent parsing and includes conversational memory for a seamless user experience. Designed for businesses and freelancers who receive invoices digitally and want to streamline their record-keeping.


โš™๏ธ How It Works

  1. Telegram Trigger โ€“ Listens for incoming messages and PDF attachments.
  2. Switch Node โ€“ Filters messages to ensure only PDFs are processed.
  3. Extract from File โ€“ Parses the PDF content for text extraction.
  4. Edit Fields โ€“ Prepares the extracted data for AI processing.
  5. AI Agent (GPT-4o) โ€“ Orchestrates the workflow, prompts the user for missing info, and extracts structured data.
  6. Simple Memory โ€“ Maintains conversational context across sessions.
  7. Create Invoice (Airtable Tool) โ€“ Creates a new invoice record in Airtable.
  8. Create Line Item (Airtable Tool) โ€“ Adds individual line items linked to the invoice.
  9. Telegram Response โ€“ Sends confirmation back to the user.

๐Ÿ” Required Credentials

To run this workflow successfully, youโ€™ll need:


๐Ÿงฐ Airtable Structure

Invoices Table Fields:

Line Items Table Fields:


๐Ÿง  Features

๐Ÿ”— Nodes Used

Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Simple Memory, Extract from File

๐Ÿ“ฅ Import

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

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