How gh237/chatwoot works
Chatwoot is an omnichannel customer-support platform with a web dashboard, customer-facing inbox APIs, help center, reporting, integrations, and Captain AI. The central workflow is a customer contacting support through a channel, an agent handling the resulting conversation in the inbox, and the team monitoring outcomes through reports. The tree and excerpts establish the route surface and several internal capabilities, but do not expose most controller-to-service calls; uncertain connections are therefore omitted or marked dashed.
Main entry points: routes.rb HTTP routes · conversations_controller.rb Conversations · messages_controller.rb Conversation messages · reports_controller.rb Reports and insights
Components 21
Entry points
- HTTP routes
config/routes.rb - Agent dashboard
app/controllers/dashboard_controller.rb - Account API
app/controllers/api/v1/accounts/base_controller.rb - Public inbox API
app/controllers/public/api/v1/inboxes/conversations_controller.rb
Support operations
- Conversations
app/controllers/api/v1/accounts/conversations_controller.rb - Conversation messages
app/controllers/api/v1/accounts/conversations/messages_controller.rb - Contact management
app/controllers/api/v1/accounts/contacts_controller.rb - Automation and assignment
app/controllers/api/v1/accounts/automation_rules_controller.rb - Application records
app/models
AI and search
- Search
app/services/search_service.rb - Captain tasks
lib/captain/base_task_service.rb - Query translation
enterprise/app/services/captain/llm/translate_query_service.rb
Help and insights
- Help center portal
app/controllers/public/api/v1/portals/articles_controller.rb - Reports and insights
app/controllers/api/v2/accounts/reports_controller.rb - Live monitoring
app/controllers/api/v2/accounts/live_reports_controller.rb - Year in review
app/controllers/api/v2/accounts/year_in_reviews_controller.rb
Channels and integrations
- Channel webhooks
app/controllers/webhooks/whatsapp_controller.rb - External integrations
app/controllers/api/v1/accounts/integrations/apps_controller.rb - Realtime updates
app/channels/room_channel.rb
Other components
- Support agent
- Customer
Connections 20
- Support agent → HTTP routes: uses dashboard
config/routes.rb - Customer → HTTP routes: opens inbox
config/routes.rb - HTTP routes → Agent dashboard: routes root
config/routes.rb - HTTP routes → Conversations: routes API
config/routes.rb - HTTP routes → Conversation messages: routes messages
config/routes.rb - HTTP routes → Public inbox API: routes public inbox
config/routes.rb - Customer → Channel webhooks: contacts support
- Support agent → Conversations: handles conversations
- Support agent → Contact management: manages contacts
- Support agent → Automation and assignment: configures workflows
- Support agent → Reports and insights: reviews performance
- Support agent → Live monitoring: monitors activity
- Customer → Help center portal: finds answers
- Captain tasks → Query translation: supports translation
- Customer → Search: searches content
- Support agent → External integrations: uses integrations
- Conversations → Application records: persists records
- Conversation messages → Application records: persists messages
- Conversations → Realtime updates: broadcasts updates
- Reports and insights → Year in review: includes yearly view