How arnasdon/wacrm works
wacrm is a self-hostable WhatsApp CRM. Agents work from a shared inbox and manage contacts and deals; inbound WhatsApp events also drive automations and optional AI replies, while outbound messaging supports broadcasts. The product additionally provides flows, account/team controls, dashboards, a public REST API, and an MCP server. The graph combines README-documented capabilities with source-index references and excerpts; unsampled feature internals are represented at their existing route or component paths, and unverified links are omitted.
Main entry points: route.ts WhatsApp events · engine.ts No-code automations · server.ts Supabase data and auth · meta-api.ts Meta WhatsApp API
Components 25
Customer engagement
- CRM dashboard
src/app/(dashboard)/dashboard/page.tsx - Shared inbox
src/app/(dashboard)/inbox/page.tsx - Conversation tools
src/components/inbox/message-thread.tsx - WhatsApp events
src/app/api/whatsapp/webhook/route.ts - WhatsApp sending
src/app/api/whatsapp/send/route.ts - Meta WhatsApp API
src/lib/whatsapp/meta-api.ts - Broadcast campaigns
src/app/(dashboard)/broadcasts/page.tsx - Broadcast dispatch
src/app/api/whatsapp/broadcast/route.ts
CRM operations
- Contacts and tags
src/app/(dashboard)/contacts/page.tsx - Contact import
src/components/contacts/import-modal.tsx - Sales pipelines
src/components/pipelines/pipeline-board.tsx
Automation and AI
- No-code automations
src/lib/automations/engine.ts - Automation builder
src/components/automations/automation-builder.tsx - Flow runner
src/lib/flows/engine.ts - Flow builder
src/components/flows/flow-builder.tsx - AI replies and knowledge
src/lib/ai/auto-reply.ts - AI configuration
src/components/settings/ai-knowledge.tsx
Platform access
- Teams and roles
src/lib/auth/account.ts - Session and account state
src/hooks/use-auth.tsx - Public REST API
src/app/api/v1/messages/route.ts - MCP server tools
mcp-server/src/tools/read.ts - Supabase data and auth
src/lib/supabase/server.ts
Other components
- CRM agents
- API and MCP clients
- WhatsApp users
Connections 25
- CRM agents → Shared inbox: work conversations
README.md - CRM agents → Contacts and tags: manage contacts
README.md - CRM agents → Sales pipelines: manage deals
README.md - CRM agents → Broadcast campaigns: create campaigns
README.md - Shared inbox → Conversation tools: renders tools
- WhatsApp users → WhatsApp events: send events
README.md - WhatsApp events → No-code automations: runs triggers
src/app/api/whatsapp/webhook/route.ts - WhatsApp events → Flow runner: dispatches inbound
src/app/api/whatsapp/webhook/route.ts - WhatsApp events → AI replies and knowledge: invokes replies
src/app/api/whatsapp/webhook/route.ts - WhatsApp events → Contacts and tags: resolves contacts
src/app/api/whatsapp/webhook/route.ts - WhatsApp sending → Meta WhatsApp API: sends messages
src/app/api/whatsapp/send/route.ts - Broadcast dispatch → Meta WhatsApp API: dispatches templates
src/app/api/whatsapp/broadcast/route.ts - Broadcast campaigns → Broadcast dispatch: starts sends
- No-code automations → Meta WhatsApp API: sends replies
- No-code automations → Supabase data and auth: reads and updates
src/lib/automations/engine.ts - Flow runner → Supabase data and auth: updates run state
src/lib/flows/engine.ts - No-code automations → WhatsApp sending: sends via
- CRM agents → CRM dashboard: views activity
README.md - CRM agents → Automation builder: builds automations
README.md - CRM agents → Flow builder: builds flows
README.md - CRM agents → AI configuration: configures knowledge
README.md - Session and account state → Supabase data and auth: loads session
src/hooks/use-auth.tsx - Teams and roles → Supabase data and auth: checks account
src/lib/auth/account.ts - API and MCP clients → Public REST API: calls endpoints
README.md - API and MCP clients → MCP server tools: uses MCP tools
README.md