Users only need a browser: upload PDF → get report. The backend handles all heavy-lifting — AI, storage, and processing.
— Platform Design PrincipleEach Lambda is stateless and independent — no persistent local state between executions. This ensures scalability, cost-efficiency, and alignment with serverless best practices.
— Architectural Principle| Layer | Technology / Service |
|---|---|
| Frontend | HTML / CSS / JavaScript — static site hosted on CloudFront |
| Authentication | Custom Credential API integrated with login flow |
| API / Backend Compute | AWS Lambda (Python) · Containerised Lambda for AI review (ECR) |
| Storage | AWS S3 — contracts, reports, and logs (private bucket) |
| API Gateway | AWS API Gateway (REST) — frontend ↔ Lambda endpoints with CORS |
| AI / ML Backend | Python Agentic AI — transformers / sentence-transformers / custom logic |
| Logging / Monitoring | AWS CloudWatch Logs + optional custom log store in S3 |
| Future Analytics | AWS Athena + QuickSight · or custom backend dashboard |
POST /agent/uploadPOST /agent/runreviewPrivate S3 Bucket — No public listing or reading of contracts or reports. All access is IAM-controlled.
Minimal IAM Permissions — Lambda roles granted only s3:GetObject, s3:PutObject, s3:ListBucket, and CloudWatch logs.
Authenticated API Access — Only credentialled users can call upload & review APIs via the login/credential integration.
CORS Restriction — API Gateway CORS settings restrict origins to ai.viswanext.com/agent.html only.
Audit Trail Logging — Every upload and review is logged: who, what file, when, what action — for compliance history.