An intelligent customer support chatbot with AI-powered responses, ticket management, FAQ knowledge base, priority routing, and sentiment detection.
HelpDesk AI is a full-featured customer support chatbot built with Python and Flask. It combines Groq's Llama 3 70B model for intelligent responses with a local FAQ knowledge base, ticket management system, and smart routing based on customer priority and sentiment analysis.
| Feature | Description |
|---|---|
| AI-Powered Responses | Groq (Llama 3 70B) for smart, contextual support answers |
| Ticket System | Create, track, and manage support tickets with auto-prioritization |
| FAQ Knowledge Base | 20+ categorized FAQs across billing, account, technical, and features |
| Smart Priority Routing | Automatic priority detection (High/Medium/Low) from message content |
| Sentiment Analysis | Detects customer emotions (angry, frustrated, happy, neutral) |
| Category Detection | Auto-classifies issues into billing, account, technical, or features |
| Live Dashboard | Real-time stats: ticket count, open issues, message analytics |
| REST API | JSON endpoints for chat, FAQ, tickets, and statistics |
The app features a 3-panel professional layout:
- Left - Stats dashboard, FAQ quick-access menu
- Center - Chat interface with priority/category tags on each message
- Right - Real-time analysis panel showing priority, category, sentiment, and tickets
| Technology | Purpose |
|---|---|
| Python 3.9+ | Core language |
| Flask | Web server and REST API |
| Groq API | Llama 3 70B language model |
| HTML/CSS/JS | Professional support dashboard |
+---------------------------------------------+
| Web Dashboard |
| +------+ +----------+ +--------------+ |
| |Stats | | Chat | | Analysis | |
| | FAQ | | Window | | Panel | |
| +------+ +----+-----+ +--------------+ |
+-----------------|---------------------------+
| REST API
+-----------------|---------------------------+
| Flask Server |
| +------------------------------------------+|
| | Support AI Engine ||
| | +----------+ +-----------------+ ||
| | | Priority | | Sentiment | ||
| | | Detector | | Analyzer | ||
| | +----------+ +-----------------+ ||
| | +----------+ +-----------------+ ||
| | | Category | | FAQ Search | ||
| | | Router | | Engine | ||
| | +----------+ +-----------------+ ||
| +------------------------------------------+|
| +--------------+ +------------------+ |
| | Ticket System| | Groq AI Client | |
| | (CRUD+Stats) | | (Llama 3 70B) | |
| +--------------+ +------------------+ |
+----------------------------------------------+
Python >= 3.8
Groq API key (free at console.groq.com/keys)# Clone the repository
git clone https://github.com/KHALEDNOAMAN/HelpDesk-AI.git
cd HelpDesk-AI
# Install dependencies
pip install -r requirements.txt
# Add your Groq API key
echo GROQ_API_KEY=your_key_here > .env
# Run the chatbot
python app.pyThen open http://localhost:5001
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Support chat dashboard |
/api/chat |
POST | Send message, get AI response |
/api/faq |
GET | Get full FAQ database |
/api/tickets |
GET | List all support tickets |
/api/tickets/stats |
GET | Ticket statistics |
HelpDesk-AI/
|-- app.py # Main app (server + AI + ticket system + UI)
|-- requirements.txt # Python dependencies
|-- .env # API key (not committed)
|-- LICENSE
+-- README.md
This project is licensed under the MIT License.
Khaled Noaman - Computer Engineering Student at Istanbul Arel University