Templates
Define data requirements
What are Templates?
Templates define what data should be extracted from your documents and how that data should be structured. They act as blueprints that guide the extraction process, ensuring consistent results across multiple documents of the same type. By defining templates once, you can process thousands of similar documents with predictable outcomes.
Parts of a Template
- Template Description - Contextual information that helps AI models understand the document type and extraction purpose
- Fields - Individual data points to extract (e.g., invoice number, date, total amount)
- Tables - Structured collections of related data rows and columns (e.g., line items, transactions)
- Table Columns - The column definitions that determine what data to extract from each table row
Additional properties that enhance both fields and table columns:
- Data Types - Define the format of extracted data (string, number, date, boolean, etc.)
- Validations - Rules that ensure extracted data meets your quality requirements
Creating a Template
To create a new template:
- Navigate to the Templates page.
- Click New Template.
- Provide a name and description.
- Add Fields, Tables, and Table Columns.
AI Template Mapping
TableFlow uses AI models to intelligently map data from your documents to the fields and tables in your template. For complex documents like invoices and receipts, this eliminates the need for manual field mapping.
- Analyzes document structure and content
- Identifies relevant data based on context and positioning
- Maps data to appropriate fields and tables
- Validates data against specified rules
Template Best Practices
For optimal results with Templates:
- Be Specific - Use clear, descriptive names for fields and tables
- Use Validations - Implement appropriate validations to ensure data quality
- Test Thoroughly - Process a variety of document samples to refine your template
- Iterate - Adjust your template based on extraction results
Next Steps
Once you’ve defined a template, you’re ready to start creating Extractions for file processing.