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

Library / Building Blocks & Utilities

Building Blocks & Utilities

Extract and review invoice data with Temlavo in a sub-workflow

When another workflow calls it, it provides a reusable building block.

What it does

# Extract invoice data with Temlavo in a reusable sub-workflow ## Who is this for? Automation builders who receive invoice files through Gmail, Google Drive, webhooks, or other workflows and need structured accounting data with explicit review outcomes. ## What it does This reusable sub-workflow accepts one PDF, JPEG, or PNG invoice, creates a Temlavo document, uploads the file, confirms the upload, and polls for the result. It separates completed, needs_review, failed, and recovery-stop outcomes before returning one item to the calling workflow. Review results retain extracted data and review reasons. Completed means no blocking declared check, not independently verified accounting data. ## Setup First register at Temlavo, then open API keys and create a key. Copy the full key shown once; the shortened key hint will not work. Import and save this workflow in n8n. Create one HTTP Header Auth credential: Name Authorization; Value Bearer followed by one space and your full Temlavo API key. Select it on Create Document, Confirm Upload, and Get Document only. From your existing workflow, use Execute Sub-workflow with Wait for Sub-Workflow Completion enabled. Pass binary.invoice plus the temlavo_submission object described in the input sticky note. Keep the trigger on Accept all data so the file is preserved. Process one invoice per call. ## Requirements and customization Requires a Temlavo account, API key, available usage, and a supported invoice up to 20 MiB. The template is free; Temlavo API usage follows Temlavo pricing, and your n8n hosting costs are separate. Connect the returned outcome to your own accounting, notification, or review steps. See the canvas notes for retries and data retention.

The steps

  1. Receive invoice from caller
  2. Validate invoice input
  3. Create Document
  4. Normalize Create Response
  5. Route Create
  6. Wait before create replay
  7. Snapshot signed PUT context
  8. Signed PUT (isolated)
  9. Normalize signed PUT
  10. Route signed PUT
  11. Snapshot confirmation context
  12. Confirm Upload
  13. Normalize Upload Complete
  14. Route Upload Complete

27 steps in total.

Similar automations