Inspiration
Our team was deeply inspired by the universally frustrating experience of obtaining a home loan. We recognized that despite being one of life's most significant financial milestones, the process remains burdened by manual, sequential, and opaque workflows. We saw a clear opportunity to leverage cutting-edge AI to transform this archaic system. Our goal was to eliminate the weeks-long wait times, reduce operational overhead for financial institutions, and provide unprecedented transparency and efficiency to applicants. This vision fueled the creation of Orchestrated Mortgage Intelligence, an autonomous AI platform designed to revolutionize lending.
What it does
Orchestrated Mortgage Intelligence is a sophisticated, AI-driven platform that automates the entire home loan application lifecycle, from initial inquiry to final decision. It functions as a digital chief loan officer, capable of:
Multi-Agent Workflow Orchestration: Leverages Amazon Bedrock AgentCore with a sophisticated multi-agent architecture featuring specialized agents for validation, credit risk assessment, external services coordination, property valuation, LMI assessment, and final decisioning.
Real-time Streaming Intelligence: Provides live visibility into each agent's reasoning process through structured JSON streaming, allowing users to watch the decision-making unfold in real-time across all specialized agents.
LIXI2 Standards Compliance: Processes mortgage applications in Mock industry-standard LIXI2 CAL (Credit Application Lending) format and generates compliant CDA (Credit Decision Advice) documents, ensuring seamless integration with Australian banking systems.
Intelligent External Service Integration: Coordinates property valuations and conditional LMI (Lenders Mortgage Insurance) assessments through AgentCore Gateway, with smart decision-making about when each service is required.
Advanced Financial Calculations: Employs Amazon Nova Pro models to perform complex Australian lending calculations including LVR (Loan-to-Value Ratio), DTI (Debt-to-Income), and serviceability assessments with full regulatory compliance.
Memory-Enabled Conversations: Utilizes AgentCore Memory (STM) to maintain conversation context and assessment history, enabling natural multi-turn interactions and audit trails.
Modern Frontend Experience: Features a Next.js application deployed on AWS Amplify with real-time streaming visualization, thinking containers, and a ChatGPT-like interface for seamless user interaction.
Essentially, it turns a weeks-long manual process into a minutes-long automated, transparent, and efficient one with full regulatory compliance.
How we built it
Our project was built by architecting a robust, cloud-native solution on AWS, emphasizing managed services and modular multi-agent design:
Multi-Agent Architecture: We implemented a sophisticated Agents as Tools pattern using Strands Agents Framework with Amazon Bedrock AgentCore. Our system features seven specialized agents:
- Coordinator Agent: Master orchestrator managing the entire workflow
- Validation Agent: LIXI2 CAL schema validation and business rules checking
- Credit Risk Agent: LVR, DTI, and serviceability calculations
- External Services Agent: Intelligent coordination of valuation and LMI services
- Valuer Agent: Automated property valuation
- LMI Agent: Conditional Lenders Mortgage Insurance assessment
- Decisioning Agent: Final credit decision with CDA document generation
Advanced AI Models: Amazon Nova Pro via Amazon Bedrock provides the core reasoning capabilities, with streaming support for real-time visibility into agent thinking processes.
AgentCore Runtime & Memory: Amazon Bedrock AgentCore Runtime provides serverless deployment and scaling, while AgentCore Memory (STM) maintains conversation history and assessment context across sessions.
Gateway Integration: AgentCore Gateway with OAuth2/Cognito authentication enables secure access to external tools and services, with automatic retry mechanisms and error handling.
Modern Frontend: A Next.js application deployed on AWS Amplify featuring:
- Real-time streaming visualization with thinking containers
- Structured JSON parsing for multi-agent output
- Professional ChatGPT-like interface with micro-interactions
- Responsive design with advanced CSS animations
Data Storage & Processing: AWS S3 with Lambda-based unified handlers for secure document storage and processing, with LIXI2-compliant data structures.
Streaming Architecture: Custom streaming utilities with automatic retry logic, buffering optimization, and structured JSON event formatting for seamless frontend integration.
Challenges we ran into
Building an autonomous multi-agent system for complex mortgage processing presented several challenges:
Multi-Agent Orchestration: Coordinating seven specialized agents with the Agents as Tools pattern required careful workflow design, ensuring proper data flow between validation → credit risk → external services → decisioning stages.
Streaming Reliability: Implementing robust streaming with chunk loss prevention, automatic retry mechanisms for "Response ended prematurely" errors, and maintaining real-time visibility across multiple agents simultaneously.
LIXI2 Compliance: Ensuring full compliance with a Mock Lending standard similar to LIXI2, implementing complex business rules, and generating industry-standard CDA documents that integrate with core banking systems.
AgentCore Integration: Mastering AgentCore Runtime deployment, Memory integration, Gateway configuration with OAuth2, and managing the sophisticated agent lifecycle within the managed platform.
Frontend Streaming: Creating a sophisticated Next.js interface that could parse structured JSON streams, display multiple agent thinking processes simultaneously, and maintain responsive performance during intensive AI processing.
Accomplishments that we're proud of
We are incredibly proud of several key accomplishments:
Production-Ready Multi-Agent System: Successfully built a fully autonomous, seven-agent mortgage processing system using cutting-edge AgentCore technology, demonstrating true enterprise-grade agentic AI capabilities.
Real-Time Multi-Agent Visibility: Achieved unprecedented transparency by streaming all agent reasoning processes simultaneously, allowing users to watch validation, risk assessment, valuation, and decisioning unfold in real-time.
LIXI2 Industry Compliance: Built a system that processes Mock Australian mortgage standards (LIXI2 CAL/CDA), making it immediately deployable in production banking environments.
Sophisticated Streaming Architecture: Developed a robust streaming system with automatic retry logic, chunk loss prevention, and structured JSON formatting that works seamlessly across local development and cloud deployment.
Modern User Experience: Created a professional-grade Next.js frontend with ChatGPT-like interface, thinking containers, and real-time streaming that rivals commercial AI applications.
AgentCore Platform Mastery: Successfully leveraged the full AgentCore ecosystem including Runtime, Memory, Gateway, and advanced deployment patterns for a complex financial use case.
What we learned
Through this project, we gained invaluable insights:
Multi-Agent Architecture Patterns: We mastered the Agents as Tools pattern and learned how to design sophisticated workflows where specialized agents collaborate autonomously while maintaining clear separation of concerns.
AgentCore Platform Capabilities: We discovered the power of managed agentic AI platforms, learning how AgentCore Runtime, Memory, and Gateway can accelerate development while providing enterprise-grade scalability and security.
Streaming AI Applications: We learned the intricacies of building real-time streaming AI applications, including buffering strategies, error recovery, and creating responsive user experiences during long-running AI processes.
Financial AI Compliance: We gained deep understanding of implementing AI systems that meet regulatory requirements, handle sensitive financial data, and integrate with existing banking infrastructure.
Production AI Deployment: We learned the challenges and solutions for deploying complex AI systems to production, including session management, memory persistence, and handling concurrent users.
What's next for Orchestrated Mortgage Intelligence
The future of Orchestrated Mortgage Intelligence is vast and exciting:
Enhanced Multi-Agent Capabilities: Expanding to Agent-to-Agent (A2A) communication patterns for more sophisticated collaboration, and implementing specialized Lambda deployments for different agent types.
Advanced Memory Strategies: Upgrading from STM to Long-Term Memory with semantic and preference strategies for cross-session learning and personalized experiences.
Production Banking Integration: Connecting with real banking core systems, credit bureaus, and property databases through AgentCore Gateway for fully automated, live processing.
Multi-Regional Deployment: Leveraging AgentCore's multi-region capabilities for global mortgage processing with localized compliance and regulations.
Enhanced Observability: Implementing comprehensive AgentCore Observability for monitoring, tracing, and optimizing agent performance in production environments.
Browser-Based Document Processing: Integrating AgentCore Browser for automated web-based document retrieval and processing, further streamlining the application process.
Advanced Fraud Detection: Incorporating sophisticated AI models for anomaly detection and fraud prevention within the multi-agent workflow.
Human-in-the-Loop Integration: Developing seamless handoff mechanisms for complex cases requiring human loan officer review, with full context preservation through AgentCore Memory.
Log in or sign up for Devpost to join the conversation.