Inspiration

Access to legal help is often out of reach for people in many countries due to high costs, limited availability, or complexity of laws. I wanted to build a tool that could bridge that gap and provide free, easy-to-understand legal guidance using AI — something that could empower people to understand their rights, anywhere in the world.

What it does

AI Legal Aid is a modern chatbot that provides general legal information using natural language. Users can:

  • Select a legal category (e.g. Tenant Rights, Labor Law, etc.)
  • Choose their country for relevant legal context
  • Ask legal questions in plain English
  • Receive helpful, concise answers generated by Google's Gemini AI

It’s fast, accessible, and designed to be used without any legal background.

How we built it

I built the frontend using:

  • React for UI
  • Vite for speedy local development
  • Tailwind CSS for styling and responsive layout
  • Gemini API to power the chatbot's AI-generated legal responses

The app is fully frontend-based with no database or server. Everything runs client-side, making it privacy-friendly and super lightweight.

Challenges we ran into

  • Jurisdiction differences: Legal systems vary across countries, which made prompting the AI tricky. I added a country selector to help guide the AI's responses while still keeping them general.
  • UI overload: Fitting category and country filters into a clean layout without cluttering the screen was a challenge, especially on mobile. I solved this with a compact tag-style layout and dropdowns.
  • Responsible AI use: Ensuring the chatbot didn’t "sound like a lawyer" was important — I built strong disclaimers and trained the prompt to emphasize it's not legal advice.

Accomplishments that we're proud of

  • A smooth, production-ready AI chatbot with global scope and zero backend.
  • Supports 190+ countries and multiple legal categories.
  • Real-time, human-like legal info using Gemini — cleanly and responsibly delivered.

What we learned

  • How to build secure, usable AI interfaces
  • Prompt engineering for sensitive fields like law
  • React + Vite best practices for frontend-focused AI apps
  • Legal and ethical implications of AI in social good projects

What's next for AI Legal Aid

  • Adding voice input support for accessibility
  • Integrating PDF chat (e.g., “Upload your legal notice”)
  • Translating UI and responses into other languages
  • Exploring open datasets for better jurisdiction-specific accuracy

Made with ❤️ to make legal knowledge more accessible and understandable to everyone.

Built With

Share this project:

Updates