Skip to main content

AI-powered invoice extractor via Telegram to Airtable

Workflow preview

Workflow preview
100%
AI-powered invoice extractor via Telegram to Airtable preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Invoice Processing automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.airtabletool, n8n-nodes-base.telegram, n8n-nodes-base.set, n8n-nodes-base.extractfromfile, n8n-nodes-base.switch, n8n-nodes-base.telegramtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by BizThrive.ai.

Original n8n.io source

1.1 Workflow description

Title
AI-powered invoice extractor via Telegram to Airtable
Workflow name
AI-powered invoice extractor via Telegram to Airtable

📄 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:

  • Telegram Bot Token (via @BotFather)
  • OpenAI API Key (with GPT-4o access)
  • Airtable API Key and access to:
    • Base: Invoice Tracker Proper
    • Tables: Invoices and Line Items

🧰 Airtable Structure

Invoices Table Fields:

  • Invoice Number
  • Date
  • Supplier
  • Supplier Address
  • Tax ID
  • PO Number
  • Due Date
  • Receiver Name
  • Receiver Address
  • Delivery Date
  • Total Tax
  • Total Amount

Line Items Table Fields:

  • Product Code
  • Description
  • Unit Price
  • Quantity
  • Unit Type
  • Sub Total
  • Invoice (linked)

🧠 Features

  • AI-powered invoice parsing
  • PDF text extraction
  • Airtable record creation with relational linking
  • Telegram-based user interaction
  • Conversational memory
  • Error handling and data validation

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - Create Line Item1

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 4 - Create Invoice1

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 5 - Telegram3

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Edit Fields1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Telegram2

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Extract from File1

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 9 - Switch1

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 10 - Telegram Trigger1

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 11 - AI Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 12 - Setup Requirements

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Usage Instructions

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Data Structure

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Troubleshooting

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Configuration Notes

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow AI-powered invoice extractor via Telegram to Airtable
Complexity advanced
Nodes 17
Categories Invoice Processing
Author BizThrive.ai
Published 09 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8396/8396.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI-powered invoice extractor via Telegram to Airtable do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing use case.