Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hari7261/genai-bot
๐ค Gemini AI Chatbot: A smart, fast chatbot thatโs easy to use, looks cool, and gives fun replies. ๐๐ฌ
https://github.com/hari7261/genai-bot
api chatbot chatbot-gemini fullstack-development gemini-ai gemini-api gemini-pro gemini-pro-api hari7261 reactjs
Last synced: 7 days ago
JSON representation
๐ค Gemini AI Chatbot: A smart, fast chatbot thatโs easy to use, looks cool, and gives fun replies. ๐๐ฌ
- Host: GitHub
- URL: https://github.com/hari7261/genai-bot
- Owner: hari7261
- Created: 2024-12-14T15:17:05.000Z (8 days ago)
- Default Branch: main
- Last Pushed: 2024-12-14T15:21:58.000Z (8 days ago)
- Last Synced: 2024-12-14T16:27:36.988Z (8 days ago)
- Topics: api, chatbot, chatbot-gemini, fullstack-development, gemini-ai, gemini-api, gemini-pro, gemini-pro-api, hari7261, reactjs
- Language: TypeScript
- Homepage: https://gemini-chatbot-phi-sage.vercel.app
- Size: 423 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **๐ค Gemini AI Chatbot**
Your friendly, futuristic AI companion! ๐ช![batmen](https://github.com/user-attachments/assets/47a8ce70-601a-4661-b0f3-70c1bcbc1590)
---
## **๐ Welcome to the Future of Conversations!**
Gemini AI Chatbot isnโt just any chatbotโitโs your intergalactic chat partner. With cutting-edge **AI**, a sleek design, and a personality cooler than your morning coffee, Gemini is here to chat, answer questions, and make your day a little brighter. ๐
### **Why Gemini?**
- **๐ง Smart AI**: Powered by the brainiest machine learning models (OpenAI GPT APIs).
- **๐๏ธ Beautiful Interface**: A sleek, dark theme interface that doesnโt hurt your eyes during your late-night existential crisis chats.
- **โก Fast Responses**: Speedy like a rocket! ๐
- **๐ Error Handling**: Because nobody likes it when things break (we added a spinner just for dramatic effect).---
## **๐ ๏ธ Tech Stack (A Symphony of Greatness)**
| **Technology** | **Purpose** |
|-----------------------|-----------------------------------------------------------------------------|
| ๐ฆ **Next.js** | The ultra-modern React framework for building blazingly fast web apps. |
| ๐จ **Tailwind CSS** | CSS, but make it fashion. Stunning design, no sweat. |
| ๐ป **TypeScript** | JavaScriptโs cooler, type-safe sibling. Keeps your code bug-free! ๐ |
| ๐ค **Lucide Icons** | Fancy icons that jazz up the UI (hello, **Bot** and **Loader**!). |
| ๐ **Environment** | Secrets like API keys stored securely in `.env.local`. Shhh, itโs a secret!|
| ๐ **APIs** | Powered by **Google** APIs and the mighty **GPT** for interactive chats. |---
## **โจ Features That Make Gemini Awesome**
| **Feature** | **How it Works** |
|--------------------------|----------------------------------------------------------------------------------|
| **๐ Dynamic Chat** | Gemini fetches your input, sends it to the AI, and responds faster than your ex. |
| **๐ Dark Theme** | A UI so cool, it belongs in a sci-fi movie. ๐ |
| **๐ Spinning Loader** | Fancy spinner animation while Gemini processes your request. |
| **๐ Error Alerts** | When life gives you lemons (errors), we show you pretty red alerts. ๐ |---
## **๐ก How It All Works (A Peek Under the Hood)**
### 1๏ธโฃ **AI Logic**
When you type a message:
- **Your Message** ๐ โก๏ธ Sent to our `/api/chat` endpoint.
- **Magic Happens** ๐ช: The backend uses **OpenAI GPT API** to craft a witty, insightful, or downright goofy response.
- **Response** ๐ฌ โก๏ธ Delivered to you faster than a pizza.### 2๏ธโฃ **UI Design**
- Built with **Tailwind CSS**, itโs like playing with Lego blocks, but for design.
- Everything is modular: from buttons to alerts, weโve made it reusable and beautiful.### 3๏ธโฃ **State Management**
- **React useState**: Keeps track of everything from loading states to your heartfelt messages.
- **Error Handling**: Any hiccups? We catch them and show a polite error message (no tantrums here).### 4๏ธโฃ **Environment Variables**
- Your API key is securely stored in `.env.local` (because privacy matters).
- We retrieve the key using `process.env.GOOGLE_API_KEY`.---
## **๐ฎ How to Run Locally (Spoiler Alert: Super Easy)**
```bash
# Clone the repo ๐
git clone https://github.com/your-repo/chatbot.git# Navigate to the project directory
cd chatbot# Install dependencies ๐ฆ
npm install# Add your API key to .env.local
echo "GOOGLE_API_KEY=your_api_key_here" > .env.local# Start the development server ๐ ๏ธ
npm run dev
```Visit `http://localhost:3000` and start chatting with Gemini. ๐ฌ
---
## **๐ธ Screenshots**
### **Futurstic**
![Screenshot 2024-12-14 203518](https://github.com/user-attachments/assets/0a6232e4-61f0-4ccb-ab39-8304b1842b26)### **Chat in Action**
![Screenshot 2024-12-14 202810](https://github.com/user-attachments/assets/7208f50d-51bc-4465-b32e-009c3c417a1a)---
## **๐ Fun Facts**
- Gemini is faster than your Wi-Fi on a good day.
- Its dark theme saves your eyes *and* makes you look like a hacker.
- Designed for both **deep conversations** and **memes**.---
### **๐จ Disclaimers**
- **Itโs not a human** (even if it sounds like one).
- Doesnโt guarantee lottery-winning predictions.---
Let the AI magic begin! ๐ซ