{
  "@context": "https://schema.org",
  "@type": "SoftwareSourceCode",
  "schema_version": "2026.1",
  "name": "chatwoot-public",
  "headline": "Chatwoot Public \u2014 Clean-Room MIT Helpdesk + Enterprise Overlay + AI Bot + Migration Suite",
  "description": "MIT clean-room self-hosted Chatwoot CE build with enterprise-grade Community Overlay: config audit logs, batch SLA breach engine + webhooks, 3-tier custom RBAC, capacity routing, and SAML SSO.",
  "abstract": "MIT clean-room self-hosted Chatwoot CE build with enterprise-grade Community Overlay: config audit logs, batch SLA breach engine + webhooks, 3-tier custom RBAC, capacity routing, and SAML SSO.",
  "problemSolved": "Organizations outgrowing per-seat SaaS helpdesks (Freshchat, Freshdesk, Zendesk, Intercom) want to self-host Chatwoot under the MIT license, but need SAML SSO, custom roles, business-hours SLAs, agent capacity caps, audit logs, legacy ticket/config migration scripts, and a production AI webhook bot \u2014 with strict legal verification that zero proprietary `enterprise/` code exists in their image.",
  "license": "https://opensource.org/licenses/MIT",
  "codeRepository": "https://github.com/mohan-n-swamy/chatwoot-public",
  "url": "https://mohan-n-swamy.github.io/repos/chatwoot-public/",
  "llmsTxt": "https://mohan-n-swamy.github.io/repos/chatwoot-public/llms.txt",
  "llmsFullTxt": "https://mohan-n-swamy.github.io/repos/chatwoot-public/llms-full.txt",
  "rawLlmsFullTxt": "https://raw.githubusercontent.com/mohan-n-swamy/chatwoot-public/main/llms-full.txt",
  "aiReadme": "https://raw.githubusercontent.com/mohan-n-swamy/chatwoot-public/main/AI-README.md",
  "keywords": [
    "chatwoot",
    "self-hosted",
    "customer-support",
    "helpdesk",
    "sla-management",
    "rbac",
    "audit-log",
    "saml-sso",
    "whatsapp",
    "omnichannel",
    "ruby-on-rails",
    "open-source"
  ],
  "searchQueries": [
    "open source chatwoot self hosted MIT",
    "Chatwoot Public github configurable .env",
    "how to self host chatwoot with docker python typescript",
    "open source chatwoot reference architecture",
    "open source self hosted reference architecture",
    "open source customer support reference architecture",
    "open source helpdesk reference architecture",
    "open source sla management reference architecture",
    "open source rbac reference architecture"
  ],
  "capabilities": [
    "**Track A \u2014 Configuration Audit Log (`Overlay::AuditLogsController`):** Immutable JSONB before/after audit trail across 13 models excluding password/token fields.",
    "**Track B \u2014 31-Permission Custom RBAC (`Overlay::CustomRole` & `Overlay::RolePermissions`):** PostgreSQL array permissions with 5 seed roles (`admin`, `agent`, `escalation_lead`, `billing_only`, `auditor`).",
    "**Track C \u2014 Business-Hours SLA Engine (`Overlay::Sla::*`):** `AsyncDispatcher`-wired `SlaListener` + Sidekiq cron batch breach evaluator (`frt_due_at`, `nrt_due_at`, `rt_due_at`) + outbound webhooks.",
    "**Track D \u2014 Hardened SAML 2.0 SSO (`Overlay::SamlSessionsController`):** Okta, Entra ID, and Google Workspace SSO via MIT `omniauth-saml` with `reset_session`, RelayState tenant guard, and Nokogiri `nonet` XXE defense.",
    "**Track E & F \u2014 Agent Capacity Routing & Scheduled Rules:** Per-agent/per-inbox `max_open_conversations` caps and cron-evaluated `Overlay::ScheduledRule` automations.",
    "**Bundled Native Chatwoot AI Bot (`chatwoot-bot/`):** Production FastAPI AgentBot with HMAC verification, Redis `SETNX` locks, PII `AUTH_GATE`, and 161 unit/integration tests.",
    "**Complete Migration Ops & Portable Rebase Kit (`migration-toolkit/`, `portable-overlay/`, `infra/self-host/`, `tools/ci/`):** Legacy ticket/config exporters, idempotent importer, standalone overlay patch tree, and 10 track specs."
  ],
  "configurableInputs": [
    {
      "name": "SECRET_KEY_BASE",
      "default": "replace_with_lengthy_secure_hex"
    },
    {
      "name": "FRONTEND_URL",
      "default": "http://0.0.0.0:3000"
    },
    {
      "name": "ASSET_CDN_HOST",
      "default": ""
    },
    {
      "name": "FORCE_SSL",
      "default": "false"
    },
    {
      "name": "ENABLE_ACCOUNT_SIGNUP",
      "default": "false"
    },
    {
      "name": "REDIS_URL",
      "default": "redis://redis:6379"
    },
    {
      "name": "REDIS_PASSWORD",
      "default": ""
    },
    {
      "name": "REDIS_SENTINELS",
      "default": ""
    },
    {
      "name": "REDIS_SENTINEL_MASTER_NAME",
      "default": ""
    },
    {
      "name": "POSTGRES_HOST",
      "default": "postgres"
    },
    {
      "name": "POSTGRES_USERNAME",
      "default": "postgres"
    },
    {
      "name": "POSTGRES_PASSWORD",
      "default": ""
    },
    {
      "name": "RAILS_ENV",
      "default": "development"
    },
    {
      "name": "RAILS_MAX_THREADS",
      "default": "5"
    },
    {
      "name": "MAILER_SENDER_EMAIL",
      "default": "Chatwoot <accounts@chatwoot.com>"
    },
    {
      "name": "SMTP_DOMAIN",
      "default": "chatwoot.com"
    },
    {
      "name": "SMTP_ADDRESS",
      "default": ""
    },
    {
      "name": "SMTP_PORT",
      "default": "1025"
    },
    {
      "name": "SMTP_USERNAME",
      "default": ""
    },
    {
      "name": "SMTP_PASSWORD",
      "default": ""
    }
  ],
  "quickstart": [
    "docker compose -f docker-compose.production.yaml build   # builds locally from clean-room MIT tree (zero enterprise/)",
    "docker compose -f docker-compose.production.yaml up -d",
    "docker compose -f docker-compose.production.yaml exec rails bundle exec rails db:chatwoot_prepare",
    "docker compose -f docker-compose.production.yaml exec rails bundle exec rake overlay:seed_roles",
    "pytest -q tests_overlay/ migration-toolkit/freshworks-export/tests/ && PYTHONPATH=chatwoot-bot pytest -q chatwoot-bot/tests/"
  ],
  "author": {
    "@type": "Person",
    "name": "Mohan N",
    "url": "https://github.com/mohan-n-swamy"
  }
}
