How MortgageTech® built a real-time AI advisor directly into the mortgage loan origination workflow — and why it matters for lenders.
SmartAdvisor™ is an AI-powered sidebar embedded in the MortgageTech® URLA Workbook — a custom tool for ICE Mortgage Technology's Encompass Web platform. It analyzes loan data in real time, surfaces actionable insights, tracks workflow progress, monitors conditions and documents, and provides conversational AI assistance — all within the originator's existing workflow.
This whitepaper describes the technical architecture, AI integration approach, and business value of SmartAdvisor™ for mortgage lenders seeking to reduce cycle times, improve data quality, and enhance compliance.
Modern mortgage origination involves hundreds of data fields, dozens of conditions, complex regulatory timelines, and multiple stakeholders. Yet most LOS platforms present this information in scattered screens with no contextual intelligence.
The result: Loan officers catch DTI problems after submission. Processors miss expired disclosures. Underwriters re-request documents that were already in the eFolder. These inefficiencies add an average of 7-12 days to origination cycles and contribute to fallout rates of 20-30% industry-wide.
SmartAdvisor™ brings real-time intelligence directly into the originator's workflow. Instead of switching between screens to check ratios, review conditions, or verify documents, everything appears in a single sidebar that updates as loan data changes.
SmartAdvisor™ is built as a pure client-side JavaScript module (~5,200 lines) that loads inside the URLA Workbook. It has zero npm dependencies and runs in any modern browser.
Every input field in the workbook carries an emid attribute that maps to an Encompass field ID. The SSF Guest API framework provides bidirectional binding — changes in the workbook push to the loan file, and changes from other Encompass screens reflect in the workbook immediately.
SmartAdvisor™ calls the /api/ai-insight endpoint, which is an Azure Function running within Azure Static Web Apps. This server-side proxy holds the API key and forwards requests to Azure OpenAI's chat completions API.
The system prompt instructs the AI to return structured JSON with categorized insight objects. Each insight contains a title, detail, severity (risk/compliance/info), category, and array of relevant fieldIds.
The Workflow Engine (workflow-engine.js, 3,267 lines) is a client-side calculation and simulation core. It provides:
SmartAdvisor™ is unique in combining AI intelligence with deep LOS integration — directly inside the loan form, not as a separate application.
| Capability | SmartAdvisor™ | Encompass Native | Third-Party POS |
|---|---|---|---|
| AI-powered insights | ✓ Azure OpenAI | ✗ | ~ Some |
| Real-time SSF binding | ✓ Bidirectional | ✓ Native | ✗ Import/Export |
| Client-side AUS sim | ✓ DU/LP/Total | ✗ Server-side only | ✗ |
| Conditions tracking | ✓ + eFolder match | ~ Basic list | ✗ |
| Role-based workflows | ✓ 6 roles | ~ Personas | ✗ |
| TRID date engine | ✓ Auto-calc | ~ Manual | ✗ |
| Field navigation | ✓ Click-to-field | ✗ Manual search | ✗ |
| Dark mode | ✓ Full | ✗ | ~ Some |
| Zero dependencies | ✓ Vanilla JS | ✓ .NET native | ✗ React/Vue |
| Deployment | ✓ Azure SWA | ✓ ICE hosted | ~ Varies |
SmartAdvisor™ is deployed as static files to Azure Static Web Apps with a single Azure Function for the AI proxy. Total infrastructure cost is minimal — SWA Free Tier covers up to 100GB bandwidth/month.
git push → Azure DevOps → CI/CD Build → Azure SWA Deploy → CDN Edge (global)
| Timeline | Feature | Impact |
|---|---|---|
| Q1 2026 | Rate lock advisor — AI-powered rate lock timing recommendations based on market data | Reduce lock extension costs |
| Q1 2026 | Gemini server-side proxy — Move Gemini key server-side for parity with Azure | Eliminate all client-side keys |
| Q2 2026 | Multi-borrower intelligence — Separate AI analysis per borrower/co-borrower | Better risk stratification |
| Q2 2026 | Automated condition clearing — AI verifies documents against condition requirements | Reduce processor workload 40% |
| Q3 2026 | Predictive close dating — ML model trained on historical milestone data | Accurate close date forecasting |
| Q3 2026 | Compliance rule engine — TRID/RESPA/ECOA rule automation with auto-alerts | Reduce compliance risk |