How LendingTree built a multi-agent mortgage assistant on Amazon Bedrock
LendingTree built a multi-agent mortgage assistant on Amazon Bedrock to guide borrowers through complex home-buying decisions with tailored, compliant, and accurate responses The architecture uses three independent agents (one supervisor, two specialized workers) coordinated via LangGraph and the Model Context Protocol (MCP), running on Amazon ECS with AWS Fargate Amazon Bedrock Guardrails provide concurrent content filtering, PII redaction, and prompt threat detection, while a separate LLM-base
Analysis
TL;DR
- LendingTree built a multi-agent mortgage assistant on Amazon Bedrock to guide borrowers through complex home-buying decisions with tailored, compliant, and accurate responses
- The architecture uses three independent agents (one supervisor, two specialized workers) coordinated via LangGraph and the Model Context Protocol (MCP), running on Amazon ECS with AWS Fargate
- Amazon Bedrock Guardrails provide concurrent content filtering, PII redaction, and prompt threat detection, while a separate LLM-based safety classifier enforces conversational policy without adding latency
- The supervisor uses a multi-model approach, dynamically selecting between Amazon Nova Pro (complex reasoning) and Amazon Nova Lite (lightweight tasks) to balance cost and reliability
- The Education worker leverages Amazon Bedrock Knowledge Bases with OpenSearch Service for grounded RAG responses, while the Matching worker integrates with LendingTree's internal APIs to deliver personalized lending options
Why It Matters
This case study demonstrates how regulated industries can deploy production-grade multi-agent AI systems that meet strict compliance, security, and accuracy requirements without sacrificing user experience. It provides a practical blueprint for organizations looking to move beyond simple chatbots into sophisticated, task-oriented agent architectures that combine reasoning, retrieval, and tool use while maintaining auditability and traceability.
Technical Details
- Multi-agent orchestration: The system uses a supervisor-worker pattern built on LangGraph as a state machine with a plan-and-execute paradigm. The supervisor analyzes intent, creates execution plans, and routes tasks to specialized workers via MCP with connection pooling for low-latency inter-agent communication.
- Multi-model architecture: The supervisor dynamically selects between Amazon Nova Pro (complex reasoning, critical classification) and Amazon Nova Lite (conversational responses, lightweight classification), optimizing for both performance and cost efficiency.
- Safety and compliance layer: Two parallel safety checks run concurrently—Amazon Bedrock Guardrails for content filtering (hate, profanity), PII redaction, and prompt threat detection, plus an LLM-based safety classifier enforcing conversational policy—ensuring zero added latency while meeting mortgage industry regulatory requirements.
- RAG-powered education agent: The Education worker maintains specialized Amazon Bedrock Knowledge Bases backed by Amazon OpenSearch Service as the vector store, grounding every response in authoritative documents rather than relying solely on model knowledge.
- Infrastructure and deployment: All agents run as containerized services on Amazon ECS with AWS Fargate. The consumer-facing React interface serves web and mobile browsers through a public endpoint. The system was deployed on ECS rather than Amazon Bedrock AgentCore because it was already in production when AgentCore reached general availability.
- Business logic integration: A business-logic layer handles operational rules including routing complex issues to human support and redirecting off-topic conversations, while the Matching worker calls LendingTree's internal offer, eligibility, and rate APIs to deliver personalized lending options.
Industry Insight
- Multi-agent architectures are becoming the standard for complex enterprise AI: Simple single-agent chatbots are insufficient for domains requiring specialized reasoning, tool use, and compliance. The supervisor-worker pattern with explicit graph-based orchestration provides the traceability and auditability that regulated industries demand.
- Multi-model strategies are essential for cost-performance optimization: Automatically routing tasks to appropriately sized models (Pro vs. Lite) based on complexity allows organizations to maintain high-quality outputs while controlling inference costs at scale—a pattern that will become increasingly important as AI usage grows.
- Concurrent safety layers without latency penalty are achievable: Running guardrails and LLM-based policy enforcement in parallel demonstrates that compliance and security can be baked into production AI systems without degrading user experience, which is critical for industries like finance, healthcare, and insurance where both speed and safety are non-negotiable.
Disclaimer: The above content is generated by AI and is for reference only.