Step 3 - Vendor Matching
This step finds each invoice's vendor in your Vendors Record Type and writes the vendor's ID onto the invoice. From here on, approval and anything after it work from a vendor in your own list rather than from a name the AI read off the page. The step has no assignments, so it runs its action and moves on.
Activation Rules
Add a Value Comparison rule: [VendorChecked] Is Equal To, with the value left empty. The first Assignment Action below sets VendorChecked, so each invoice is matched only once, whether a vendor is found or not.
Assignments
None. Leave the step unassigned so it runs its actions and moves straight on.
Assignment Actions
First add a Record Field Update action that sets VendorChecked to YES.
Then add an AI Data Match action. Invoice Indexing has already read the vendor off the invoice, so match on those values rather than reading the page again:
- Match Using (Match tab) - Index Fields.
- Matching Fields - the vendor values Invoice Indexing captured, one per line, for example VendorName and VendorAddress. Send only values your vendor records also hold.
- Candidates From (Candidates tab) - Search a Record Type.
- Record Type - your Vendors Record Type.
- Search Fields - the vendor name field, plus any field holding an account number, tax ID or phone number. An identifier finds the right vendor even when the name was read wrong.
- Key Field - your vendor ID field.
- Write Match To (Results tab) - the invoice field that receives the vendor ID, for example VendorID.
- Minimum Confidence - High writes only the matches the AI is sure of. Medium lets more through. A match below the floor is still recorded, but the field is left alone.
If your invoices do not give you a clean vendor name and address to match on, set Match Using to Document Image instead, set Entity to Match to Vendor, and set Pages to Send to 1, since the vendor's letterhead is on the first page. Image mode reads the page, so it costs more than matching on Index Fields.
What the Match Leaves Behind
Every invoice gets an AIDataMatch_Result value:
- MATCHED - the vendor was found at or above the Minimum Confidence, and its ID is in the field named in Write Match To.
- LOWCONFIDENCE - a likely vendor was found, but below the Minimum Confidence. The field is left alone.
- NOMATCH - no vendor was found. The field is left alone.
AIDataMatch_Outcome explains the result in plain words. When a vendor is found, each of its fields is also available as AIDataMatch_Col_ followed by the field name, for example AIDataMatch_Col_PaymentTerms, if you want to copy vendor details onto the invoice.
A missing match never stops the workflow. Every invoice moves on to Invoice Approval, and Step 4 - Invoice Approval shows how to send the unmatched ones to a person first.
NOTE ON (AI): Matching 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.