Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Invoice lands in the inbox
  2. Your settings
  3. Read the PDF
  4. Archive a copy in Drive
  5. Gemini pulls the numbers out
  6. Gemini 2.5 Flash
  7. Tidy up what Gemini found
  8. Did it read cleanly?
  9. Park it for a human
  10. What's already filed
  11. Duplicate check & decide
  12. Safe to write?
  13. Stop the duplicate
  14. Shape the row

17 steps in total.

Similar automations