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

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

  1. New Invoice Email
  2. Split Attachments
  3. Has PDF Attachment?
  4. Extract PDF Text
  5. Text Extracted?
  6. Extract Invoice Data
  7. OpenRouter Model
  8. Invoice Fields Parser
  9. Add Metadata
  10. Add to Invoice CRM
  11. Flag for Manual Review

Similar automations