Skip to main content

Guidance for Intelligent Document Processing Agents on AWS

Overview

This Guidance demonstrates how your financial institution can transform its loan application processes through secure, AI-powered automation. By using Amazon Bedrock, you can create intelligent workflows that streamline document processing, reduce manual intervention, and enhance both operational efficiency and the customer experience. These advanced AI capabilities enable you to automatically extract, verify, and process loan documentation while maintaining security and compliance. By demonstrating the seamless integration of customer-facing interfaces with powerful backend processing, this Guidance enables you to accelerate loan processing times, reduce errors, and provide a more transparent experience for both applicants and brokers.

How it works

These technical details feature an architecture diagram to illustrate how to effectively use this solution. The architecture diagram shows the key components and their interactions, providing an overview of the architecture's structure and functionality step-by-step.

Deploy with confidence

Ready to deploy? Review the sample code on GitHub for detailed deployment instructions to deploy as-is or customize to fit your needs. 

Go to sample code

Well-Architected Pillars

The architecture diagram above is an example of a Solution created with Well-Architected best practices in mind. To be fully Well-Architected, you should follow as many Well-Architected best practices as possible.

CloudWatch monitors the document processing pipeline and agent interactions and provides detailed insights into the loan application journey, like document processing times and approval rates. DynamoDB tracks application states. AWS Cloud Development Kit (AWS CDK) manages infrastructure deployment with defined testing environments, maintaining consistent infrastructure deployments across environments. Finally, EventBridge reliably orchestrates the workflow between document processing stages, invoking functions and agents as needed. Together, these services provide real-time visibility, enabling you to quickly detect and respond to bottlenecks or agent failures and helping you maintain consistent service quality.

Read the Operational Excellence whitepaper 

Amazon Cognito manages user authentication for loan applicants, while AWS WAF protects the application from web-based attacks. CloudFront provides encrypted content delivery, and AWS Identity and Access Management (IAM) enforces fine-grained, least-privilege access controls for document processing workflows, including services and agents. AWS AppSync implements API authentication so only authorized users can access loan application data from the front-end application and interact with the document processing pipeline. Finally, Amazon S3 bucket policies and server-side encryption secure sensitive loan documents at rest.

Read the Security whitepaper 
EventBridge orchestrates document processing workflows by managing state transitions between document upload, verification, and approval stages. CloudFront ensures consistent delivery of application content across multiple Availability Zones even during regional issues. DynamoDB provides durable storage and maintains consistent application state tracking. Amazon S3 versioning and Lambda functions offer built-in retry mechanisms to make sure loan documents are processed reliably even during service disruptions. Finally, Amazon Bedrock Agents use action groups to provide consistent document analysis and decision-making capabilities throughout the loan processing and approval pipeline.
Read the Reliability whitepaper 

With global edge locations, CloudFront delivers UI content with low latency. AWS AppSync provides efficient real-time data synchronization that enables instant updates of loan application status. EventBridge orchestrates document processing workflows with minimal overhead, and its combination with Lambda facilitates parallel processing of documents. Amazon Bedrock uses optimized AI models that process multiple documents simultaneously through dedicated agents for applicant and broker workflows. Finally, DynamoDB provides single-digit millisecond access to application data, and its automatic scaling handles varying application loads efficiently.

Read the Performance Efficiency whitepaper 

Lambda provides pay-per-use compute for document processing, removing idle server costs. CloudFront caches UI content to reduce repeated data transfer costs. DynamoDB automatic scales to match capacity with demand, so you pay only for actual database operations during loan processing. Amazon Bedrock Agents use action groups to optimize AI model invocations and minimize their costs. Finally, Amazon S3 lifecycle policies manage document storage across processing stages, automatically transitioning older loan documents to lower-cost storage tiers.

Read the Cost Optimization whitepaper 

Lambda provides serverless compute, automatically scaling based on demand and eliminating idle resource use, and efficient Amazon Bedrock AI models further minimize computational overhead. The event-driven architecture of EventBridge means that processing occurs only when needed, avoiding continuous polling. The combination of serverless computing, event-driven processing, and optimized AI operations reduces energy use in compute. Additionally, CloudFront caching reduces data transfer distances and redundant data processing. Finally, DynamoDB automatic scaling and Amazon S3 Intelligent-Tiering minimize storage infrastructure needs, reducing the carbon footprint of maintaining loan documents throughout their lifecycle.

Read the Sustainability whitepaper 

Disclaimer

The sample code; software libraries; command line tools; proofs of concept; templates; or other related technology (including any of the foregoing that are provided by our personnel) is provided to you as AWS Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You should not use this AWS Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances or using Amazon S3 storage.