How cloudfarmenterprisesinfo-max/avirochat works
AviroChat is a multi-tenant WhatsApp sales, support, and marketing platform. Operators sign in to a workspace, manage leads and conversations, and use campaign, automation, catalog, and order tools; inbound WhatsApp messages are routed through a webhook into tenant-scoped lead and chat records. The dashboard page explicitly renders the feature views, while sampled API routes use Prisma for persistence. The README documents additional Meta and AI capabilities, but unsampled UI-to-API wiring and some integrations cannot be verified from the excerpts.
Main entry points: page.tsx Dashboard shell · prisma.ts Prisma client · route.ts WhatsApp webhook · MetaEmbeddedSignupButton.tsx Meta signup
Components 31
Workspace Dashboard
- Dashboard shell
src/app/page.tsx - Login view
src/components/LoginPage.tsx - Client workspaces
src/components/ClientManager.tsx - Workspace switcher
src/components/ClientSwitcher.tsx - User management
src/components/UserManagement.tsx - Dashboard overview
src/components/DashboardOverview.tsx - Workspace settings
src/components/SettingsView.tsx - Meta signup
src/components/MetaEmbeddedSignupButton.tsx
Messaging and Automation
- AI agent settings
src/components/AIBotSettings.tsx - Automation flows
src/components/AutomationFlowBuilder.tsx - Shared chat inbox
src/components/WhatsAppInbox.tsx - Website chat widget
src/components/WhatsAppWidgetGenerator.tsx - Broadcast manager
src/components/CampaignManager.tsx
Sales Operations
- Lead CRM
src/components/LeadCRM.tsx - Product catalog
src/components/EcommerceCMS.tsx - Orders and invoices
src/components/OrderManager.tsx
Application API
- Leads API
src/app/api/leads/route.ts - Chat API
src/app/api/chat/route.ts - WhatsApp webhook
src/app/api/whatsapp/webhook/route.ts - Organizations API
src/app/api/organizations/route.ts - Automations API
src/app/api/automations/route.ts - Templates API
src/app/api/templates/route.ts - Campaigns API
src/app/api/campaigns/route.ts - Products API
src/app/api/products/route.ts - Orders API
src/app/api/orders/route.ts - Statistics API
src/app/api/stats/route.ts
Persistence
- Prisma client
src/lib/prisma.ts - Tenant data store
Other components
- Workspace operator
- Meta Cloud API
- Google Gemini
Connections 34
- Workspace operator → Dashboard shell: uses
- Dashboard shell → Login view: renders
src/app/page.tsx - Dashboard shell → Client workspaces: renders
src/app/page.tsx - Dashboard shell → Workspace switcher: renders
src/app/page.tsx - Dashboard shell → User management: renders
src/app/page.tsx - Dashboard shell → Dashboard overview: renders
src/app/page.tsx - Dashboard shell → AI agent settings: renders
src/app/page.tsx - Dashboard shell → Automation flows: renders
src/app/page.tsx - Dashboard shell → Shared chat inbox: renders
src/app/page.tsx - Dashboard shell → Website chat widget: renders
src/app/page.tsx - Dashboard shell → Broadcast manager: renders
src/app/page.tsx - Dashboard shell → Lead CRM: renders
src/app/page.tsx - Dashboard shell → Product catalog: renders
src/app/page.tsx - Dashboard shell → Orders and invoices: renders
src/app/page.tsx - Dashboard shell → Workspace settings: renders
src/app/page.tsx - Client workspaces → Meta signup: embeds
src/components/ClientManager.tsx - Workspace settings → Meta signup: embeds
src/components/SettingsView.tsx - Meta Cloud API → WhatsApp webhook: sends events
- Meta Cloud API → Meta signup: onboards accounts
- WhatsApp webhook → Tenant data store: updates messages and leads
src/app/api/whatsapp/webhook/route.ts - Chat API → Meta Cloud API: dispatches messages
src/app/api/chat/route.ts - Templates API → Meta Cloud API: syncs templates
src/app/api/templates/route.ts - WhatsApp webhook → Prisma client: queries and writes
src/app/api/whatsapp/webhook/route.ts - Chat API → Prisma client: queries and writes
src/app/api/chat/route.ts - Leads API → Prisma client: queries and writes
src/app/api/leads/route.ts - Organizations API → Prisma client: queries and writes
src/app/api/organizations/route.ts - Automations API → Prisma client: queries and writes
src/app/api/automations/route.ts - Templates API → Prisma client: queries and writes
src/app/api/templates/route.ts - Campaigns API → Prisma client: queries and writes
src/app/api/campaigns/route.ts - Products API → Prisma client: queries and writes
src/app/api/products/route.ts - Orders API → Prisma client: queries and writes
src/app/api/orders/route.ts - Statistics API → Prisma client: queries
src/app/api/stats/route.ts - Prisma client → Tenant data store: persists data
- Google Gemini → WhatsApp webhook: AI replies