Skip to content

Deepayan-S/ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Lawyer AI Chatbot

A virtual legal assistant powered by the Gemini API, designed to provide users with legal advice based on their queries. This chatbot features a Flask backend, a JavaScript-based frontend, and is deployed on Vercel for seamless performance.

🚀 Features

  • AI-Powered Legal Assistance – Provides responses based on user legal queries.
  • Flask Backend – Handles API requests and processes responses.
  • Interactive Frontend – Built with JavaScript, HTML, and CSS.
  • Text-to-Speech (TTS) – Converts responses into speech for accessibility.
  • Vercel Deployment – Ensures fast and scalable performance.

🛠️ Technologies Used

  • Backend: Flask, Gemini API
  • Frontend: JavaScript, HTML, CSS
  • Deployment: Vercel
  • Additional: Text-to-Speech (TTS)

📌 Setup & Installation

  1. Clone the repository:
    git clone https://github.com/your-username/ai-agent.git
    cd ai-agent
  2. Create a virtual environment and activate it:
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Set up your API key for the Gemini AI (if required):
    export GEMINI_API_KEY=your_api_key_here  # On Windows: set GEMINI_API_KEY=your_api_key_here
  5. Run the Flask server:
    python app.py
  6. Open the frontend in a browser or serve it using a local server.

🚀 Deployment

  • The backend is hosted on Vercel, ensuring a smooth and reliable user experience.
  • To deploy updates, push changes to the GitHub repository connected to Vercel.

📌 Future Improvements

  • Enhance legal knowledge base.
  • Implement user authentication for personalized responses.
  • Add multilingual support.
  • Improve UI/UX for better usability.

📄 License

This project is open-source and available under the MIT License.


Feel free to contribute or suggest improvements! 🚀

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors