This project is a simple AI chatbot implemented using Node.js, HTML, CSS, and JavaScript. The chatbot utilizes the Google Gemini API to generate responses.
- Interactive chatbot interface
- Real-time communication with the Google Gemini API
- Simple and clean user interface
Make sure you have Node.js installed. You can download it from Node.js official website.
-
Clone the repository to your local machine:
git clone https://github.com/PavanSugreev04/google-gemini-chatbot.git cd google-gemini-chatbot
-
Install the necessary npm packages:
npm install @google/generative-ai ora chalk prompt-sync express body-parser
-
Replace the
API_KEY
inindex.js
with your own API key from Google Gemini. -
Start the Node.js server:
node index.js
-
Open
index.html
in your browser to start interacting with the chatbot.