{"product_id":"automate-gmail-label-extract-invoices-with-ocr","title":"Automate Gmail: Label \u0026 Extract Invoices with OCR","description":"\u003cp\u003eTransform your Gmail inbox into an intelligent document processing powerhouse that automatically labels emails and extracts critical invoice data using advanced OCR technology. This n8n workflow eliminates manual email sorting and data entry by leveraging Mistral AI and Google Gemini to classify messages and extract financial information from PDF attachments.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cp\u003eThis automated Gmail processing system polls your inbox every minute for new messages, then intelligently categorizes and processes them. The workflow downloads email attachments, cleans and normalizes content, and uses AI-powered email analysis to suggest appropriate Gmail labels. When labels don't exist, they're automatically created and applied to messages.\u003c\/p\u003e\n\n\u003cp\u003eFor PDF attachments, the workflow uploads documents to Mistral OCR for content extraction as markdown. The Mistral Analyzer then classifies documents as Invoice, Quote, Reminder, or Other, while extracting key financial fields including amounts, net amounts, tax, IBAN, due dates, document numbers, and sender information. Documents are automatically sorted into category-specific Google Drive folders, with invoices logged to a comprehensive Google Sheets register.\u003c\/p\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eFreelancers managing client invoices and payment tracking across multiple projects\u003c\/li\u003e\n\u003cli\u003eSmall businesses automating accounts payable processing and vendor document organization\u003c\/li\u003e\n\u003cli\u003eFinance teams streamlining invoice data entry and compliance record-keeping\u003c\/li\u003e\n\u003cli\u003eGerman market businesses requiring §14 UStG compliant accounting field extraction\u003c\/li\u003e\n\u003cli\u003eAny organization receiving high volumes of financial documents via Gmail\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cp\u003eBuilt using essential n8n nodes including Gmail triggers, conditional logic (if, switch), code transformations, merge operations, and Gmail tool integrations. The workflow integrates Gmail OAuth2, Mistral AI OCR, Google Gemini as AI fallback, Google Drive for document storage, and Google Sheets for invoice logging. Optimized for German accounting requirements but supports multi-language document processing.\u003c\/p\u003e\n\n\u003cp\u003ePerfect for n8n users, automation engineers, and SaaS operators seeking robust email automation with intelligent document processing capabilities.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45490501451955,"sku":"N8N-15487","price":32.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/fIeEemXrMgSJ88paoEaB7_79ecb541dbbf43729470d8e0fb67b8c8.jpg?v=1777971692","url":"https:\/\/buyflowscripts.com\/products\/automate-gmail-label-extract-invoices-with-ocr","provider":"N8N Commerce","version":"1.0","type":"link"}