Process a document
Send a document to a Document AI processor (e.g. an invoice, form, OCR or custom extractor) and get its text, entities, form fields and tables; each table becomes a Data Table.
Command in the Google Cloud AI toolkit · id ooa.google_ai/documentai_process · 7 inputs (2 required), 6 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | google_ai | Name of the session opened by Connect. |
| Processor ID | String | Yes | Id of the processor, from its page in the Google Cloud console. It may come from the vault. | |
| File | File | Yes | PDF, TIFF, GIF, JPEG, PNG, BMP or WEBP file; at most 20 MB. | |
| Project | String | No | The project that owns the processor, when it is not the one given to Connect (G6). It may come from the vault. | |
| Processor version | String | No | A processor version id, e.g. pretrained-invoice-v2.0-2023-12-06. Leave empty for the default version. | |
| MIME type | String | No | Content type of the file, e.g. application/pdf. Leave empty to take it from the file name. | |
| First row headers | Boolean | No | true | Use each table's header row (or first row) as its column names. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | All text of the document. |
| entities | Table | What the processor extracted. Columns: type, text, normalized, confidence. |
| fields | Dictionary | Entity type to its text, e.g. {"invoice_id": "INV-100", "total_amount": "110.00"}; repeated types become a list. |
| form_fields | Table | Form fields found on the pages (form parser). Columns: name, value, confidence, page. |
| tables | List | One Data Table per table found. |
| page_count | Number | Number of pages processed. |