Skip to content

πŸ’¬ A lightweight AI chatbot built using HTML, CSS, and JavaScript with Gemini API β€” easy to integrate into any website using keyword-based responses.

Notifications You must be signed in to change notification settings

gaincyst/Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’¬ Smart Chatbot using Gemini API

This is a smart and lightweight chatbot built using HTML, CSS, JavaScript, and Gemini API.
It can be easily integrated into any website by defining simple keywords and responses, allowing the chatbot to talk about that specific website dynamically.


πŸš€ Features

  • πŸ€– Powered by Gemini API
  • 🧩 Can be added to any website
  • πŸ—οΈ Works on keyword-based responses
  • ⚑ Lightweight and fast
  • 🧠 Provides intelligent AI-based replies
  • 🎨 Built with pure HTML, CSS, and JavaScript

🧠 How It Works

  1. The chatbot listens to user input.
  2. It checks for matching keywords in your predefined list.
  3. Sends the corresponding response if a match is found.
  4. For unmatched queries, it uses the Gemini API to generate smart responses.

πŸ› οΈ Tech Stack

Technology Description
HTML Structure of the chatbot interface
CSS Styling and layout of the chat window
JavaScript Handles input, logic, and API calls
Gemini API Provides AI-based intelligent responses

βš™οΈ Setup & Installation

  1. Clone this repository
    git clone https://github.com/<your-username>/<repo-name>.git
    
  2. Navigate to project folder
    cd <repo-name>
  3. Add your Gemini API key
    const API_KEY = "YOUR_GEMINI_API_KEY";
  4. Run the project
    Simply open index.html in your browser.
    

🌐 Add to Any Website

  1. Copy the chatbot files or script to your project.
  2. Add your own keywords and responses in the JS file.
  3. Customize chatbot styling in the CSS file to match your website theme.
  4. Done! You now have a working chatbot on your site πŸŽ‰.

🧩 Future Enhancements

  • Improved UI/UX design
  • Dark/Light mode option
  • Chat history persistence
  • Multi-language support

License

This project is open-source under the MIT License.

πŸ‘©β€πŸ’» Author

Gaincy Sharma πŸ”— GitHub Profile

πŸ’¬ β€œA simple idea can turn into a powerful tool when built with curiosity and code.”

About

πŸ’¬ A lightweight AI chatbot built using HTML, CSS, and JavaScript with Gemini API β€” easy to integrate into any website using keyword-based responses.

Resources

Stars

Watchers

Forks