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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | azure_ai | Name of the session opened by Connect. |
| File | File | Yes | PDF, picture (JPEG, PNG, BMP, TIFF, HEIF) or Office file; at most 50 MB. | |
| Model | String | No | prebuilt-invoice | prebuilt-invoice: invoice fields and line items. prebuilt-receipt: receipt fields. prebuilt-layout: text, tables and structure of any document. |
| Key value pairs | Boolean | No | false | Also find key and value pairs, e.g. "Order no.: 4711" (an add-on feature). |
| Pages | String | No | Only these pages, e.g. 1-3,5. Leave empty for all. | |
| Locale | String | No | Language hint, e.g. en-US or de-DE. Leave empty to detect it. | |
| Timeout (seconds) | Number | No | 120 | Fail if the analysis has not finished after this many seconds. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | All text in reading order. |
| document_type | String | The kind of document found, e.g. invoice or receipt.retailMeal (empty for layout). |
| fields | Dictionary | Field name to value, e.g. {"InvoiceId": "INV-100", "InvoiceTotal": 110}; line items become a Data Table. |
| fields_table | Table | Columns: name, value, type, confidence. |
| key_values | Table | Key and value pairs found on the pages. Columns: key, value, confidence. |
| tables | List | One Data Table per table found. |
| table_count | Number | How many tables were found. |