Step 1 - OCR
The OCR step is the buffer between the import and the AI. It queues the new Record's documents for OCR and holds the Record here until the OCR is finished, so the import never waits on the AI steps that follow. Nothing in this step uses AI.
Activation Rules
Add an OCR/Barcodes Status rule set to Record has NOT been OCRed. A Record the Importer has just added has not been OCR'd, so it stops here. The invoice Records that AI Split and Index creates later carry the OCR status of the stack they came from, so this rule lets them pass straight by.
Assignments
Assign the step to the docMgt_Agent user. The step must be assigned to someone: a step with no assignments runs its actions and moves on at once, which would send the Record into Invoice Indexing before the OCR had even started and put the AI back into the import. Assigning it to docMgt_Agent keeps the Record waiting here without putting it on anyone's work list.
Assignment Actions
Add a Read OCR/Barcodes action with these settings:
- OCR Mode - Read Full Text Only. The invoice steps do not use barcodes, and leaving them out makes the OCR faster.
- First N Pages (Advanced tab) - enter 1 to OCR only the first page, or leave it blank to OCR every page. See One Page or All Pages below.
Buttons
Add one button, for example OCR Complete, and make it the default complete button: on the button's Options tab, Default Complete reads This is the default complete button. The first button you add to a step is set this way for you. When the OCR finishes, it clicks the default complete button on the Record's behalf, and that moves the Record on to Invoice Indexing. No one sees or clicks this button themselves.
One Page or All Pages
The AI steps do not need the OCR text. AI Split and Index and AI Data Match read the invoices themselves, so how much you OCR decides only what full text search can find later.
- Page 1 only - the fastest choice, and the step still does its real job as the buffer. First N Pages counts from the start of each file, so when a whole stack of invoices was scanned as one file, only the first page of the stack is OCR'd and full text search will find little in the others.
- All pages - every invoice can be found by any word printed on it. When the stack is split, each page's OCR text moves with the page to its new invoice Record, so nothing is OCR'd twice.
Choose all pages if your users search invoices by their content, such as a part number or a line description. Choose page 1 if they find invoices by their indexed fields, such as vendor, invoice number or date.