Skip to content

WhatsApp Router (Sales)

Bot WhatsApp +5511913301075 (ADSx bot oficial).

Status

  • Onda 1 (06/05): análises Whisper · multi-bot arch · security audit 7.5/10 entregues
  • Sprint 2 (06/05): 100% fechado · 12 PRs mergeados · score 6.8→7.5/10
  • Onda M3 iniciada: PR #14 ClientContextResolver + PR #13 Grafana drafts
  • Bloqueador atual: Meta App Review (#15) · go-live gated
  • Readiness: 18% → 72%

Anti-padrão Anthropic

WhatsApp router é o único consumidor de Anthropic API key paga (~/.anthropic-key 108B mode 600). Cabeada em whatsapp-router/.env + Supabase secret. Memória: reference_anthropic_key_setup.

Tabelas

  • whatsapp_messages (from_e164 · to_e164 · body · created_at)
  • whatsapp_bot_sessions (phone · state · last_message_at · 30d TTL)

Edge Fns

  • wr-inbound — webhook Meta inbound
  • wr-outbound — outbound enqueue
  • ... (mais 19 Edge Fns Sales · ver ~/projects/adsx-sales/supabase/functions/)

Cron

*/2 * * * *  ~/scripts/wr-outbox-runner.sh   # processa whatsapp outbox
0 3 * * *    ~/scripts/cleanup-bot-sessions-daily.sh  # TTL 30d

Cross-ref

  • ~/adsx-sales-bootstrap/BOOTSTRAP-PACK-V3.md § WhatsApp
  • ~/projects/AUDIT-SECURITY-ADSXFINANCE-20260508.md (precedente segurança)