How abhishekahirwar123/whatsapp-business-app works
wacrm is a self-hostable WhatsApp CRM. Its main operational loop is receiving WhatsApp webhooks, resolving customer identity and conversation state, then triggering automations and integrations; agents work conversations in a shared inbox. The README also documents contacts, pipelines, broadcasts, AI assistance, team access, a public API, and an MCP server. Several UI-to-route and storage connections are not evidenced by the excerpts, so the graph focuses on documented capabilities and visible dispatches rather than assuming those links.
Main entry points: webhook/route.ts Inbound webhook · inbox/page.tsx Shared inbox · broadcasts/page.tsx Broadcasts · send/route.ts WhatsApp sending
Components 19
Customer engagement
- Shared inbox
src/app/(dashboard)/inbox/page.tsx - Inbound webhook
src/app/api/whatsapp/webhook/route.ts - Broadcasts
src/app/(dashboard)/broadcasts/page.tsx - WhatsApp sending
src/app/api/whatsapp/send/route.ts - Meta API client
src/lib/whatsapp/meta-api.ts
CRM operations
- Contact identity
src/lib/whatsapp/wa-identity.ts - Contacts and tags
src/app/(dashboard)/contacts/page.tsx - Sales pipelines
src/components/pipelines/pipeline-board.tsx - Activity dashboard
src/app/(dashboard)/dashboard/page.tsx
Automation and AI
- Automation runner
src/lib/automations/engine.ts - Flow runner
src/lib/flows/engine.ts - AI assistance
src/lib/ai/auto-reply.ts
Access and integrations
- Team and roles
src/lib/auth/account.ts - Public REST API
src/app/api/v1/messages/route.ts - MCP server
mcp-server/src/index.ts - Supabase
- Outbound webhooks
src/lib/webhooks/deliver.ts
Other components
- CRM agent
- WhatsApp Business
Connections 19
- WhatsApp Business → Inbound webhook: delivers events
README.md - Inbound webhook → Contact identity: resolves identity
src/app/api/whatsapp/webhook/route.ts - CRM agent → Shared inbox: handles conversations
README.md - CRM agent → Contacts and tags: manages contacts
README.md - CRM agent → Sales pipelines: manages deals
README.md - CRM agent → Broadcasts: creates broadcasts
README.md - Broadcasts → WhatsApp Business: sends templates
README.md - Shared inbox → WhatsApp sending: sends replies
- WhatsApp sending → Meta API client: calls client
src/app/api/whatsapp/send/route.ts - Meta API client → WhatsApp Business: sends messages
README.md - Inbound webhook → Automation runner: dispatches triggers
src/app/api/whatsapp/webhook/route.ts - Inbound webhook → Flow runner: dispatches flows
src/lib/flows/engine.ts - Inbound webhook → AI assistance: may trigger replies
src/app/api/whatsapp/webhook/route.ts - Inbound webhook → Outbound webhooks: dispatches events
src/app/api/whatsapp/webhook/route.ts - CRM agent → Activity dashboard: reviews activity
README.md - CRM agent → Public REST API: uses API
README.md - CRM agent → MCP server: uses assistant tools
README.md - CRM agent → Team and roles: manages team
README.md - Team and roles → Supabase: reads account
src/lib/auth/account.ts