Upload Document and Wait for Result
AI-generatedSummary
Upload a document file to the Monk API for processing and wait synchronously for the document extraction results before continuing the workflow.
Inputs
- Server Environment (required) — Select whether to use the Monk API base URL from the node credentials or specify a custom server URL.
- Custom Server URL — Specify a custom Monk API server URL, used only if Server Environment is set to Custom.
- Input Data Field Name (required) — The field name in the input data that contains the file to upload, supporting file types from nodes such as Form Trigger or binary data.
- File Name — Optional file name to assign to the uploaded document. If empty, defaults to the fileName from input data or "document.pdf".
- Extractor ID — Optional identifier of the extractor configuration to use for processing the document. Uses default extractor if omitted.
- Extraction Configuration — Advanced optional extraction parameters, such as enabling OCR, layout detection, quality check, reasoning, rotation, and selection of extraction model (Lite, Standard, Pro, Pro Experimental).
- Maximum Wait Time (Minutes) (required) — Duration in minutes to wait for Monk to finish processing the uploaded document before timing out with failure.
- Poll Interval (Seconds) (required) — Interval in seconds to poll the Monk server for the processing status while waiting for the extraction results.
Output shape
A list of extracted document records returned by Monk after processing completes, with each item containing document metadata, extraction results, and upload details.
If processing completes but no documents are returned, the output includes a message noting this. If errors occur during upload or processing and 'Continue On Fail' is enabled, returned items will contain error messages corresponding to each input. The operation enforces a maximum wait time and polls the server repeatedly until the document is fully processed or timeout occurs.