File size: 1,971 Bytes
26e54d8
c2967d6
 
 
 
26e54d8
c2967d6
26e54d8
 
c2967d6
 
26e54d8
 
c2967d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: OmniTech Customer Support
emoji: 🤖
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: "5.9.1"
app_file: app.py
pinned: false
license: mit
python_version: "3.12"
---

# OmniTech Customer Support Chatbot

An AI-powered customer support chatbot built with:
- **Gradio** for the web interface
- **MCP (Model Context Protocol)** for tool orchestration
- **ChromaDB** for vector-based document search (RAG)
- **HuggingFace Inference API** for LLM responses

## ⚠️ IMPORTANT: Required Setup

**This Space requires `HF_TOKEN` to be set as a secret, or the LLM won't work!**

Without `HF_TOKEN`, you'll see truncated responses like:
> "Based on our Return policies: OmniTech Solutions Consumer Returns..."

**How to fix:**
1. On the Hugging Face spaces site (huggingface.co/spaces/userid/aia-capstone) click on the **Settings** link in the upper right. 
2. Scroll down until you see the **Variables and secrets** section.
3. Click **New secret** button on right.
4. Fill in the fields with Name: `HF_TOKEN`and Value: Your HuggingFace API token.
5. Click **Save** and the Space will restart automatically
6. You can watch progress back on the **App** tab.

## Features

- 🔍 **RAG-powered responses** - Answers based on product documentation
- 🎫 **Ticket creation** - Automatically creates support tickets when needed
- 👤 **Customer context** - Looks up customer information for personalized responses
- 📊 **Developer mode** - Toggle to see debug info, MCP stats, and knowledge search

## Usage

1. **Set HF_TOKEN first** (see above)
2. Select a customer from the dropdown
3. Type your question in the chat
4. Toggle "Developer Mode" to see debug information

## Support Categories

- Account Security (passwords, 2FA, account recovery)
- Device Troubleshooting (technical issues, setup)
- Shipping & Delivery (order tracking, shipping info)
- Returns & Refunds (return policy, warranties)

---
*Built for the Enterprise AI Accelerator Capstone*