- Template fields
- Table columns
string
type.
Available Data Types
String
The most flexible data type, accepting any text value. Accepts: Any text valueOutput: The extracted value as a string
Number
For numeric values, such as amounts, quantities, and measurements. Accepts: Integers and decimal numbers of any sizeOutput: The extracted value as a number, or null if blank
Validation: Non-numeric values are flagged for review
Date
For date and datetime values, supporting various formats. Accepts: Date strings in various formats (e.g., “2023-04-15”, “Apr 15, 2023”, “15/04/2023”)Output: The extracted value as an RFC 3339 datetime (e.g., “2023-04-15T00:00:00Z”), or null if blank
Validation: Invalid date formats are flagged for review
Boolean
For true/false values. Accepts: “true”, “t”, “1”, “yes”, “y” for true; “false”, “f”, “0”, “no”, “n” for false (case-insensitive)Output: The extracted value as a boolean (true/false), or null if blank
Validation: Non-boolean values are flagged for review
Table
For defining a nested table structure within a template. This is particularly useful for complex documents that have multiple tables or nested data. Output: A structured array of rows with column valuesHow Data Types Affect Extraction
When you specify a data type:- Format Guidance - The AI uses the data type to identify the correct format when extracting
- Validation - Extracted data is validated against the expected format
- Transformation - Data is converted to the proper format (e.g., parsing dates)
- Error Flagging - Values that don’t match the expected format are flagged for review
Data Type Examples
Here’s how to define different data types in a template:Best Practices
For optimal results:- Choose Appropriate Types - Select the most specific data type that matches your expected data
- Add Validations - Combine data types with validations for more precise data quality control
- Consider Format Variations - Be aware that dates and numbers can appear in different formats in documents
- Test with Sample Documents - Process representative documents to verify data type handling