Extract Invoice Data from Telegram to Google Sheets with OCR & Gemini AI
π‘οΈπ₯ Telegram Invoice Agent β π OCR β π€ AI Parsing β π Google Sheets + ποΈ Drive
What this workflow does
π€ Captures invoices from Telegram and auto-downloads PDFs/images.β π Runs OCR, then uses AI to structure clean invoice fields.β π Appends parsed data to a Google Sheets βInvoice Database.ββ ποΈ Uploads the original file to Google Drive with a neat name.β π¬ Sends a friendly Telegram summary with totals, due date, notes, and link.β
Why itβs useful
β‘ Faster bookkeeping with zero manual copy-paste.β π§± Consistent schema for reliable reporting and pivots.β π₯ Team-friendly drop-and-log via Telegram.β π§© Easy to extend with approvals, ERP/CRM sync, or vendor routing.β
How it works
π² Telegram Trigger β file received.β π HTTP OCR (OCR.space) β text extracted.β π€ AI Agent β maps to strict JSON schema.β π Google Sheets β appends structured row.β ποΈ Google Drive β saves original invoice.β π¬ Telegram β concise confirmation and links.β
What youβll need
π€ Telegram Bot token.β π OCR API key (OCR.space: free tier; upgrade for volume/accuracy).β π Google OAuth for Sheets + Drive.β π§ LLM account (e.g., Gemini/OpenAI-compatible).β
Setup steps
π Connect credentials: Telegram, Google, OCR, AI.β π Prepare Sheet columns: Invoice Number, Date, Total Amount ($), Billing Address, Due Date, Notes.β π§ Update sheet ID and Drive folder ID.β π§ͺ Test: send a sample invoice and validate OCR, AI output, row append, and Drive link.β
Customization ideas
π― Higher accuracy OCR: swap to Google Vision.β π Line items: extract into a second tab for analytics.β β Approvals: add Telegram keyboard confirmation before write.β π§― Robustness: IF/Retry on empty OCR; user prompt to retake photo.β
Who itβs for
π§βπ» Freelancers/agencies needing fast invoice intake via Telegram. π§Ύ Small finance teams wanting a searchable ledger with links to originals.β ποΈ Builders extending to ERPs/CRMs and custom accounting flows.β β Want help customizing?
π§ anirpoke@gmail.com π Linkedin
Related Templates
Extract Named Entities from Web Pages with Google Natural Language API
Who is this for? Content strategists analyzing web page semantic content SEO professionals conducting entity-based anal...
Add product ideas to Notion via a Slack command
Use Case In most companies, employees have a lot of great ideas. That was the same for us at n8n. We wanted to make it a...
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments