Install
openclaw skills install @bettermen/ai-email-agentLLM驱动的电商客服智能邮件自动回复系统
openclaw skills install @bettermen/ai-email-agentLLM 驱动的电商客服智能邮件自动回复系统。自动分类、情感检测、智能回复、紧急升级、多语言支持。
# Install dependencies
pip install -r {baseDir}/requirements.txt
# Demo mode — process 5 sample emails
python3 {baseDir}/main.py demo
# Run agent loop (requires IMAP/SMTP config)
python3 {baseDir}/main.py run
# Start monitoring dashboard
python3 {baseDir}/main.py dashboard
Edit {baseDir}/config.yaml and set environment variables:
export LLM_API_KEY="sk-your-key"
export IMAP_PASSWORD="your-imap-password"
export SMTP_PASSWORD="your-smtp-password"
| Module | Description |
|---|---|
| Smart Classification | LLM-powered 5-category routing |
| Sentiment Detection | 5-level sentiment + urgency scoring |
| Auto Reply | Multi-template + variable rendering |
| Escalation | 10 trigger rules + WeCom/Feishu notifications |
| Multi-language | P0-P3 tiered strategy for 8+ languages |
| Knowledge Base | Keyword RAG for consultation enhancement |
| Dashboard | Real-time Web monitoring with Chart.js |
Urgency →
Sentiment↓ 1(Low) 2(Normal) 3(Medium) 4(High) 5(Critical)
S0 Positive Auto Auto Auto Auto+CC Auto+CC
S1 Neutral Auto Auto Auto Semi Semi
S2 Negative Auto+ Auto+ Semi Human Human
S3 Angry Semi Semi Human Human Human+Legal
| Command | Description |
|---|---|
python3 {baseDir}/main.py demo | Demo with 5 sample emails |
python3 {baseDir}/main.py run | Continuous agent loop |
python3 {baseDir}/main.py once | Single fetch & process |
python3 {baseDir}/main.py dashboard | Web dashboard (:8080) |
python3 {baseDir}/main.py stats | Ticket statistics |
python3 {baseDir}/main.py test-send <email> | Test SMTP config |