Zum Hauptinhalt springen

PLN098 EVIDENCE — Suporte Billing Inteligente

Backend (786 linhas, 9 ficheiros)

  • support_ai/models.py — ChatSession + ChatMessage (SQLAlchemy)
  • support_ai/schemas.py — 6 Pydantic v2 schemas
  • support_ai/intents.py — 10 intents, PT+EN keywords
  • support_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

SHADescrição
2e9fdc6feat(support-ai): billing chatbot engine + API
901a263feat(support-ai): chat widget + portal page + i18n
9add075test(support-ai): E2E suite 99 CHAT-01..08 + CI/CD
274402dfix(support-ai): ruff I001 main.py