Contact us

An AI-powered Contract Management Tool

Custom web development that helped a Swedish enterprise reduce contract review time for its legal and compliance teams by up to 50%

ABOUT
the project

Client:

Automotive Company

Company Size:

10k+ Employees

Industry:

Automotive

Services:

Technologies:

Azure Cloud

Azure Open AI

.NET Core

Bootstrap

Angular

Cosmos BD

Azure AI Document Intelligence

An AI-powered contract management tool designed to streamline the contract review process and facilitate seamless cross-department collaboration. By using artificial intelligence, the platform compares new contracts with existing ones stored in the company’s database, automatically identifying and explaining any deviations from standard templates or clauses.

The tool highlights added or adjusted sections, helping legal, compliance, and operational teams quickly understand the contractual differences and assess their impact. This significantly reduces manual review time, enhances transparency, and ensures that all stakeholders remain aligned throughout the contract lifecycle.

This project required close coordination across legal, technical, and operational domains. Our team worked hand-in-hand with the customer to translate complex their contract workflows into intuitive user journeys and ensure that every feature meets real-life use cases.

Andrii Kuzmin

Project Manager at Leobit

landscape image of a tool usage

Customer

Our customer is a Swedish automotive company that supports a wide range of internal teams and stakeholders, including legal, procurement, and operations, all of whom rely on clear, compliant, and efficient contract workflows.

Business Challenge

The client had an existing system for managing project documentation, but it lacked the structure and automation needed to support their growing operational complexity. Each Key Account Team managed its own documents independently, which often led to inconsistencies and inefficiencies across the organization. While certain legal documents and standards applied universally, there was no centralized mechanism to enforce access restrictions or maintain version control.

Additionally, our customer handled document collaboration and change notifications through a separate, unintegrated solution, which limited transparency and slowed down communication between departments. The client needed a more robust approach to documentation workflows, including the ability to upload new documents, assign specific sections to relevant departments or individuals, and notify them accordingly. The goal was to ensure traceability, improve compliance, and streamline cross-team collaboration while maintaining clear contractual accountability.

Why Leobit

Leobit’s team could provide strong architectural guidance, ensure the secure handling of sensitive data, and offer end-to-end development support. Our experience in developing AI-powered solutions, combined with our deep expertise in legaltech and document management platforms, also played a significant role. The customer appreciated Leobit’s proactive approach during pre-sale and our attention to detail.

Project
in detail

MHD-1365 Project in detail

Leobit implemented a document comparison engine based on NLP techniques and vector-based similarity scoring. The system performs a side-by-side analysis of uploaded documents against baseline contracts stored in the platform. It highlights clause-level differences, quantifies deviation using a similarity percentage metric, and identifies missing or altered sections. <br><br>Technically, Leobit used a hybrid pipeline that combines Azure AI Document Intelligence for document parsing, PostgreSQL vector storage for semantic clause comparison, and custom logic to align contract sections based on meaning and structure. The engine supports Word (.docx) and PDF files using OpenXML SDK and PDF.js.

Our team utilized GPT-powered services, leveraging Azure OpenAI, which enables the contextual understanding of paragraphs and generates human-readable explanations of changes. The AI engine performs dual-language analysis (English and Swedish) and highlights potential legal risks or missing clauses based on historical contract standards.

Prompt templates were tailored per user persona (e.g., legal, compliance, operations) to ensure relevant and actionable AI outputs.

We developed a React-based front end with inline annotations and change markers to create a modular collaboration layer that enables users to comment on specific sections of a contract, assign tasks, and tag team members.

Comments and tasks are stored via a normalized relational schema in a PostgreSQL back end. We used Entra ID to manage user roles, with access policies enforced at both document and section levels. Edits made by contributors are tracked and color-coded, using a diffing algorithm backed by QuillJS for rich-text support.

To facilitate real-time content updates without compromising version control, Leobit integrated an embedded document editor using Microsoft Office Web Add-ins.

Editing is restricted to specific roles through a permission middleware layer, and any changes are auto-logged and versioned. Teams can only access documents assigned to them, with isolation enforced through tenant-aware access layers and document tagging logic.

Every document change is captured and versioned using a Git-style diff engine based on the CRDT (Conflict-free Replicated Data Types) architectural pattern, implemented through a custom solution using Delta-based synchronization logic.

Each version includes metadata such as author ID, timestamp, and change summary. Leobit also implemented a blockchain-like audit trail for key contract decisions using hash-linked change logs. This provides an immutable, searchable history of who agreed to which clause, when, and under what context.

By automating repetitive tasks, embedding intelligent document review features, and improving cross-functional visibility, we helped the team to significantly reduce the time spent on manual reviews and back-and-forth communication. Leobit’s solution centralizes all contract-related activities in one secure, collaborative space, which helped drive better decision-making and lower operational overhead.

Seamless integration with the Microsoft Ecosystem

Seamless integration with the Microsoft Ecosystem

Leobit ensured deep integration with Microsoft 365, including SharePoint for storage, Teams for notifications, and Entra ID for authentication. The system uses the Graph API for user sync and access control, while Power Automate connectors enable custom workflow extensions by internal IT teams.

We built the platform with a modular microservices architecture using .NET Core, containerized with Docker, and deployed on Azure Kubernetes Service (AKS) for scalability and fault tolerance.

Intelligent notification system development

Intelligent notification system development

We used Azure Logic Apps and Microsoft Graph API to develop an automated notification engine. Our experts configured workflows to push contextual alerts to Microsoft Teams when specific triggers are met (e.g., document upload, clause update, or pending review).

Daily digest emails are sent via Microsoft Outlook API to relevant departments, while dependencies between document sections and teams are resolved dynamically using a rule-based event engine coded in .NET. This ensures timely responses and keeps workflows moving without human follow-up.

Secure and scalable document management

Secure and scalable document management

We used Azure Blob Storage with private access keys and encrypted file storage (AES-256) to manage document uploads and maintain document history. Each document is indexed in a PostgreSQL-based metadata layer for rapid retrieval and comparison.

Security is enforced at every layer, with Single Sign-On (SSO) and role-based access managed via Microsoft Entra ID. The solution complies with ISO/IEC 27001 standards for data protection and includes audit logging for sensitive operations.

Historic contracts can be bulk-uploaded via a dedicated API endpoint or admin dashboard. This allows teams to establish a baseline dataset for future comparisons.

Technology Solution

  • Integrated Azure OpenAI (GPT) for legal clause analysis and context-aware assistance.
  • Developed Git-like versioning system with CRDT-based change management.
  • Used Azure AI Document Intelligence and OpenXML SDK for Word/PDF parsing.
  • Developed rich-text commenting and in-line editing features using React + QuillJS.
  • Performed Microsoft Teams and Outlook integration using Microsoft Graph API.
  • Ensured data encryption at rest and in transit (AES-256, TLS).

Value Delivered

  • Automated comparison and AI-assisted analysis reduced the time spent on contract review by legal and compliance teams by up to 50%.
  • The platform helped minimize human oversight and reduced the likelihood of compliance gaps or unfavorable terms by detecting deviations from golden contracts and highlighting potential legal risks.
  • Deep integration with Microsoft 365 tools (SharePoint, Teams, Entra ID) allowed for a better adoption across legal, sales, and operational departments.
  • All contracts, revisions, and supporting documentation are now stored in a centralized system with built-in version control.