Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Extract invoices from Gmail PDFs into Google Sheets with OpenRouter AI
Triggers on new Gmail messages, extracts text from PDF invoice attachments, flags scanned files for review, then uses an AI model to append vendor, invoice number, dates and totals to a Sheet.
What it does
## How This Works 1. Watches your inbox for new emails 2. Splits out each PDF attachment (handles multiple invoices in one email) 3. Skips emails with no attachments entirely - zero cost 4. Checks each attachment is actually a PDF 5. Extracts text from the PDF 6. If text extraction fails (e.g. scanned image), flags it for manual review instead of guessing 7. AI reads the invoice text and pulls structured fields (vendor, invoice #, dates, totals, etc.) 8. Appends a clean row to your Google Sheet CRM Only PDFs with readable text ever reach the AI step, so you're never paying for junk/spam emails.
The steps
- New Invoice Email
- Split Attachments
- Has PDF Attachment?
- Extract PDF Text
- Text Extracted?
- Extract Invoice Data
- OpenRouter Model
- Invoice Fields Parser
- Add Metadata
- Add to Invoice CRM
- Flag for Manual Review
Similar automations
Finance, Invoices & AccountingExtract bank statement transactions from PDFs into Google Sheets with Gemini7 stepsDocuments, PDF & OCRExtract purchase orders from PDFs into Google Sheets with easybits and Drive15 stepsDocuments, PDF & OCRExtract invoice and PO data from Gmail PDFs into XML, CSV and JSON17 stepsFiles & Cloud StorageGenerate recipe PDFs from food photos with OpenRouter, Apify and Google Drive9 steps