See llms.txt for all machine-readable content.

Back to Templates

Extract and approve invoices with Mindee and email-based human review

Quick overview

This workflow receives invoice files via a webhook, extracts key fields using Mindee V2 asynchronous extraction, and emails a reviewer for approve/reject human approval, then sends an outcome notification by email.

How it works

  1. Receives an uploaded invoice file via an HTTP POST webhook.
  2. Validates the uploaded file type and size, then submits it to the Mindee V2 extraction enqueue API.
  3. Polls the Mindee V2 job status up to 20 times until the extraction is processed, fails, or times out.
  4. Retrieves the Mindee extraction result and normalizes common invoice fields (invoice number, supplier, dates, totals) while flagging missing required values.
  5. Emails the extracted invoice details to a reviewer with approve/reject links and pauses execution until the reviewer responds via a resume webhook.
  6. Routes the reviewer decision and sends an approval notification to Accounts Payable or a rejection notification back to the reviewer.

Setup

  1. Create a Mindee V2 HTTP Header Auth credential (API key) and attach it to the Mindee enqueue, status, and result HTTP requests.
  2. Replace the Mindee model ID placeholder (REPLACE_WITH_MINDEE_MODEL_ID) with your invoice extraction model ID.
  3. Configure an SMTP email credential for the email nodes and replace the sender, approver, and accounts-payable email placeholders.
  4. Copy the invoice intake webhook URL and send invoices as multipart/form-data with a single file field, using PDF/JPG/PNG/TIFF up to 10 MB.