The Client:

With more than 100 years of innovation and a global workforce, the client provides energy technology to industrial and public-sector customers across multiple regions.

Business Context:

In highly regulated industries, every commercial contract carries legal, financial, and operational risk. Large-scale commercial projects involve a diverse range of public- and private-sector organizations, requiring each agreement to be reviewed against internal risk policies, mandatory clauses, and regional legal requirements. The cost of getting this wrong can be significant. According to World Commerce & Contracting, poor contract management erodes value equivalent to nearly 9% of annual revenue on average, and often more than 15% in highly complex industries.

For the client, this critical review process remained largely manual. Legal specialists reviewed every contract line by line, identified risks against an internal risk framework, searched for missing mandatory clauses, drafted counterproposals, and summarized their findings. With more than tens of thousands of contractsannually, the process became increasingly difficult to scale.

As contract volumes continued to grow, the client faced several challenges:

  • High Volume and Complexity: The legal team handled tens of thousands of contracts annually, with documents varying significantly in structure, scope, length, and legal complexity. This made consistent review time-consuming and resource-intensive.
  • Expert Bottleneck: Contract review relied heavily on a limited number of specialists with deep legal and commercial risk expertise. Review backlogs often delayed bid decisions, contract negotiations, and execution timelines.
  • Inconsistent and Error-Prone Review: Manual reviews created the risk of overlooking deviations from the RAM or missing mandatory clauses. Review quality could also vary depending on the experience and workload of individual reviewers.
  • Repeated Work for Contract Revisions: When an RFP or contract document was updated, reviewers often had to repeat much of the assessment process from the beginning, resulting in duplicated effort and longer turnaround times.

To overcome these challenges, the client engaged FPT to design and build an AWS-based Agentic AI solution that could automate contract risk analysis while keeping legal experts firmly in control. The client sought a solution capable of reducing review time from approximately one week to minutes, applying risk and compliance criteria consistently across every contract, integrating seamlessly with existing CRM and document management systems, enforcing role-based data access, and continuously improving through reviewer feedback and human-in-the-loop validation.

FPT's Solution:

FPT designed and delivered an AI Contract Risk Reviewer on AWS, combining agentic AI, intelligent document processing, legal knowledge retrieval, cloud-native engineering, and DevOps. The solution processes contract documents through a coordinated multi-agent workflow that structures content, identifies risks, detects missing clauses, generates summaries, and supports contextual Q&A. A dedicated review mechanism validates citations and confidence levels before results are presented to legal experts for approval within their existing business workflows.

1. Methodology & Approach:

  • Intelligent Contract Processing: Amazon Textract extracts text and tables from PDF, Word and Excel contracts once; content is chunked by legal structure (section, sub-section, paragraph) and indexed for retrieval.
  • AI Legal Reasoning Engines: Risk identification assesses deviations against approved risk criteria; the missing-clause engine proposes relevant language and placement; and the summary engine extracts key contractual information.

  • Chatbot Agent with Tools: An agent selects the appropriate enterprise data and analysis tools for each question, with every interaction limited to the user's authorized data scope.

  • Human-in-the-Loop Validation: Confidence scores flag low-confidence sections for people; reviewers edit, approve and give feedback on every risk, clause, summary and answer before submission.


2. Key Architectural Components:

  • Key Architectural Components: The solution runs on a scalable container platform on AWS, automatically adjusting compute resources based on review workload.
  • Document & Knowledge Layer: Amazon S3 stores contracts and intermediate output; Amazon Aurora PostgreSQL with pgvector holds contracts, results and feedback; Amazon OpenSearch indexes contract chunks for semantic search.
  • Edge & Identity: Amazon Route 53 and an Application Load Balancer are the only internet-facing entry; users sign in through the client's existing SSO, and a JWT is verified on every call.
  • Private Connectivity & Secrets: All workloads and data stores run in private subnets; LLM calls leave only through a NAT gateway, with API keys held in AWS Secrets Manager.
  • Scope-Safe Data Access: Role-based access controls are applied to every request, ensuring that users and AI agents can access only the information authorized for their business responsibilities. Additional guardrails help protect sensitive data and support responsible AI usage.
  • Observability & Recovery: Amazon CloudWatch collects logs and metrics; an audit trail records user activity, AI results and feedback, with automated rollback to the previous model and solution version.


3. Solution Highlights:

  • Read Once, Analyse in Parallel: All documents of an opportunity are read once; risk identification, missing-clause detection and summarisation run as parallel queued jobs
  • One-Click Re-Run: When the RFP changes or is revised, the full analysis is re-run with one click instead of repeating the manual review.
  • Scope-Safe Agent Tools: Scope filters and a post-guardrail make text-to-SQL and vector search safe: answers are built only from data the user is allowed to see.
  • Confidence-Driven Human Review: Unprocessed or low-confidence sections are flagged rather than hidden, and per-output feedback tunes prompts and the knowledge base.

4. Challenges We Overcame:

  • Conflicting documents: the solution respects document hierarchy, so the main contract and annex precedence prevent contradictory findings.
  • Losing clause context: chunking by legal structure keeps each clause with its section, improving retrieval and risk mapping.
  • Safe natural-language queries: data scope is enforced before the agent runs, so generated SQL can not access data outside the user's authorized scope.
  • Fit with enterprise platforms: direct integration with the client's SSO replaced a separate user pool, and EKS with KEDA follows review-job volume instead of fixed servers; an LLM interface layer enables the team change models safely.

Business Values:

With the AI Contract Risk Reviewer, the client transformed contract review from a labor-intensive manual process into an AI-assisted workflow that keeps legal experts in control. Review turnaround dropped from about one week to about 15 minutes per contract, while automated risk identification reached 90% accuracy against a 95% target. very contract is evaluated consistently against approved risk criteria, mandatory clauses, and applicable regional requirements.

Key Performance Improvements:

Metric
 Result Impact
 Review turnaround ~15 minutes Down from ~1 week per contract (> 99% shorter)
 Risk identification accuracy up to 90% Measured in production; target > 95% recall
 Contract capacity 40,000+ / year Scaling design on Amazon EKS with KEDA
 RFP changes one click Re-run the analysis instead of repeating the review
 Customer satisfaction up to 99 Customer satisfaction survey score