Source check: what the author reported
The r/n8n author says their workflow watches Gmail for PDF attachments, uses Mistral OCR to extract text, then asks Gemini to structure invoice headers and line items. They send the results to two linked Google Sheets tabs, archive the PDFs in Drive and mark the email as processed. Official Mistral and Gemini docs corroborate the OCR and structured-output capabilities; the post does not establish extraction accuracy, invoice-level cost or production reliability.
Editorial guidance: budget for exceptions
An invoice can be correctly formatted and still contain an incorrect total. A JSON schema checks shape, not whether an extracted value matches the invoice. Route duplicate numbers, missing currency and tax or total discrepancies for human review before posting any records.
Suggested test: compare 30 invoices
Use a consented or synthetic set of 30 invoices in mixed formats. Compare exact-match rates for the invoice number, date, subtotal, tax and currency. Add processing charges and review time, then divide by the number of invoices that pass review.