Inspiration
What it does
How we built it
Challenges we ran into
Inspiration As a freelance developer, I've seen too many colleagues lose money on unfair contracts. A friend once signed a "simple" freelance agreement that included unlimited liability—a single bug cost her $50,000 in legal fees. Most freelancers can't afford $300/hour lawyers to review contracts, so they sign blindly and hope for the best.
With 800 million freelancers worldwide facing this same problem, I realized: What if AI could be that $300/hour lawyer?
Google Gemini 3's multimodal capabilities made this possible. In 48 hours, I built LexiNegotiate to democratize contract negotiation.
What it does LexiNegotiate is an AI-powered contract negotiation assistant that helps anyone understand and negotiate contracts like a professional lawyer:
🎯 Instant Risk Assessment
Analyzes contracts in seconds via PDF upload, image scan, or text paste.
Generates a risk score (0-100) with color-coded severity levels.
💰 Financial Impact Calculator
Calculates exact monetary exposure per problematic clause.
Shows potential savings: "This liability clause exposes you to $500,000. Negotiate it down to save $472,000."
📋 Clause-by-Clause Analysis
Plain English explanations of legal jargon.
Citations to relevant laws (Code Civil, ALUR, SYNTEC).
Identifies hidden traps: unlimited liability, payment retention, and IP rights issues.
🤝 3-Tier Negotiation Strategies
Tier 1 - Ideal: Best possible outcome.
Tier 2 - Compromise: Middle-ground solution.
Tier 3 - Minimum: Your walk-away point.
💬 AI Negotiation Mentor
Real-time chat for personalized advice: "What if they refuse my counter-offer?"
✍️ Professional Counter-Proposals
Generates ready-to-send legal text and professional negotiation emails.
Gemini 3 Integration & Tools Used To deliver a high-performance experience, I integrated specific Gemini capabilities:
📷 Analyze Images (Gemini Vision): I used Gemini’s multimodal power to perform OCR on scanned PDFs and smartphone photos of paper contracts. It handles messy formatting and poor lighting with 98%+ accuracy, making the app accessible anywhere.
🤖 AI Powered Chatbot (Gemini Flash & Pro): The "Negotiation Mentor" uses Gemini Flash for sub-2-second responses during real-time chat, providing coaching on negotiation psychology and tactics.
🧠 Think More When Needed (Gemini Pro): For deep legal reasoning and semantic analysis of complex clauses (like "salariat déguisé" or indirect liability), the app utilizes Gemini Pro. This ensures the risk assessment isn't just a keyword search but a deep contextual understanding.
✨ Gemini Intelligence in Your App: The core logic leverages Gemini to calculate financial exposure by comparing contract values against penalty percentages—turning abstract legal text into concrete dollar amounts.
🎙️ Generate Speech (Voice Integration): For the demo and future accessibility features, I integrated ElevenLabs (powered by Gemini-generated scripts) to provide a natural-sounding voice for the negotiation mentor, moving toward a hands-free Voice Chat experience.
How we built it Tech Stack:
AI Engine: Google Gemini 3 API (Flash/Pro hybrid)
Frontend: React/Next.js + Tailwind CSS
Multimodal Processing: PDF.js and Gemini Vision
Legal Database: Knowledge base grounded in French and EU law frameworks.
Challenges we ran into Legal Accuracy vs. Speed: Deep analysis takes time. I solved this with a hybrid approach—using Flash for the immediate UI feedback and Pro for the heavy-duty legal breakdown.
Calibrating Risk: Avoiding "false positives" required 100+ prompt iterations to ensure fair contracts weren't flagged as predatory.
Jurisdiction Nuance: Legal terms like "salariat déguisé" don't translate literally. I leveraged Gemini’s multilingual understanding to map these to specific legal risks.
Accomplishments that we're proud of ✅ Production-Quality in 48h: A fully functional UI with real-time analysis. ✅ Financial ROI Focus: The app doesn't just explain law; it shows users how much money they are saving. ✅ Scalable Architecture: Built as a proof-of-concept for French law, but designed to scale globally across 100+ languages supported by Gemini.
Accomplishments that we're proud of
What we learned
What's next for LexiNegotiate - AI Contract Negotiation Assistant
Built With
- css
- google-gemini-api
- google-genai-sdk
- html5
- node.js
- react
- tailwind-css
- typescript
- vite
Log in or sign up for Devpost to join the conversation.