added
Validation Rule Creation
May 18th, 2025
Affinda now empowers users to define and customize validation rules using simple natural language prompts. Just describe the logic you'd like to apply to your document fields, and Affinda will automatically generate the corresponding rules for you.
This powerful capability gives teams the flexibility to tailor validation workflows to match internal processes, ensuring that data is complete, accurate, and meets internal requirements before it moves downstream.
Steps to Create a Validation Rule
- Go to Field Configuration
In the document validation interface, click “Configure Fields” in the top right corner - Add a New Validation Rule
Select edit on the field you want to apply logic to, and then select “Add Validation” - Describe the Rule in Natural Language
- The selected field will be pre-filled in the prompt
- To reference other fields, type @ and choose from the list
- Clearly describe the condition or constraint. Add detail for more complex logic.
- Click “Generate”
Affinda will produce the corresponding rule logic based on your description.
After generation, you can review the underlying code, tweak the prompt, and re-generate the rule as needed to refine the behaviour.
For more information, see Validation Rules.