💬 Chatbot
A lightweight, browser-based chatbot built with vanilla HTML, CSS, and JavaScript. Designed for learning, experimenting, or embedding simple conversational logic into websites.
✨ Features
- 🧠 Basic keyword-matching chatbot
- 🖥️ Clean and responsive UI
- 🛠️ Fully customizable response set
- ⚡ No frameworks or libraries needed
📁 Project Structure
bash Chatbot/ ├── index.html # Main web page ├── style.css # Chatbot styling ├── main.js # Chat logic and event handling └── chatdataset.js # Predefined Q&A dataset
🚀 Getting Started
🧪 Run Locally
-
Clone the repository
git clone https://github.com/astro-prog/Chatbot.git cd Chatbot -
Open
index.htmlin a browser Just double-click the file or use a live server if you're using VS Code.
✔️ That’s it—no builds, no dependencies, just open and go!
⚙️ Customize Your Bot
You can add or update responses in chatdataset.js. Here’s how;
javascript { question: "hello", answer: "Hi there! How can I help you today?" }
Want to make your bot smarter? Add more entries or improve the keyword-matching logic in main.js.
🤝 Contributing
Feel free to open issues or submit pull requests!
- Fork this repo
- Create your feature branch:
git checkout -b feature/awesome-feature - Commit changes:
git commit -m 'Add awesome feature' - Push to your branch:
git push origin feature/awesome-feature - Open a pull request 🚀
Feel free to use, modify, or share it as you like!❤️
📬 Contact
Made with ❤️ by @astro-prog