Back to videos
Use Cases

How to Automate Credit Scoring and Loan Approval with DecisionRules

This DecisionRules demonstration combines credit scoring, eligibility rules and risk-based pricing in one Decision Flow called through an API.

A loan application arrives through the API and three answers come back in an instant: a credit score, a decision based on your internal policies and an interest rate. Each answer comes from a rule that your risk team can open and modify in DecisionRules without touching code.

In this video, Gerardo builds that chain with three app templates: Client Scorecard, Eligibility and Policy Rules, and Risk-Based Pricing. A single Decision Flow connects them, and your loan origination system calls it with one REST API request.

Chapters

  • 0:00 One application, three answers
  • 0:31 One Decision Flow
  • 0:50 Scorecard
  • 1:11 One node and table per characteristic
  • 1:26 Add a characteristic
  • 1:41 From score to risk
  • 1:52 Policy rules
  • 2:12 Policy tables
  • 2:30 Rejection or manual approval
  • 2:46 Priorities and ruleSet
  • 3:11 Pricing
  • 3:28 Champion/Challenger
  • 3:47 New version
  • 4:07 Compare, test and publish
  • 4:30 Complete result
  • 4:41 Audit
  • 4:57 Statistics
  • 5:07 Templates and demo

Scorecard: each characteristic (monthly salary, length of employment and education level) is a node with its own scoring table. Points are added together and converted into a risk color and category.

Policy rules: each rule is a small table with the same output. A configuration table defines which rules belong to each set and whether a failure rejects the case or sends it for manual approval; a priority table resolves conflicts.

Pricing: a matrix combines risk level, term and amount and returns a pricing category and interest rate, with a Champion/Challenger group. The credit committee changes a rate in a new version, compares it with the current one, tests it in the Test Bench and publishes it: the next request receives the new rate.

Audit: each decision is stored in the Audit Log, and the statistics module turns it into charts.

Frequently asked questions

What does the credit scoring flow return?

It returns the decision, such as conditional approval, the score and assigned interest rate, along with messages and the result of each policy rule.

How can I change a rate without affecting production?

Create a new version of the matrix. New versions start in pending status and are not executed by the API Solver, so production keeps the current rate until you publish.

How do I test a rule before using it?

Enter the data in the Test Bench, run the rule and inspect the result. With debug mode enabled, the table highlights the rows that matched.