Inspiration

Legal documents can be long, complicated, and time-consuming to review. We wanted to explore how AI could help legal professionals with the repetitive first layer of document analysis without replacing human judgment.

That idea led us to build LexAI — an AI-powered legal document assistant that helps users understand documents, identify potential risks, find important information, and generate a structured legal brief.

What We Built

LexAI allows users to upload a legal document or instantly try a fictional demo contract. It analyses the document and extracts key information such as parties, dates, obligations, and important clauses.

It also identifies potential risks and explains why a clause may require attention. Instead of simply giving an AI-generated answer, LexAI connects answers back to the relevant page or clause in the document.

Users can also ask questions about the document through the AI assistant and generate a structured legal brief from the analysis.

How We Built It

We built the project as a modern web application using React, TypeScript, Tailwind CSS, and Vite, with Bolt.new helping us rapidly develop and iterate on the prototype.

The AI functionality is organized into reusable components for document analysis, summarization, risk detection, question answering, and brief generation. For the hackathon demo, we created a realistic fictional contract and a reliable demo mode so the complete workflow works without requiring an external API key.

Challenges

One of our biggest challenges was making the AI useful without making it feel like a generic chatbot. We focused on evidence-based responses, source references, and human review so that users can verify AI findings themselves.

Another challenge was keeping the project simple enough for a hackathon while still demonstrating a complete legal workflow.

What We Learned

Building LexAI taught us that effective legal AI is not just about generating answers. Trust, transparency, evidence, and human oversight are equally important.

Our goal is not to replace lawyers, but to reduce repetitive work and help them focus more on the decisions that require human expertise.

Built With

Share this project:

Updates