AutoBridge

Process Library & AI Evaluation - Configuration Guide


Overview

The Process Library is a collection of defined "Processes" that enable AI-powered document evaluation and automated determination. Each process configures context, criteria, and knowledge that allows the AI system to evaluate submitted applications, documents, or forms.

Process Library Capabilities

FeatureDescription
Process ConfigurationDefine evaluation processes for applications and documents
Template UploadUpload PDF templates or use existing forms
AI AutofillConfigure AI to automatically extract and fill fields
Field DetectionAutomatic detection of fields from uploaded templates
Intake ConfigurationSet up how documents/forms are received
Automated DeterminationAI-powered evaluation resulting in approvals/rejections

Prerequisites

Before creating processes, ensure:

  • User has appropriate permissions for Document Processing module
  • Forms/entities exist if using existing form option
  • Template documents are prepared (if using template upload)

Section 1: Process Library Overview

1.1 Process Types

TypeValueDescription
Application/FormapplicationFor form-based submissions (permits, applications)
Document/ContractdocumentFor document-based processing (contracts, agreements)

1.2 Process Statuses

StatusValueDescription
PublishedPublishedProcess is active and available
DraftDraftProcess is in development

1.3 Process Library Navigation

Navigation: Document Processing -> Process Library

The Process Library table displays:

  • Process name
  • Process type
  • Intake type
  • Description
  • Last modified date

Available Actions:

  • Edit process
  • View process
  • Delete process

Section 2: Creating a New Process

2.1 Process Creation Steps

Creating a process follows a 5-step wizard:

Step 1: Basic Info
    |-- Name, Type, Description

Step 2: Template
    |-- Upload template OR Select existing form OR Start from scratch

Step 3: Entity
    |-- Configure fields, Create AI fields, Add custom fields

Step 4: Form
    |-- Configure form layout, Add fields, Set validation

Step 5: Intake
    |-- Configure how submissions are received

2.2 Step 1: Basic Info

Navigation: Process Library -> + Add New Process -> Basic Info

FieldField NameDescriptionRequired
Process NamenameName for the processYes
Process TypetypeApplication/Form or Document/ContractYes
DescriptiondescriptionDescription of the process purposeNo

2.3 Step 2: Template

Navigation: Process Creation -> Step 2: Template

Three options for template setup:

OptionDescription
Upload TemplateUpload an empty or prefilled PDF template
Select Existing FormChoose a form from Entity Manager
Start from ScratchCreate with only default fields

Template Fields:

FieldField NameDescription
AttachmentattachmentUploaded template file
Entity FormentityFormSelected existing form

2.4 Step 3: Entity (Field Configuration)

Navigation: Process Creation -> Step 3: Entity

In this step, you configure the entity fields for the process:

  1. Automatic Field Detection: System detects fields from uploaded template
  2. Add Missing Fields: Manually add fields not detected
  3. Configure AI Fields: Enable AI autofill for fields
  4. Create Custom Fields: Add dropdown, text, number fields

Field Types Available

The process supports all standard field types plus AI-enhanced fields:

  • Text, Text Area
  • Dropdown, Radio, Checkbox
  • Date, Number
  • File, Signature
  • And all other entity field types

AI Autofill Configuration

Navigation: Field -> Three-dot menu -> Autofill with AI

This opens the AI sidebar for configuring AI-powered field filling.


Section 3: AI Autofill Configuration

3.1 AI Autofill Overview

AI Autofill allows the system to automatically extract information from documents and fill form fields using AI analysis.

3.2 AI Autofill Settings

SettingField NameDescription
Field to Analyzewatch_field_idSource field for AI to analyze
AI InstructionsinstructionsInstructions for the AI (max 3000 chars)
Field to Assignoutput_valueTarget field to populate with result

3.3 Configuring AI Instructions

Navigation: AI Sidebar -> Add Instruction

When configuring AI autofill:

  1. Select Field to Analyze: Choose which field the AI should read/analyze
  2. Write AI Instructions: Provide clear instructions for what to extract
  3. Select Field to Assign: Choose which field receives the extracted value
  4. Add Instruction: Click to add the instruction to the list
  5. Test AI Instruction: Test the instruction with sample data

Instruction List Features:

  • View all configured instructions
  • Edit existing instructions
  • Delete instructions
  • Reorder instructions

3.4 AI Instruction Best Practices

When writing AI instructions:

PracticeExample
Be Specific"Extract the applicant's full legal name from the first section"
Define Format"Format phone numbers as (XXX) XXX-XXXX"
Handle Missing Data"If address is not found, leave blank"
Specify Sources"Look for permit number in the header or footer"

3.5 Evaluation Data Structure

When AI evaluates instructions, the system stores detailed evaluation data:

Evaluation Instruction Data:

FieldTypeDescription
reasoningstringAI's reasoning for the evaluation decision
matched_conditionbooleanWhether the AI condition was matched
output_valuestring[] | nullExtracted values from the evaluation

Watched Field Instruction:

FieldTypeDescription
_idstringUnique instruction identifier
watch_fieldWatchFieldThe field being analyzed
evaluation_dataEvaluationFieldData | nullResults of AI evaluation
instructionsInstruction[]Array of configured instructions

3.6 AI Instruction Data Model

Each AI instruction contains:

FieldAPI KeyDescription
Instruction IDuuidUnique identifier
AI Field IDai_field_idAssociated AI field
Watch Field IDwatch_field_idSource field to analyze
InstructionsinstructionsText instructions for AI
Output Valueoutput_valueTarget field assignment

Section 4: Knowledge Base Integration

4.1 Knowledge Base Overview

The AI system can be enhanced with external knowledge sources to improve accuracy and context-awareness. Knowledge sources provide reference data that the AI uses during field extraction and evaluation.

Navigation: AI Sidebar -> Knowledge Tab -> Add Knowledge Dropdown

4.2 Knowledge Source Types

TypeAPI ValueDescription
APIapiExternal REST API endpoints
DocumentdocumentUploaded reference documents
WebsitewebsiteWeb pages for reference
SharePointsharepointSharePoint document libraries
TexttextPlain text knowledge entries
EntityentityEntity data from the system

4.3 Adding API Knowledge

Navigation: Add Knowledge -> API

Configure external API endpoints to provide reference data:

HTTP Configuration:

FieldDescriptionRequired
MethodHTTP method (GET, POST, PUT, DELETE)Yes
URLAPI endpoint URL (must be valid URL)Yes

Header Configuration:

FieldDescription
KeyHeader name
ValueHeader value

Query Parameters:

FieldDescription
KeyParameter name
ValueParameter value

Body Parameters (for POST/PUT):

FieldDescription
DescriptionOptional description of the body
PropertiesArray of property definitions

Property Schema:

FieldDescription
dataTypeData type (string, number, integer, boolean, object)
keyProperty key name
valueTypeValue type for the property
valueActual value (required for primitive types)
isRequiredWhether the property is required
propertiesNested properties (for object types)

API Knowledge Data Structure:

type ApiKnowledge = {
  type: 'api';
  data: {
    api_url: string;
    request_method: string;
    request_headers: Record<string, string>;
    query_params: Record<string, string>;
    request_body: Record<string, any>;
  };
};

4.4 Adding Document Knowledge

Navigation: Add Knowledge -> Document

Upload reference documents for the AI to use:

File Requirements:

SettingValue
Maximum File Size1000 MB (1 GB)
Minimum Files1 file required
Maximum Files10 files per knowledge entry

Supported Formats:

  • PDF documents
  • Word documents (.doc, .docx)
  • Text files (.txt)
  • Image files (for OCR processing)

Document Knowledge Data Structure:

type DocumentKnowledge = {
  type: 'document';
  data: {
    file_details: {
      file_id: string;
      file_name?: string;
      size?: number;
    }[];
  };
};

4.5 Adding Website Knowledge

Navigation: Add Knowledge -> Website

Add website URLs as reference sources:

URL Requirements:

SettingValidation
ProtocolHTTP or HTTPS only
Maximum Length500 characters
FormatValid URL format required

Website Knowledge Data Structure:

type WebsiteKnowledge = {
  type: 'website';
  data: {
    web_url: string;  // Field name: 'web_url'
  };
};

4.6 Adding SharePoint Knowledge

Navigation: Add Knowledge -> SharePoint

Connect to SharePoint document libraries:

Configuration:

FieldDescription
AccountSharePoint account selection
FilesSelected files from the library

SharePoint Knowledge Data Structure:

type SharepointKnowledge = {
  type: 'sharepoint';
  data: {
    siteUrl: string;
    listId: string;
  };
};

4.7 Knowledge Item Structure

All knowledge sources share a common base structure:

type KnowledgeItem = {
  _id: string;           // Unique identifier
  name: string;          // Display name
  description: string;   // Description of the knowledge
} & KnowledgeData;       // Type-specific data

Section 5: Form Configuration

5.1 Step 4: Form

Navigation: Process Creation -> Step 4: Form

In this step, configure how the form appears to users:

Form Settings

SettingDescription
Form NameDisplay name for the form
DescriptionForm description/instructions
Button ControlsConfigure navigation buttons
Advanced SettingsAdditional form configuration

Adding Fields to Form

Navigation: Form Builder -> Add Fields

  1. Click Add Fields button
  2. Select fields from the available entity fields
  3. Configure field settings (label, placeholder, description)
  4. Drag and drop to reorder fields

Field Configuration Options

For each field in the form:

SettingDescription
LabelDisplay label for the field
PlaceholderPlaceholder text
DescriptionHelp text for the field
RequiredWhether field is mandatory
ValidationValidation rules

Section 6: Intake Configuration

6.1 Step 5: Intake

Navigation: Process Creation -> Step 5: Intake

Configure how submissions are received and processed.

6.2 Intake Types

Intake TypeIDDescription
SharePointdf0bacc6-65ad-411e-a6c4-fbab14e9963fDocuments from SharePoint folder
Form Submissionc3105855-e8ce-4f41-909c-421c8b0f4e9bDirect form submissions
Update Recorda99c4a7d-2663-4a92-8e7f-bc8aeb2b4d8bUpdates to existing records

6.3 Intake Configuration Fields

FieldField NameDescription
Intake Process TypeintakeProcessTypeType of intake
Select Accountselect_accountAccount/tenant selection
Select Folderselect_folderFolder for document intake
Folder Namefolder_nameName of intake folder
Intake URLintakeUrlURL for intake endpoint
API KeyintakeApiKeyAPI key for secure access

6.4 Instructions Configuration

Additional instructions for the process:

FieldField NameDescription
DescriptiondescriptionInstructions description
AttachmentinstructionsAttachmentAttached instruction documents

Section 7: Permitting Solution Patterns

7.1 Permit Application Process Pattern

Process Name: Permit Application Evaluation

Configuration:

StepConfiguration
Basic InfoType: Application/Form, Description: "Evaluate building permit applications"
TemplateUpload permit application PDF or select existing permit form
EntityConfigure fields with AI autofill for document extraction
FormCreate citizen-facing application form
IntakeForm Submission for portal, SharePoint for email submissions

AI Autofill Examples:

FieldAI Instruction
Project Address"Extract the complete property address including street, city, state, and ZIP"
Permit Type"Identify the type of permit being requested (Building, Electrical, Plumbing, etc.)"
Estimated Cost"Extract the estimated project cost, format as USD"
Contractor Name"Find the licensed contractor's name and license number if provided"

7.2 Document Evaluation Process Pattern

Process Name: Contract Document Review

Configuration:

StepConfiguration
Basic InfoType: Document/Contract, Description: "Review and evaluate contract documents"
TemplateUpload contract template for field detection
EntityAI fields for contract terms, dates, amounts
FormInternal review form for staff
IntakeSharePoint for document library, Email for submissions

7.3 Zoning Compliance Check Pattern

AI Autofill for Zoning:

FieldAI Instruction
Zoning District"Identify the zoning district from the parcel information (R-1, C-2, etc.)"
Lot Coverage"Calculate or extract lot coverage percentage from plans"
Setbacks"Extract front, side, and rear setback dimensions from the site plan"
Building Height"Find the proposed building height from elevation drawings"

Section 8: Evaluation Results & Metrics

8.1 Evaluation Result Structure

When documents/forms are processed, the system generates evaluation results:

FieldTypeDescription
idstringUnique evaluation result ID
blob_urlstringURL to the processed document
file_namestringName of the evaluated file
file_typestringType of file (PDF, etc.)
statusstringEvaluation status
reasonstringReason for the evaluation decision
contactstringContact information
timestampstringWhen evaluation occurred
process_typestringType of process used
form_idstringAssociated form ID
entity_idstringAssociated entity ID
record_idstringCreated/updated record ID

8.2 Process History Fields

Track the history of evaluations with these fields:

Field NameDescription
record_idAssociated record identifier
evaluation_completed_atTimestamp of completion
processProcess used for evaluation
reasonEvaluation decision reason
statusCurrent evaluation status
entity_idEntity identifier
file_idSource file identifier
evaluationsArray of evaluation details
field_idField being evaluated
reason_field_idField containing the reason

8.3 Dashboard Metrics

The system tracks the following metrics:

MetricDescription
totalTotal evaluations processed
approvedNumber of approved submissions
deniedNumber of denied submissions
in_reviewNumber pending manual review

8.4 Final Evaluation Output

Each evaluation produces a final output:

type FinalOutput = {
  value: string[];    // Array of extracted/determined values
  reasoning: string;  // AI's reasoning for the decision
};

Section 9: Testing and Publishing

9.1 Testing AI Instructions

Before publishing, test all AI instructions:

  1. Navigate to AI Sidebar
  2. Click Test AI Instruction
  3. Upload sample document
  4. Verify extracted values
  5. Adjust instructions if needed

9.2 Publishing the Process

After completing all steps:

  1. Review all configurations
  2. Click Submit to save to Process Library
  3. Process status changes to "Published"
  4. Process becomes available for use

Section 10: Field Configuration in Process

10.1 Entity Field Configuration

Fields in a process can be configured with various settings:

Field Properties:

PropertyTypeDescription
namestringField name
labelstringDisplay label
typeFieldTypeField type (text, dropdown, etc.)
default_valuestringDefault value
placeholderstringPlaceholder text
validationsFieldValidationValidation rules
optionsFieldOption[]Options for dropdown fields
multi_selectbooleanAllow multiple selections
is_protectedbooleanProtected field flag
descriptionstringField description
ai_field_idstringAssociated AI field ID

10.2 Field Validation Schema

ValidationTypeDescription
requiredbooleanField is required
min_lengthnumberMinimum character length
max_lengthnumberMaximum character length
min_valuenumberMinimum numeric value
max_valuenumberMaximum numeric value
patternstringRegex pattern for validation
uniquebooleanValue must be unique
indexbooleanCreate index for field

10.3 Field Configuration UI Constants

ConstantValueDescription
Configure FieldConfigure FieldField config panel title
Field LabelField LabelLabel input title
Allow Multiple SelectAllow multiple selectMulti-select toggle
Show as BadgeShow options as badgesBadge display option
Color-code OptionsColor-code optionsColored badges option

Troubleshooting

Common Issues

AI Autofill Not Extracting Data

Check:

  1. Verify the source field contains readable text
  2. Ensure AI instructions are clear and specific
  3. Check that document quality is sufficient for OCR
  4. Test with sample documents

Field Detection Not Working

Check:

  1. Ensure template PDF has proper form fields
  2. Try different template formats
  3. Manually add missing fields

Intake Not Receiving Documents

Check:

  1. Verify SharePoint connection credentials
  2. Check folder permissions
  3. Confirm API key is valid
  4. Review intake URL configuration

Knowledge Source Not Updating

Check:

  1. Verify API endpoint is accessible
  2. Check authentication headers
  3. Ensure website URL is valid HTTP/HTTPS
  4. Confirm SharePoint permissions

Code Reference

Source Files - Process Library

FileLocationPurpose
Process Library Constantsdocument-processing-app/src/pages/ProcessLibrary/consts.tsProcess types, statuses, tour guide steps
Create Process Constantsdocument-processing-app/src/pages/ProcessLibrary/CreateProcessTourGuide/CreateProcessTourGuide/consts.tsField names for process creation
Process Typesdocument-processing-app/src/pages/ProcessLibrary/types.tsApplication data types

Source Files - AI Autofill

FileLocationPurpose
AI Autofill Constants.../Entity/AiAutoFillSidebar/const.tsAI field configuration (watch_field_id, instructions, output_value)
AI Autofill Types.../Entity/AiAutoFillSidebar/types.tsEvaluation data structures, instruction types
Right Sidebar Types.../AiAutoFillSidebar/RightSidebarSection/types.tsFinal output and sidebar configuration

Source Files - Knowledge Base

FileLocationPurpose
Knowledge Popups Index.../AiAutoFillSidebar/KnowledgePopups/index.tsKnowledge source exports
Add API Knowledge Schema.../KnowledgePopups/AddAPIKnowledge/validationSchema.tsAPI configuration validation
Add Website Schema.../KnowledgePopups/AddWebsiteDialog/validationSchema.tsWebsite URL validation
Add File Schema.../KnowledgePopups/AddFileDialog/validationSchema.tsDocument upload validation
Add SharePoint Schema.../KnowledgePopups/AddSharepointDialog/validationSchema.tsSharePoint configuration
Service Types.../Entity/serviceType.tsKnowledge type definitions (api, document, website, sharepoint, text, entity)

Source Files - Evaluation & Dashboard

FileLocationPurpose
Dashboard Typesdocument-processing-app/src/services/dashboard/types.tsEvaluation result types, metrics
Process History Fieldsdocument-processing-app/src/types/processHistoryFieldNames.tsHistory field names
Intake Constants.../CreateProcess/Intake/const.tsIntake type IDs
Template Constants.../CreateProcess/Template/const.tsTemplate field names

Source Files - Entity Configuration

FileLocationPurpose
Configure Entity Types.../Entity/ConfigureEntity/types.tsField types, validation, options
Entity Builder Constants.../ConfigureEntity/EntityBuilderSidebar/CustomFieldConfig/consts.tsField configuration UI constants
Entity Constants.../Entity/consts.tsDefault colors for kanban badges

This guide is aligned with the document-processing-app codebase as of January 2026.