{"product_id":"n8n-workflow-process-invoice-pdfs-from-gmail-to-zoho-books","title":"n8n Workflow: Process Invoice PDFs from Gmail to Zoho Books","description":"\u003ch3\u003eAutomatically turn Gmail invoice PDFs into deduplicated Zoho Books bills—then archive the originals in Google Drive\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow monitors your \u003cstrong\u003eGmail\u003c\/strong\u003e for invoice emails with \u003cstrong\u003ePDF attachments\u003c\/strong\u003e, extracts the invoice data using \u003cstrong\u003eParseur\u003c\/strong\u003e, checks for duplicates in \u003cstrong\u003eZoho Books\u003c\/strong\u003e, and archives each original PDF into a month-based folder in \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePolls Gmail every minute\u003c\/strong\u003e for new emails that match the trigger condition (currently \u003cem\u003ehas:attachment\u003c\/em\u003e) and downloads the attached \u003cstrong\u003einvoice PDF\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads the PDF to Parseur\u003c\/strong\u003e, waits briefly for processing, and retrieves \u003cstrong\u003eextracted invoice data as JSON\u003c\/strong\u003e via the Parseur API.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrevents duplicate bills in Zoho Books\u003c\/strong\u003e by searching Zoho Books for an existing bill for the configured \u003cstrong\u003evendor\u003c\/strong\u003e that matches the extracted \u003cstrong\u003einvoice number\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIf no match exists\u003c\/strong\u003e, it creates a \u003cstrong\u003enew Zoho Books bill\u003c\/strong\u003e using the parsed dates and line items; \u003cstrong\u003eif a match exists\u003c\/strong\u003e, it skips processing as a duplicate.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eArchives the original invoice PDF\u003c\/strong\u003e: downloads the PDF and stores it in a Google Drive folder named \u003cstrong\u003eYYYY-MM\u003c\/strong\u003e based on the invoice date.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates folders automatically\u003c\/strong\u003e in Google Drive when needed, and uploads the file as \u003cstrong\u003e{invoice_number}.pdf\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAccounts payable automation\u003c\/strong\u003e: ingest vendor invoices from email attachments and turn them into Zoho Books bills with minimal manual work.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDuplicate-safe processing\u003c\/strong\u003e: ensure the same invoice number doesn’t generate multiple bills.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClean invoice records\u003c\/strong\u003e: keep an auditable archive of original PDFs organized by invoice month.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail polling\u003c\/strong\u003e (checks every minute for messages with attachments and downloads the PDF).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParseur integration\u003c\/strong\u003e using \u003cem\u003en8n-nodes-parseurparseur\u003c\/em\u003e plus HTTP Request steps to fetch the document and JSON output (using \u003cstrong\u003eparserId\u003c\/strong\u003e and Parseur API auth headers).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eZoho Books OAuth2\u003c\/strong\u003e with configurable \u003cstrong\u003eorganization_id\u003c\/strong\u003e, \u003cstrong\u003evendor_id\u003c\/strong\u003e, and \u003cstrong\u003eaccount_id\u003c\/strong\u003e for line items.\u003c\/li\u003e\n  \u003cli\u003eIncludes workflow logic nodes such as \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, \u003cstrong\u003emerge\u003c\/strong\u003e, and \u003cstrong\u003eno op\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45741426016435,"sku":"N8N-17582","price":62.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/vsJSFJZ5s3Z3qeupMevvv_v3Vndy9Y.png?v=1785316628","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-process-invoice-pdfs-from-gmail-to-zoho-books","provider":"N8N Commerce","version":"1.0","type":"link"}