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
- Receives an uploaded invoice file via an HTTP POST webhook.
- Validates the uploaded file type and size, then submits it to the Mindee V2 extraction enqueue API.
- Polls the Mindee V2 job status up to 20 times until the extraction is processed, fails, or times out.
- Retrieves the Mindee extraction result and normalizes common invoice fields (invoice number, supplier, dates, totals) while flagging missing required values.
- Emails the extracted invoice details to a reviewer with approve/reject links and pauses execution until the reviewer responds via a resume webhook.
- Routes the reviewer decision and sends an approval notification to Accounts Payable or a rejection notification back to the reviewer.
Setup
- Create a Mindee V2 HTTP Header Auth credential (API key) and attach it to the Mindee enqueue, status, and result HTTP requests.
- Replace the Mindee model ID placeholder (REPLACE_WITH_MINDEE_MODEL_ID) with your invoice extraction model ID.
- Configure an SMTP email credential for the email nodes and replace the sender, approver, and accounts-payable email placeholders.
- 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.