Morgan White Group - Customer Service Chat Bot using OpenAI models
MWG CS BOT is a customer service chatbot solution developed for Morgan White Group. It leverages OpenAI's language models to provide automated responses to customer inquiries through a web-based chat interface. The system uses a client-server architecture with a responsive web frontend and Node.js backend to deliver real-time chat capabilities.
The chatbot is accessible at MWG CS BOT
- Real-time chat interface with message history and theme support
- AI-powered responses using OpenAI models for natural conversation
- Session-based authentication with secure cookie management
- Comprehensive security measures including:
- IP and session-based rate limiting
- Request validation and sanitization
- Security headers and CORS protection
- Performance optimizations through response caching and request throttling
.
├── ChatBot/
│ ├── client/
│ │ ├── app/
│ │ │ ├── modules/
│ │ │ │ ├── chatUI.js
│ │ │ │ ├── formHandler.js
│ │ │ │ └── themeHandler.js
│ │ │ └── index.js
│ │ ├── images/
│ │ │ ├── favicon.ico
│ │ │ └── logo.png
│ │ ├── index.html
│ │ ├── service-worker.js
│ │ └── styles.css
│ ├── server/
│ │ ├── config/
│ │ │ └── config.js
│ │ ├── middleware/
│ │ │ ├── errorHandler.js
│ │ │ └── security.js
│ │ ├── services/
│ │ │ └── openaiService.js
│ │ ├── main.js
│ │ └── utils.js
│ ├── cleanup.sh
│ ├── package.json
│ └── web.config
└── docs/
├── API.md
└── ARCHITECTURE.md
The application is deployed as an Azure Web App using GitHub Actions for continuous deployment. When changes are pushed to the main branch, the application is automatically built, tested, and deployed to Azure.
- API Documentation - Comprehensive guide to API endpoints, authentication, rate limits, and error handling
- Architecture Documentation - Detailed system design, component structure, data flow, and security implementation
This project is licensed under the terms included in the LICENSE file.