Library / Documents, PDF & OCR
Documents, PDF & OCR
File supplier invoices from Gmail to Sheets with Gemini and Telegram alerts
Triggers on unread Gmail messages with PDF attachments, archives each PDF in Google Drive, extracts invoice fields with Gemini, and logs them to Sheets or alerts you on Telegram when unreadable.
What it does
## File supplier invoices from Gmail — read by Gemini AI Who it's for — small businesses, freelancers and bookkeepers who receive supplier invoices by email and still copy the numbers into a spreadsheet by hand. How it works 1. Gmail is watched for unread mails with a PDF attached. 2. The PDF is archived in your Google Drive folder first — you never lose the source document. 3. Gemini reads the text and pulls out supplier, invoice number, dates, net, VAT, total and currency. 4. Anything it cannot read cleanly is parked, and you get a Telegram message instead of a bad row. 5. Duplicates are checked against the sheet itself and stopped. 6. Clean invoices become one row in Google Sheets with a link back to the PDF, the email is marked as read, and Telegram confirms what was filed. Setup steps 1. Connect Gmail, Google Drive, Google Sheets, Telegram and Google Gemini (a free API key from Google AI Studio is enough). 2. Create a sheet named Invoices with columns: supplier, number, date, due, net, vat, total, currency, pdf. 3. Open Your settings and paste your Telegram chat id, the sheet URL and the Drive folder URL. 4. Activate the workflow, then email yourself a PDF invoice to watch it get filed.
The steps
- Invoice lands in the inbox
- Your settings
- Read the PDF
- Archive a copy in Drive
- Gemini pulls the numbers out
- Gemini 2.5 Flash
- Tidy up what Gemini found
- Did it read cleanly?
- Park it for a human
- What's already filed
- Duplicate check & decide
- Safe to write?
- Stop the duplicate
- Shape the row
17 steps in total.
Similar automations
Documents, PDF & OCRValidate supplier onboarding documents with Gemini, Gmail and Google Drive22 stepsFinance, Invoices & AccountingExtract and post supplier invoices with AI, routing exceptions for review16 stepsAI Agents & AssistantsClassify supplier diversity and flag replacements with Groq, Notion and Slack15 stepsWeb Scraping & ResearchExtract FF&E product details from supplier URLs with Gemini and Google Sheets11 steps