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

> Quick overview This sub-workflow receives a single invoice file from another n8n workflow, uploads it to Temlavo for extraction, then polls Temlavo until the document reaches a terminal state and returns a structured result (completed, needsreview, failed) or a recovery safe-stop. How it works 1. Receives one invoice item from a calling workflow, including the binary.invoice file and a temlavosubmission payload with saved idempotency tokens and file metadata. 2. Validates the input (file type, size, and required Temlavo submission fields) and prepares a fixed Temlavo API request context. 3. Creates a Temlavo document via the Temlavo REST API using an Idempotency-Key header and decides whether to upload, poll, retry after backoff, or stop with a structured recovery response. 4. Uploads the invoice bytes to Temlavo using the signed URL and headers provided by the API, then confirms upload completion with Temlavo. 5. Polls the Temlavo document status until it becomes completed, needsrevie

- **Domain**: `n8n-workflow-19943.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19943
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19943.n8n.io
- Documentation: https://n8n.io/workflows/19943
