How fazer-ai/chatwoot works
Chatwoot fazer.ai is a customer-support platform fork with WhatsApp-focused additions. The main workflow is an agent using the dashboard to manage contacts and conversations, exchange messages through connected channels, and review outcomes in reports. Separate branches cover customer-facing widget conversations, agent-to-agent internal chat, automation and webhooks, and help-center/AI capabilities. The README documents these capabilities; routes and source excerpts show selected entry points, but most controllers and channel implementations were not sampled, so their internal calls are not asserted.
Main entry points: accounts Account APIs · App.vue Dashboard UI · widget Customer widget · webhook_job.rb Webhook delivery
Components 23
Agent workspace
- Dashboard UI
app/javascript/dashboard/App.vue - Account APIs
app/controllers/api/v1/accounts - Contacts
app/controllers/api/v1/accounts/contacts_controller.rb - Conversations
app/controllers/api/v1/accounts/conversations_controller.rb - Agent internal chat
app/controllers/api/v1/accounts/internal_chat
Messaging channels
- Channel integrations
app/controllers/webhooks - WhatsApp messaging
app/controllers/webhooks/whatsapp_controller.rb - Customer widget
app/controllers/api/v1/widget
Automation and AI
- Webhook events
app/listeners/webhook_listener.rb - Webhook delivery
app/jobs/webhook_job.rb - Automation rules
app/controllers/api/v1/accounts/automation_rules_controller.rb - AI assistant tasks
lib/captain/base_task_service.rb - LLM requests
lib/integrations/llm_base_service.rb
Insights and content
- Search
app/services/search_service.rb - Reports
app/controllers/api/v2/accounts/reports_controller.rb - Year in review
app/controllers/api/v2/accounts/year_in_reviews_controller.rb - Help center
app/controllers/public/api/v1/portals
Platform services
- Application database
db/schema.rb - Redis storage
lib/redis/secure_storage.rb
Other components
- Support agents
- WhatsApp connector
- Customers
- Messaging providers
Connections 20
- Support agents → Dashboard UI: use
- Dashboard UI → Account APIs: request APIs
- Account APIs → Contacts: routes contact requests
- Account APIs → Conversations: routes conversation requests
- Support agents → Agent internal chat: chat internally
README.md - Customers → Customer widget: start conversations
- Customer widget → Conversations: supports conversations
- WhatsApp connector → WhatsApp messaging: connects WhatsApp
README.md - Messaging providers → Channel integrations: deliver messages
README.md - Support agents → Automation rules: configure rules
- Webhook events → Webhook delivery: dispatch delivery
README.md - Support agents → AI assistant tasks: use AI agents
README.md - AI assistant tasks → LLM requests: request LLM work
- Support agents → Search: search records
- Support agents → Reports: review reports
- Support agents → Year in review: view annual review
app/controllers/api/v2/accounts/year_in_reviews_controller.rb - Customers → Help center: browse articles
- Account APIs → Application database: access records
- Webhook delivery → Messaging providers: send webhooks
README.md - LLM requests → Redis storage: cache responses
lib/integrations/llm_base_service.rb