Get document result
Read a document's status and what Document Automation read from it, by its id: fields, tables (such as line items) and each field's confidence.
Command in the Document Automation toolkit · id ooa.documents/get_result · 1 input (1 required), 12 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Document ID | String | Yes | The document id that Send document to process gave (or a document_id input given by a Start-a-bot delivery). |
Outputs
| Output | Type | What it is |
|---|---|---|
| status | String | queued or processing (still being read), success (read and checked), validation (waits for a reviewer), validated (approved), invalid (rejected) or failed. |
| done | Boolean | True when the document is no longer being read. |
| needs_review | Boolean | True while it waits for a person's review. |
| reviewed | Boolean | True when a person approved or rejected it. |
| fields | Dictionary | The fields read, by name (after review: the corrected values). |
| tables | Dictionary | Table fields (such as line items), by name, each a Data table. |
| confidence | Dictionary | How sure the reading was for each field, from 0 to 1. |
| document_type | String | The document type it was classified as. |
| file_name | String | The document's file name. |
| reviewed_by | String | Who approved or rejected it, when reviewed. |
| error | String | Why reading failed, when it failed. |
| parts | List | When the file held several documents (a process that recognises and splits): each one's document_id, status, doc_type and file_name. Empty otherwise. |