Skip to content

Shanidhya01/AI-ChatBot

Repository files navigation

🌟 AI ChatBot

A modern, responsive chat interface powered by Google's Gemini AI. This application allows users to engage in intelligent, real-time conversations with an AI assistant through a sleek, mobile-friendly UI.


🚀 Features

  • 💬 Real-time conversations with Gemini 1.5/1.0 models
  • 🌓 Dark/Light mode toggle
  • ⚡ Fast, responsive UI with loading indicators and transitions
  • 📱 Fully responsive and mobile-optimized design
  • 🔄 Chat history saved during session
  • 📋 One-click copy button with “Text copied!” toast
  • 🎨 Stylish glassmorphism and gradient UI
  • 🔐 .env support for sensitive API keys

🛠️ Tech Stack


📁 Folder Structure

Gemini-AI-ChatBot/
├── app/
│   ├── globals.css
│   ├── layout.tsx
│   ├── page.tsx
│   ├── page.css
│   └── api/
├── components/
│   ├── logo-options.tsx
│   ├── theme-provider.tsx
│   ├── theme-toggle.jsx
│   ├── Neo/
│   └── ui/
├── hooks/
├── lib/
├── public/
├── styles/
│   └── globals.css
├── .env.local
├── package.json
├── tailwind.config.ts
├── tsconfig.json
└── README.md

⚙️ Getting Started

✅ Prerequisites

  • Node.js >= 16.x
  • npm, yarn, or pnpm
  • Google Gemini API key

📦 Installation

  1. Clone the repository:

    git clone https://github.com/Shanidhya01/Ai-ChatBot.git
    cd Ai-ChatBot
  2. Install dependencies:

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Create a .env.local file and add:

    GEMINI_API_KEY=your_google_gemini_api_key
    
  4. Start the development server:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev

    Visit: http://localhost:3000


🔐 Environment Variables

Variable Description
GEMINI_API_KEY Your API key from https://ai.google.dev/

🚀 Deployment

Deploy with platforms like:


🤝 Contributing

  1. Fork the repo
  2. Create your feature branch: git checkout -b feature/feature-name
  3. Commit your changes: git commit -m 'Add feature'
  4. Push to the branch: git push origin feature/feature-name
  5. Open a pull request

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


📫 Contact

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors