{ "name": "Invoice Template", "description": "Template for processing invoices", "fields": [ { "name": "Invoice Number", "key": "invoice_number", "data_type": "string", "description": "The unique identifier for the invoice" }, { "name": "Invoice Date", "key": "invoice_date", "data_type": "date", "description": "The date the invoice was issued" }, { "name": "Due Date", "key": "due_date", "data_type": "date", "description": "The date the invoice payment is due" }, { "name": "Total Amount", "key": "total_amount", "data_type": "number", "description": "The total amount due on the invoice" } ], "tables": [ { "name": "Line Items", "key": "line_items", "description": "The list of products or services on the invoice", "columns": [ { "name": "Description", "key": "description", "data_type": "string", "description": "The description of the item" }, { "name": "Quantity", "key": "quantity", "data_type": "number", "description": "The quantity of the item" }, { "name": "Unit Price", "key": "unit_price", "data_type": "number", "description": "The price per unit of the item" }, { "name": "Amount", "key": "amount", "data_type": "number", "description": "The total amount for the line item" } ] } ]}
Core Concepts
Templates
Define data requirements
Copy
{ "name": "Invoice Template", "description": "Template for processing invoices", "fields": [ { "name": "Invoice Number", "key": "invoice_number", "data_type": "string", "description": "The unique identifier for the invoice" }, { "name": "Invoice Date", "key": "invoice_date", "data_type": "date", "description": "The date the invoice was issued" }, { "name": "Due Date", "key": "due_date", "data_type": "date", "description": "The date the invoice payment is due" }, { "name": "Total Amount", "key": "total_amount", "data_type": "number", "description": "The total amount due on the invoice" } ], "tables": [ { "name": "Line Items", "key": "line_items", "description": "The list of products or services on the invoice", "columns": [ { "name": "Description", "key": "description", "data_type": "string", "description": "The description of the item" }, { "name": "Quantity", "key": "quantity", "data_type": "number", "description": "The quantity of the item" }, { "name": "Unit Price", "key": "unit_price", "data_type": "number", "description": "The price per unit of the item" }, { "name": "Amount", "key": "amount", "data_type": "number", "description": "The total amount for the line item" } ] } ]}
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.
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
Once you’ve defined a template, you’re ready to start creating Extractions for file processing.
Copy
{ "name": "Invoice Template", "description": "Template for processing invoices", "fields": [ { "name": "Invoice Number", "key": "invoice_number", "data_type": "string", "description": "The unique identifier for the invoice" }, { "name": "Invoice Date", "key": "invoice_date", "data_type": "date", "description": "The date the invoice was issued" }, { "name": "Due Date", "key": "due_date", "data_type": "date", "description": "The date the invoice payment is due" }, { "name": "Total Amount", "key": "total_amount", "data_type": "number", "description": "The total amount due on the invoice" } ], "tables": [ { "name": "Line Items", "key": "line_items", "description": "The list of products or services on the invoice", "columns": [ { "name": "Description", "key": "description", "data_type": "string", "description": "The description of the item" }, { "name": "Quantity", "key": "quantity", "data_type": "number", "description": "The quantity of the item" }, { "name": "Unit Price", "key": "unit_price", "data_type": "number", "description": "The price per unit of the item" }, { "name": "Amount", "key": "amount", "data_type": "number", "description": "The total amount for the line item" } ] } ]}