Legal Flow is a comprehensive web application designed to help users navigate legal documentation with ease. Upload legal forms, MOUs, court documents, and other legal materials to receive intelligent assistance with form completion, jargon clarification, and risk assessment through an AI-powered chatbot with voice-to-voice capabilities.
- Secure document upload and processing for legal forms and documents
- AI-powered chatbot with voice mode for interactive assistance
- OCR capabilities for extracting text from scanned documents
- Real-time community chat for user collaboration
- Personalized government scheme recommendations based on user needs
- Form filling guidance and legal jargon explanations
- Risk factor assessment for legal documents
Frontend:
- Next.js
- TypeScript
- Tailwind CSS
Backend:
- FastAPI
- Python
APIs and Services:
- ElevenLabs AI for voice synthesis
- Google Vision API for OCR
- WebSockets for real-time chat functionality
Before you begin, ensure you have the following installed:
- Node.js (v18 or higher)
- Python (v3.8 or higher)
- pip (Python package manager)
- npm or yarn
git clone https://github.com/yourusername/legal-flow.git
cd legal-flowNavigate to the frontend directory and install dependencies:
cd frontend
npm installCreate a .env.local file in the frontend directory with the following variables:
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_WS_URL=ws://localhost:8000Navigate to the backend directory and install dependencies:
cd backend
pip install -r requirements.txtCreate a .env file in the backend directory with your API keys:
ELEVENLABS_API_KEY=your_elevenlabs_api_key
GOOGLE_VISION_API_KEY=your_google_vision_api_key
DATABASE_URL=your_database_url
SECRET_KEY=your_secret_keyFrom the backend directory:
uvicorn main:app --reloadThe backend API will be available at http://localhost:8000
From the frontend directory:
npm run devThe frontend application will be available at http://localhost:3000
legal-flow/
├── frontend/
│ ├── src/
│ ├── public/
│ ├── package.json
│ └── tsconfig.json
├── backend/
│ ├── main.py
│ ├── requirements.txt
│ └── .env
└── README.md
Once the backend is running, visit http://localhost:8000/docs for interactive API documentation powered by FastAPI's automatic OpenAPI generation.
We welcome contributions to Legal Flow. Please read our Code of Conduct before contributing to ensure a positive and inclusive environment for all contributors.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions, issues, or feature requests, please open an issue on our GitHub repository.
- ElevenLabs AI for voice synthesis capabilities
- Google Cloud Vision for OCR functionality
- The open-source community for the frameworks and tools that made this project possible