Skip to content

indraantoor/Contract-AI-Frontend

Repository files navigation


Contract Analysis AI

project.demo.mp4

It quickly identifies risks, enhances compliance, and offers insights for faster negotiation using AI.
Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contact

About The Project

Managing contracts can be a time consuming and costly process, but this AI powered platform is here to change that. Designed to simplify and streamline contract analysis, it quickly identifies potential risks, ensures compliance with regulations, and provides actionable insights to accelerate negotiations.

With automation at its core, this platform eliminates the need for tedious manual reviews, drastically reducing legal expenses while improving accuracy. Whether you’re negotiating deals or managing ongoing agreements, this tool empowers businesses to take control of their contracts with speed, efficiency, and confidence.

By transforming the way contracts are analyzed and reviewed, this project helps you focus on what truly matters closing deals and driving growth.

(back to top)

Built With

  • Next js
  • React js
  • Node js
  • Express js
  • Redis (Upstash)
  • Zustand
  • Tanstack React Query
  • Tanstack Table
  • Tailwind CSS
  • ShadCn
  • Stripe
  • Google Gemini AI
  • Passport js
  • OAuth,
  • MongoDB
  • Resend
  • Morgan
  • Multer
  • Recharts

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • Node

  • npm

    npm install npm@latest -g

Installation

  1. Get a Google Gemini AI API Key at https://aistudio.google.com/app/apikey

  2. Clone the repos

    git clone https://github.com/indraantoor/Contract-AI-Frontend
    git clone https://github.com/indraantoor/Contract-AI-Backend
  3. Install NPM packages In All Of These Cloned Directories

    npm install
  4. In frontend directory create a ".env" file and paste your values for these variables

    NEXT_PUBLIC_API_URL=<YOUR_FRONTEND_URL>
    NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=<YOUR_STRIPE_PUBLISHABLE_KEY>
    
  5. In the backend directory create a ".env" file and paste your values for these variables

    MONGODB_URI=<YOUR_MONGODB_URI>
    GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID>
    GOOGLE_CLIENT_SECRET=<YOUR_GOOGLE_CLIENT_SECRET>
    CLIENT_URL=<YOUR_FRONTEND_URL>
    SESSION_SECRET=<YOUR_DEFINED_SESSION_SECRET>
    UPSTASH_REDIS_REST_URL=<YOUR_UPSTASH_REDIS_REST_URL>
    UPSTASH_REDIS_REST_TOKEN=<YOUR_UPSTASH_REDIS_TOKEN>
    GEMINI_API_KEY=<YOUR_GEMINI_API_KEY>
    RESEND_API_KEY=<YOUR_RESEND_API_KEY>
    STRIPE_SECRET_KEY=<YOUR_STRIPE_SECRET_KEY>
    
  6. Run the application

    Navigate To The Backend Directory
    npm run dev
    Navigate To The Frontend Directory
    npm run dev (to run app in development mode)
    npm start (to run app in production mode)

(back to top)

Usage

Login or sign up to access the application.

sign up

Once on your dashboard page click on "New Contract" button.

new contract

Drag and drop your contract file and make sure it is in "pdf" format and click on "Analyze Contract With AI" button. It will then detect the type of the contract and to finally completely analyze it, confirm and click on "Yes, I want to analyze it" button.

Wait for the AI analysis to get completed.

analyse loading

To view the results click on "View Results" button

view results

In the "FREE VERSION" you will see limited results and in "Premium" you will see full results. To See all details you can upgrade to premium.

Screenshot 2024-11-19 at 3 25 39 PM Screenshot 2024-11-19 at 3 26 11 PM Screenshot 2024-11-19 at 3 27 20 PM

(back to top)

Contact

Project Link: https://github.com/indraantoor/Contract-AI-Frontend

(back to top)

About

It quickly identifies risks, enhances compliance, and offers insights for faster negotiation using AI.

Topics

Resources

Stars

Watchers

Forks

Contributors