Inspiration

Everyone signs contracts. Even making an account on Google is you agreeing to a contract. Haven't you ever wondered what all those Terms and Conditions mean? It's pretty hard to understand what you're agreeing to when legal documents are often written in legal jargon. Whether it's signing an apartment lease, employment agreement, subscription contract, or terms of service, many people agree to legally binding documents without fully understanding their rights or obligations. We wanted to build a tool that makes legal information more accessible by using AI to explain contracts in plain English while helping users identify important clauses before signing.

What It Does

ClauseClear AI allows users to upload or paste the text of a legal document. The AI analyzes the document and generates a plain-english summary. In specified cards and panels, the key obligations for each party, important dates and deadlines, financial obligations and fees, and potentially risky clauses are defined. Explanations of legal terminology included in the text or document are also listed. Questions users should ask before signing are included at the end in a checklist format. Users can also ask follow-up questions through an AI chat interface that uses the uploaded document as context.

How We Built It

We built ClauseClear AI entirely in Google AI Studio using Gemini. Through prompt engineering, we created an application that accepts legal documents, analyzes them in real time, and generates plain-English summaries, identifies key obligations and potential risks, explains legal terms, and answers follow-up questions through an integrated AI chat. The interface was designed to make complex legal information easy to understand for everyday users.

Challenges We Ran Into

One of the challenges we ran into was ensuring that AI responses were useful without appearing to provide legal advice. We redesigned the prompts several times to keep explanations factual and neutral. Another challenge was extracting information consistently from contracts with very different structures and writing styles. Returning structured outputs instead of free-form text greatly improved the user experience. The biggest challenge was creating the video demo. Unfortunately, the Youtube version is not as clear as we'd like it to be, so this link will provide a better quality video: link

What We Learned

We learned how prompt engineering can dramatically improve AI reliability, how structured AI outputs simplify frontend development, and how important responsible AI practices are when building applications involving legal information. Most importantly, we learned that AI can be used to make complex legal language far more understandable while still encouraging users to seek professional legal advice when appropriate.

What's Next For ClauseClear AI

Next, we'll try to include a feature for inputs and outputs in multiple languages. We will also attempt to train the model more on different types of legal contracts.

Built With

  • googleaistudio
Share this project:

Updates