Documentation Index
Fetch the complete documentation index at: https://docs.gorules.io/llms.txt
Use this file to discover all available pages before exploring further.
This guide shows how to build eligibility rules that evaluate applicants against multiple criteria and route them through approval workflows.
What you’ll build
An eligibility decision that:
- Evaluates applicants against qualification criteria
- Handles multiple approval paths (auto-approve, manual review, deny)
- Provides clear reasons for decisions
- Supports tiered approval thresholds
Decision flow
Example: Loan pre-qualification
{
"applicant": {
"age": 32,
"income": 75000,
"employmentYears": 4,
"creditScore": 720
},
"loan": {
"amount": 25000,
"purpose": "home_improvement"
}
}
Step 1: Basic eligibility checks
First, check hard requirements that must be met:
Step 2: Credit assessment
Evaluate credit score bands:
Step 3: Calculate loan capacity
Use an expression to determine maximum loan amount:
Step 4: Determine approval path
Route to different outcomes based on risk:
Output structure
{
"decision": "approved",
"nextStep": "verification",
"approvedAmount": 25000,
"creditTier": "good",
"reasons": ["Meets basic requirements", "Good credit standing"]
}
Example: Benefits eligibility
Household income check
Example: Access control
Feature access by subscription
Best practices
Fail fast — Put disqualifying checks first to exit early.
Provide reasons — Always output why a decision was made.
Handle edge cases — Include catch-all rows for unexpected inputs.
Version your rules — Track changes when eligibility criteria update.