Skip to content

Documents Take Confirmed

Picks up the bundles whose split a person already confirmed in the classification station. It downloads each file to a temp path, takes it out of the inbox (so it isn’t re-processed), and returns them with their local path and their confirmed segments. The playbook iterates and extracts each segment.

Documents Take Confirmed → output: bundles
For Each items = = bundles, itemVariable = bundle
└── For Each items = = bundle["segments"], itemVariable = segment
└── IDP Extract path = = bundle["path"]
project = = segment["type"]
pages = = segment["pageStart"] + "-" + segment["pageEnd"]
ParameterTypeWhat it is
limitintMaximum bundles to take at once. Default 50.
outputDirtextWhere to download the files. Default: the temp folder.

A list of bundles; each one:

FieldWhat it is
idThe bundle’s id in the store.
referenceThe key it was uploaded with.
pathThe LOCAL path of the downloaded file.
segmentsThe confirmed segments: [{ pageStart, pageEnd, type, recognized }].

Taking a bundle marks it as extracted, so it isn’t returned again. If a segment’s extraction fails, IDP Extract’s idempotency (by reference) avoids re-paying the already-extracted segments on a retry.

If the bundle was uploaded with its OCR cache (the document of Send Bundle to Classification), each returned bundle carries document: the full reading. Pass it to IDP Extract together with each segment’s range (pages) and extraction slices that reading instead of re-reading — the same paper is never paid twice. Without a cache, document comes back empty and you extract by path as always.