Skip to main content

Analyse a document

Read an invoice, receipt or any document's layout with a prebuilt model: its fields (e.g. vendor, total, date), key and value pairs and tables, each table as a Data Table (Azure AI Document Intelligence).

Command in the Azure AI services toolkit · id ooa.azure_ai/document_analyze · 7 inputs (1 required), 7 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoazure_aiName of the session opened by Connect.
FileFileYesPDF, picture (JPEG, PNG, BMP, TIFF, HEIF) or Office file; at most 50 MB.
ModelStringNoprebuilt-invoiceprebuilt-invoice: invoice fields and line items. prebuilt-receipt: receipt fields. prebuilt-layout: text, tables and structure of any document.
Key value pairsBooleanNofalseAlso find key and value pairs, e.g. "Order no.: 4711" (an add-on feature).
PagesStringNoOnly these pages, e.g. 1-3,5. Leave empty for all.
LocaleStringNoLanguage hint, e.g. en-US or de-DE. Leave empty to detect it.
Timeout (seconds)NumberNo120Fail if the analysis has not finished after this many seconds.

Outputs​

OutputTypeWhat it is
textStringAll text in reading order.
document_typeStringThe kind of document found, e.g. invoice or receipt.retailMeal (empty for layout).
fieldsDictionaryField name to value, e.g. {"InvoiceId": "INV-100", "InvoiceTotal": 110}; line items become a Data Table.
fields_tableTableColumns: name, value, type, confidence.
key_valuesTableKey and value pairs found on the pages. Columns: key, value, confidence.
tablesListOne Data Table per table found.
table_countNumberHow many tables were found.