An intelligent AI-powered chatbot built with React, Express, and MongoDB that allows users to interact with AI based on admin-provided knowledge.
✨ User Authentication
- Register new account
- Secure login system
💬 AI Chat System
- Ask questions in real-time
- AI responds based on admin posts
🧠 Admin Knowledge Control
- Admin can create posts (knowledge base)
- AI answers are generated from stored content
📦 Full-Stack Architecture
- Frontend: React
- Backend: Express.js
- Database: MongoDB
| Frontend | Backend | Database | Other |
|---|---|---|---|
| React.js | Express.js | MongoDB | Node.js, REST API |
git clone https://github.com/feyyu120/ChatBot.git
cd ChatBot
cd frontend
npm install
cd backend
npm install
cd backend
npm run start
cd frontend
npm run dev
Create a .env file inside /server:
MONGO_URI= " "
JWT_SECRET= " "
PORT=5000
POST /api/auth/registerPOST /api/auth/login
- Admin creates posts → stored in MongoDB
- User asks a question
- Backend processes the question
- AI generates response based on stored posts
- Response is sent back to user
- 🤖 Integrate advanced AI (OpenAI API or similar)
- 📊 Admin dashboard analytics
- 🗂️ Categories for knowledge posts
- 🌍 Multi-language support
- ⚡ Real-time chat (WebSockets)
Register.jsx
- - -
login.jsx
- - -
bot.jsx
- - -
admin.jsx
- - -
on mobile
Contributions are welcome! Feel free to fork this repo and submit a pull request.
Feysel Yassin
- GitHub: https://github.com/feyyu120
- email: feyselfeyyu@gmail.com
If you like this project, give it a ⭐ on GitHub!
Feysel Yassin
