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
