Send document to process
Send a document to a live Document Automation process. Optionally wait until it is read, to use its fields and status in the agent.
Command in the Document Automation toolkit · id ooa.documents/send · 4 inputs (2 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Process | String | Yes | The process's name (or id) as shown in Document Automation. It must be live. | |
| Path | File | Yes | The document: PDF, PNG, JPG or TIFF. | |
| Wait | Boolean | No | false | Wait until the document is read (up to 15 minutes) and return its status and fields. |
| Process version | Number | No | Only send when the process's setup is still this version (G6), so a changed setup never reads the document unnoticed: a different version stops the step with DOCS.VERSION_CHANGED. Empty: whatever version is live. |
Outputs
| Output | Type | What it is |
|---|---|---|
| document_id | String | The document's id in Document Automation (when the file was one document of a process that recognises types: that document's id). |
| status | String | processing, success (read and checked), validation (waits for a reviewer), invalid or failed. |
| needs_review | Boolean | True when a person must review it (only known when waiting). |
| fields | Dictionary | The fields read, by name (only when waiting). |
| 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. |