AI Custom Fields are fields that use AI to automatically extract data from documents. When you create a custom field, you can configure how AI should extract it by providing descriptions and extraction hints.
When editing a field, the AI Extraction section allows you to configure how AI extracts the field value from documents.
The Description field provides context to the AI about what the field represents and what kind of data it should extract.
Best practices:
Examples:
Good: "The invoice number is typically found in the header and may be labeled as 'Invoice #', 'INV', or 'Invoice Number'. It's usually a combination of letters and numbers."
Good: "The vendor name is the company or person who issued the invoice. Look for company names, business names, or individual names in the header section."
Bad: "Invoice number" (too vague)
Bad: "The number" (not specific enough)
The Extraction Hint provides specific guidance to help AI locate and extract the field value. This is particularly useful for fields that might appear in different formats or locations.
Best practices:
Examples:
Good: "Look for 'Due Date' or 'Payment Due' in the header. Format is typically MM/DD/YYYY or DD-MM-YYYY."
Good: "Find the total amount, which may be labeled as 'Total', 'Amount Due', 'Grand Total', or 'Balance'. Usually appears at the bottom of the document in larger font."
Good: "Extract the account number, which is usually 8-12 digits. May be labeled as 'Account #', 'Acct', or 'Account Number'."
The AI Extractable flag (found in the Flags section) controls whether AI should attempt to extract this field.
When to disable:
For detailed information about non-AI fields, see Non-AI Fields.
Different field types have different extraction behaviors:
AI extracts text values as-is from the document.
Tips:
AI extracts numeric values, handling various formats.
Tips:
AI extracts monetary amounts with currency awareness.
Tips:
AI extracts dates in various formats and normalizes to YYYY-MM-DD.
Tips:
AI extracts true/false values based on presence or specific indicators.
Tips:
AI matches extracted values to predefined enum options.
Tips:
Field Configuration:
Field Configuration:
Field Configuration:
Field Configuration:
After configuring your fields:
Possible causes:
Solutions:
Possible causes:
Solutions:
Possible causes:
Solutions:
AI extraction improves over time as you refine field descriptions and extraction hints. Don't hesitate to iterate and improve your field configurations based on extraction results.
On This Page
OverviewAI Extraction ConfigurationDescriptionExtraction HintAI Extractable FlagField Types and AI ExtractionText FieldsNumber FieldsCurrency FieldsDate FieldsBoolean FieldsEnum FieldsExamplesExample 1: Invoice Number FieldExample 2: Due Date FieldExample 3: Payment Status FieldExample 4: Calculated Total FieldTesting AI ExtractionTroubleshootingAI Not Extracting FieldIncorrect Values ExtractedInconsistent ExtractionBest PracticesRelated Documentation