An interactive GenAI chatbot built with Node.js + Google Gemini API. This chatbot behaves exactly like your sarcastic ex — it remembers your chats, throws witty comebacks, and never lets you change its mood. 😅
- 🧠 Chat Memory – Stores conversation history with
History[]
. - 🎭 Fixed Personality – Uses
systemInstruction
to lock chatbot’s sarcastic tone. - 🔒 Resistant to Manipulation – Won’t break character even if you try.
- ⚡ Fast & Interactive – Powered by Gemini’s
gemini-2.5-flash
.
- Node.js
- Google Gemini API
- JavaScript (ESM)
# Clone the repo
git clone https://github.com/AniketVerma0614/GenAI-Chatbot-with-Google-Gemini.git
# Move into project
cd GenAI-Chatbot-with-Google-Gemini
# Install dependencies
npm install
- Create a
.env
file in the project root. - Add your Google Gemini API key:
API_KEY=your_gemini_api_key_here
node server.js
Now open your terminal and chat with your Ex 💔🤖
const response = await ai.models.generateContent({
model: "gemini-2.5-flash",
contents: History,
config: {
systemInstruction: "Behave like my sarcastic ex..."
},
});
- Fun way to learn Prompt Engineering.
- Showcases systemInstruction usage for LLMs.
- Beginner-friendly GenAI project.
Pull requests and ideas are welcome!