This project is a web-based chatbot interface that integrates with Google's Gemini API to provide AI-powered responses. The chatbot allows users to send messages and receive intelligent responses in real time.
- Simple and responsive chat UI using HTML, CSS, and JavaScript
- Real-time interaction with Google Gemini API
- Smooth message rendering and scrolling
- Error handling for API requests
- Frontend: HTML, CSS, JavaScript
- Backend API: Google Gemini API
- A web browser (Chrome, Firefox, Edge, etc.)
- A Google API key with access to the Gemini API
[Live Demo](https://happybot.tiiny.site/)- Clone this repository:
git clone https://github.com/Hercules-Peters/Chatbot-Interface-Using-Google-Gemini-API.git
- Navigate to the project directory:
cd chatbot-gemini - Open
index.htmlin a web browser.
- Obtain an API key from Google Cloud for the Gemini API.
- Replace
YOUR_API_KEYin the JavaScript file with your actual API key:const API_KEY = 'YOUR_API_KEY';
- Open the chatbot in a browser.
- Type a message in the input field.
- Press enter or click the send button.
- The chatbot will respond using the Gemini API.
- Ensure your API key is valid and has access to the Gemini API.
- Check for errors in the browser console (
F12> Console) for debugging. - Verify network connectivity if API calls fail.
- Improve UI/UX with animations and better styling.
- Implement voice input and text-to-speech responses.
- Add a backend for storing chat history.
This project is licensed under the MIT License.
For questions or contributions, feel free to reach out via kinyuapeter816@gmail.com.
