{"product_id":"n8n-invoice-data-extraction-workflow-with-temlavo","title":"n8n Invoice Data Extraction Workflow with Temlavo","description":"\u003ch3\u003eExtract structured invoice data with Temlavo—automatically, reliably, and with safe recovery\u003c\/h3\u003e\n\u003cp\u003eThis n8n Invoice Data Extraction Workflow uploads a single invoice file to \u003cstrong\u003eTemlavo\u003c\/strong\u003e, polls until extraction is finished (or requires review), and returns a clean structured JSON result to your calling workflow—plus a recovery “safe-stop” when needed.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives one invoice item\u003c\/strong\u003e from a parent n8n workflow, including \u003ccode\u003ebinary.invoice\u003c\/code\u003e and a \u003ccode\u003etemlavo_submission\u003c\/code\u003e payload with \u003cem\u003esaved idempotency tokens\u003c\/em\u003e and file metadata.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates inputs\u003c\/strong\u003e by checking file type and size, and ensuring required \u003cstrong\u003eTemlavo submission\u003c\/strong\u003e fields are present.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a Temlavo document via REST API\u003c\/strong\u003e using a fixed API request context and an \u003ccode\u003eIdempotency-Key\u003c\/code\u003e header to prevent duplicate submissions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads invoice bytes\u003c\/strong\u003e to Temlavo using the API-provided signed URL and headers, then confirms upload completion.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePolls document status\u003c\/strong\u003e until it reaches a terminal state: \u003ccode\u003ecompleted\u003c\/code\u003e, \u003ccode\u003eneeds_review\u003c\/code\u003e, or \u003ccode\u003efailed\u003c\/code\u003e, using bounded waits and retry logic for transient API errors.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns one JSON result\u003c\/strong\u003e to the caller with the final document payload (including review reasons when applicable), or a \u003ccode\u003etemlavo.n8n-safe-stop.v1\u003c\/code\u003e object describing how to recover.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomatic \u003cstrong\u003eaccounts payable\u003c\/strong\u003e ingestion: extract invoice fields into structured JSON for downstream processing.\u003c\/li\u003e\n  \u003cli\u003eBack-office workflows that need \u003cstrong\u003eneeds_review\u003c\/strong\u003e handling for ambiguous documents.\u003c\/li\u003e\n  \u003cli\u003eMulti-tenant SaaS pipelines where reliable extraction and \u003cstrong\u003eidempotency\u003c\/strong\u003e are critical.\u003c\/li\u003e\n  \u003cli\u003eEngineers building end-to-end \u003cstrong\u003eTemlavo-based invoice processing\u003c\/strong\u003e with controlled polling and safe-stop recovery.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e \u003cstrong\u003eTemlavo\u003c\/strong\u003e via REST API (Idempotency-Key + signed upload URL) and polling for terminal status.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/parts:\u003c\/strong\u003e \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003ewait\u003c\/code\u003e, \u003ccode\u003eswitch\u003c\/code\u003e, \u003ccode\u003ehttp request\u003c\/code\u003e, \u003ccode\u003eexecute workflow trigger\u003c\/code\u003e, and \u003ccode\u003esticky note\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e Create a Temlavo API key (copy the full key once) and configure the HTTP request node accordingly.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46094151844019,"sku":"N8N-19943","price":34.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/1NeV5z6R4qQSupL7wusiL_bxMZyFCB.png?v=1790413698","url":"https:\/\/buyflowscripts.com\/products\/n8n-invoice-data-extraction-workflow-with-temlavo","provider":"N8N Commerce","version":"1.0","type":"link"}