This page describes the data model used by the Document Insights application when integrated with Lazarus, an OCR solution for parsing and reviewing Custom Forms. The model is designed to support template-based extraction, field mapping, and confidence-based review workflows.
🧩 Object Relationship Overview
-
Document Insights stores the OCR results of a submitted custom form.
-
Document Insight Template stores the mapping configuration used to extract fields from the custom form.
🧾 Object Schema
1. Document Insights
Stores the OCR result of a Custom Form parsed via Lazarus, including extracted field statuses and confidence scoring.
|
Field |
Description |
|---|---|
|
Duplicate Keys |
List of fields that appeared more than once in the OCR result. |
|
Missing Keys |
List of fields expected but not found in the OCR output. |
|
Status |
Overall processing status (e.g., |
|
Status Description |
Additional detail for the status (e.g., "All fields matched", "3 fields missing"). |
|
Confidence Matrix (LWC) |
A Lightning Web Component that displays:
|
2. Document Insight Template
Defines the template structure and field mappings used to extract data from custom forms submitted via Lazarus.
|
Field |
Description |
|---|---|
|
Intelligence Engine Name |
Name of the custom form template (e.g., “Loan Application Form”, “Credit Report Summary”). |
|
Source Object |
API name of the Salesforce object where the extraction process will initiate. |
|
AI Intelligence Engine |
Custom Forms API |
|
Target Object |
API name of the Salesforce object where the extracted fields will be mapped (The record can be updated or created based upon Source Object). |
|
Data Field Mapping (JSON) |
JSON structure defining how OCR fields map to Salesforce fields (key = OCR label, value = API field name). |
📊 Visual Overview