Description
This doc describes how to use the Conditional blocks in Workflows
What are conditional blocks?
Conditional blocks can be used to define logic that determines the whether a certain data action in your workflow will run or not.
For eg:
- If the seller_name extracted on a document is seller XYZ, then set the seller_id field to 12345
- If the text on a page contains "XYZ", then delete all the labels and tables from the page
- If the country on a document is USA, then parse the date in the MM/DD/YYYY format
How can you set these up?
-
- Go to workflows screen
- Add a new step and select conditional block
- Configure the conditions
Once this is done, you will be able to see your data actions run when conditions are true
More info
- What happens if the condition isnt satisfied?
- The Data Action within the condition will not run
- The output label value will be equal to the the input label value
- Can you explain the advanced Settings?
- Page Level (default) - The data action block will run on those pages that the condition evaluates to true on
- Document level - The data action block will run on all pages of the document, provided that the condition evaluates to true. If there are multiple instances of a label, then the highest confidence instance is used in the conditional block
- Instance Level - The data action block will run on only those boxes/instances on the document that the condition evaluates to true on
- Can I add OR and AND conditions together?
- Coming soon!
- Can I add a label based on a condition?
- Yes! You can use the Add/Replace value block to do this
- How does the Replace value block work?
- The replace block can be used to replace the text within an already existing label, if the label doesn't exist on the document, it will add that label
- Can I delete all tables in a page or document?
- Yes, if you choose all the columns as well as Unlabelled Headers in the delete block, the tables on a page will get deleted