How luciano-watanabe/canal_comunicacao works
Canal de Comunicação is a WhatsApp customer-service and sales-prospecting system. Staff use its protected dashboard to manage conversations, customers, SAC triage, campaigns and sales operations; the backend exposes these capabilities through HTTP routes, realtime sockets and background services, with Oracle-backed state and WhatsApp/AI/geolocation integrations. The graph preserves documented product branches even where their implementation was not sampled. Edges are limited to relationships visible in excerpts, the source index or README; unsampled route internals are not inferred.
Main entry points: App.tsx Protected dashboard · server.js HTTP and socket server · clientes.js Customer API · Chat.tsx Chat workspace
Components 29
Staff interface
- Protected dashboard
frontend/src/App.tsx - Chat workspace
frontend/src/pages/Chat.tsx - Customer management
frontend/src/pages/Clientes.tsx - SAC console
frontend/src/pages/SAC.tsx - System settings
frontend/src/pages/Configuracoes.tsx - Campaigns
frontend/src/pages/Campanhas.tsx - Analytics dashboard
frontend/src/pages/Dashboard.tsx - Price research
frontend/src/pages/PesquisaPrecos.tsx - Sales routes
frontend/src/pages/Rotas.tsx - Customer reactivation
frontend/src/pages/Reativacao.tsx - Realtime client
frontend/src/contexts/SocketContext.tsx - Privacy masking
frontend/src/contexts/PrivacyContext.tsx - Order cart
frontend/src/contexts/CartContext.tsx
Messaging and SAC
- SAC bot
backend/src/services/SacBotService.js - Bot message service
backend/src/services/botMensagensService.js - Evolution webhook
backend/src/controllers/webhookController.js - Native webhook receiver
backend/src/services/webhookServerManager.js
Sales operations
- Sales and prospecting features
frontend/src/pages
Backend platform
- HTTP and socket server
backend/src/server.js - Customer API
backend/src/routes/clientes.js - Chat API
backend/src/routes/chat.js - SAC API
backend/src/routes/sac.js - Sales APIs
backend/src/routes
Data and integrations
- Oracle connection pool
backend/src/services/oraclePool.js - Oracle database
- Evolution API
- Grok and Groq
- Geolocation providers
Other components
- Staff user
Connections 33
- Staff user → Protected dashboard: uses
README.md - Protected dashboard → Chat workspace: routes to
frontend/src/App.tsx - Protected dashboard → Customer management: routes to
frontend/src/App.tsx - Protected dashboard → SAC console: routes to
frontend/src/App.tsx - Protected dashboard → System settings: routes to
frontend/src/App.tsx - Protected dashboard → Campaigns: routes to
frontend/src/App.tsx - Protected dashboard → Analytics dashboard: routes to
frontend/src/App.tsx - Protected dashboard → Price research: routes to
frontend/src/App.tsx - Protected dashboard → Sales routes: routes to
frontend/src/App.tsx - Protected dashboard → Customer reactivation: routes to
frontend/src/App.tsx - Protected dashboard → Realtime client: provides
frontend/src/App.tsx - Protected dashboard → Privacy masking: provides
frontend/src/App.tsx - Protected dashboard → Order cart: provides
frontend/src/App.tsx - Customer management → Privacy masking: masks data
frontend/src/pages/Clientes.tsx - Customer management → Customer API: requests
frontend/src/pages/Clientes.tsx - HTTP and socket server → Customer API: mounts
backend/src/server.js - HTTP and socket server → Chat API: mounts
backend/src/server.js - HTTP and socket server → SAC API: mounts
backend/src/server.js - HTTP and socket server → Sales APIs: mounts
backend/src/server.js - HTTP and socket server → Evolution webhook: mounts route
backend/src/server.js - Evolution webhook → Realtime client: emits events
backend/src/controllers/webhookController.js - HTTP and socket server → Oracle connection pool: initializes
backend/src/server.js - HTTP and socket server → Bot message service: loads and refreshes
backend/src/server.js - Native webhook receiver → Oracle connection pool: acquires connection
backend/src/services/webhookServerManager.js - Oracle connection pool → Oracle database: opens pooled connections
backend/src/services/oraclePool.js - Customer API → Oracle database: queries customer data
backend/src/routes/clientes.js - Customer API → Bot message service: reads cache
backend/src/routes/clientes.js - SAC bot → Bot message service: uses messages
backend/src/services/SacBotService.js - Chat workspace → Realtime client: uses realtime
frontend/src/pages/Chat.tsx - Chat workspace → Order cart: uses cart
frontend/src/pages/Chat.tsx - Campaigns → Evolution API: sends WhatsApp
README.md - SAC bot → Grok and Groq: suggests responses
README.md - Sales and prospecting features → Geolocation providers: geocodes addresses
README.md