Grooper Help - Version 25.0
25.0.0047 2,266

Pick

Batch Folder Code Activity Grooper.GPT

Selects one document from multiple documents of the same type using AI-powered evaluation and custom selection criteria.

Remarks

Pick uses artificial intelligence to analyze and select a single document from a set of child Batch Folders that share the same Content Type. This is essential when processing workflows generate multiple versions, renditions, or copies of a document, and you need to automatically identify which one should be used as the authoritative or controlling version.

How It Works

When executed on a Batch Folder, Pick identifies all child Batch Folders matching the specified 'Content Type'. If only one matching document exists, it is automatically selected. When multiple documents are found, Pick gathers information about each document using the configured 'Document Quoting' method and submits this information along with your 'Instructions' to an AI model via the 'Generator'. The AI evaluates the documents based on your criteria and identifies which one best meets the specified requirements, providing an explanation for its choice.

After selection, Pick can optionally flag the document with the AI's reasoning, assign a new Content Type to reclassify it, and execute Data Rules to immediately extract or process data. This allows the entire selection and subsequent handling to occur in a single automated step.

Configuration

Configure Pick by specifying which 'Content Type' identifies the candidate documents, then provide clear 'Instructions' that explain your selection criteria to the AI. Connect to your AI model by configuring the 'Generator', and optionally customize what information the AI receives about each document using 'Document Quoting'. Enable 'Flag Selected Document' to create an audit trail, configure 'Type To Assign' to automatically reclassify the selected document, and add 'Rules To Run' to perform immediate data extraction or processing.

Use Cases

Common scenarios include selecting the highest quality or most legible scan from multiple image captures, identifying the most complete form when partial submissions or duplicates exist, choosing the final version from a revision history, resolving conflicts when the same document arrives through multiple channels, or picking the most recent version based on embedded dates or timestamps.

Diagnostics

When diagnostics are enabled, Pick logs the number of candidate documents found, the document ID and reason returned by the AI, details about the selected document including its name and ID, and any content type assignments or rule executions performed. If the AI returns an invalid document ID, a diagnostic message indicates a potential issue with the AI response or document information.

Properties

NameTypeDescription
General
Disposition
Processing Options

See Also

Used By

Notification