Invoice Processing with AI
This guide walks you through setting up a workflow that takes invoices from the moment they arrive to the moment they are approved, with no manual indexing in between. The AI splits each scanned batch into one Record per invoice, reads each invoice's header fields and line items, and matches the vendor against your vendor list, so the approver opens an invoice that is already indexed and tied to the right vendor.
The guide covers the workflow only. Each step's page explains what to set and why; the full description of every setting is on the action's own page under AI Actions.
How Invoices Get In
Invoices usually arrive through the DocMgt Importer, which brings files into DocMgt as new Records in your invoice Record Type. A file can hold one invoice or a whole stack scanned in one pass, and the workflow handles both. Setting up the Importer is covered in its own guide; this guide starts at the point where the Record exists.
The Four Steps
The workflow is one Process with four steps, in this order:
- OCR - queues the Record's documents for OCR and waits for it to finish. This is the buffer between the import and the AI.
- Invoice Indexing - the AI Split and Index action splits a stack into one Record per invoice and indexes each one.
- Vendor Matching - the AI Data Match action finds the vendor in your vendor list and writes its ID onto the Record.
- Invoice Approval - a person reviews the invoice and approves or rejects it.
Only the first and last steps are assigned to anyone. Invoice Indexing and Vendor Matching have no assignments, so each one runs its actions and moves straight on to the next step.
Why OCR Comes First
When a Record is added, its workflow starts right away, and the import that added it waits until the first step's actions are done. If the first step were AI Split and Index, every import of a 60-page stack would sit and wait while the AI read all 60 pages, then indexed and matched every invoice in it.
Putting OCR first breaks that chain. All the import waits for is the OCR request being queued, which takes a moment. The OCR then runs in the background, and when it finishes it completes the OCR step on its own, which moves the Record into Invoice Indexing. From there the splitting, indexing and vendor matching all run in the background as well, never in the import.
The OCR queue also paces the work. OCR processes a few documents at a time and starts the next one as each finishes, so a large drop of files flows steadily into the AI steps instead of reaching them all at once. See OCR Processing for how the queue works.
What Each Record Goes Through
A stack of invoices comes in as one Record. It is OCR'd, and then AI Split and Index splits it into a new Record per invoice. Each new Record starts the Process again from the top: it skips OCR, because its pages were OCR'd before the split, skips Invoice Indexing, because it came out of a split, and goes on to Vendor Matching and then Invoice Approval. Once every page of the stack has been split out, the original stack Record is deleted.
A file holding a single invoice keeps its own Record and follows the same path.
The skips come from the Activation Rules on the OCR and Invoice Indexing steps. Set them up exactly as their pages describe; without them, the new Records would be OCR'd and split all over again.
Before You Start
You need:
- An invoice Record Type with a header field for each value you want captured, such as VendorName, InvoiceNumber, InvoiceDate, InvoiceTotal and VendorID, plus line item fields if you want line items. Give every field clear Header text; the AI uses it as the field's description.
- A Vendors Record Type holding your vendor list, with a vendor ID field and the vendor's name, plus any account number, tax ID or phone number you keep for each vendor.
- AI workflow actions available on your site, with Automation tokens allowed in AI Settings.
- The Teams or Users who approve invoices.
The field names in this guide are examples. Use the names in your own Record Types.
Setting Up the Process
Create a Process for your invoice Record Type, for example named Invoice Processing, with a Record Type Check Activation Rule for that Record Type. Then add the four steps below it in the order above, setting each one up as its page describes.
NOTE ON (AI): Reading documents with AI consumes tokens and may incur extra fees. Workflow tokens are billed separately from End-User or Admin tokens - check with your sales rep for more information. Please verify all results, as AI can make mistakes.