Extract Data from Invoices with OCR, Gemini AI, and Airtable
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
š Extract Data from Invoices with OCR, Gemini AI, and Airtable
This template automates the process of extracting key details from invoices (PDF, JPG, PNG) and storing them in Airtable using OCR + AI. It eliminates manual data entry by leveraging Tesseract OCR, Google Gemini AI, and Airtable, with optional Telegram notifications. The workflow is ideal for freelancers, small businesses, and finance teams who need a lightweight and automated solution for handling invoice data.
š Features
ā
Supports JPG, PNG, and PDF invoices
š§ Automatically extracts: Invoice Number, Invoice Date (standardized to YYYY-MM-DD), Subtotal, Tax, Total, Currency, Vendor Name, Email, Phone, and Ship-to Address
š¤ Sends structured data into Airtable automatically
š¬ Sends a Telegram notification once data is processed (optional)
š Triggers automatically when new files are dropped into a folder
ā ļø Disclaimer
This workflow uses community nodes (n8n-nodes-tesseractjs, n8n-nodes-pdf-page-extract).
It works best on self-hosted n8n or n8n cloud instances where these nodes are available.
You must install and configure these nodes before importing the workflow.
āļø Setup & Configuration
Install Docker with n8n.
Mount your folder (e.g., ~/self-hosted-ai/ocr-bot:/shared) so invoices can be dropped into /shared/ocr/.
Import the provided JSON workflow into n8n.
Replace credentials:
Google Gemini API key
Airtable base + token
Telegram bot token (optional)
Drop a sample invoice (PDF/JPG/PNG) into the configured folder.
Check Airtable for structured data and Telegram (if enabled) for confirmation.
š§ Customization
Modify the AI prompt to extract additional fields.
Replace Airtable with Google Sheets or another database if preferred.
Update the Telegram node with your own Chat ID for notifications.
š” Tip: Add a screenshot of the workflow in n8n to help users quickly understand the node structure.
Related Templates
Instagram Full Profile Scraper with Apify and Google Sheets
šø Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
Technology News Workflow Explanation with Key Services
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Auto-Publish Techn...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments