Check if Document Contains an Item
Determines if a document contains a specific item.
Overview
This procedure determines if a document contains a specific item (text, table, etc.). When checking for tables, it performs additional processing to identify table structures with specific confidence thresholds.
Make sure to add the Document Processing Book to your agent before using this automation procedure.
Syntax
Below is a line-by-line overview of the automation syntax. Expand each line to learn more.
Examples
1. Check if Document Contains Text
This example checks if the document contains specific text content.
get the file as a scanned document
if the document contains "important notice" then
# perform actions when text is found
2. Check if Document Contains Table
This example checks if the document contains a table structure.
get the file as a scanned document
if the document contains the table then
# perform actions when table is found
3. Check for Sensitive Information
This example checks if the document contains sensitive information.
get the file as a scanned document
if the document contains "social security number" then
# handle sensitive information processing
Last updated
Was this helpful?