PLN098 EVIDENCE — Suporte Billing Inteligente
Backend (786 linhas, 9 ficheiros)
support_ai/models.py— ChatSession + ChatMessage (SQLAlchemy)support_ai/schemas.py— 6 Pydantic v2 schemassupport_ai/intents.py— 10 intents, PT+EN keywordssupport_ai/engine.py— BillingSupportEngine (gather context, generate response, escalate)support_ai/routes.py— 7 endpoints (/chat/start, message, sessions, history, resolve, escalate, stats)- 18 testes: 10 API + 8 intents
Frontend (733 linhas, 13 ficheiros)
- ChatWidget.tsx — widget flutuante, fullscreen mobile
- ChatMessage.tsx + ChatInput.tsx — componentes chat
- PortalChat.tsx — página /portal/chat
- supportAi.ts — API client
- 16 keys i18n × 6 idiomas
E2E + CI/CD
- Suite 99-portal-chat: CHAT-01..08 (3 viewports)
- 3 jobs CI/CD: e2e:{dev,uat,staging}:portal-chat
Pipeline
- MR !252 merged em dev
- Pipeline #3360: ruff I001 → fix
274402d→ pipeline #3361
Commits
| SHA | Descrição |
|---|---|
| 2e9fdc6 | feat(support-ai): billing chatbot engine + API |
| 901a263 | feat(support-ai): chat widget + portal page + i18n |
| 9add075 | test(support-ai): E2E suite 99 CHAT-01..08 + CI/CD |
| 274402d | fix(support-ai): ruff I001 main.py |