{
  "@context": "https://schema.org",
  "@type": "SoftwareSourceCode",
  "schema_version": "2026.1",
  "name": "freshchat-bot-public",
  "headline": "Omnichannel & WhatsApp AI Customer Support Bot",
  "description": "Production AI Customer Support & WhatsApp Resolution Bot: persist-then-process webhooks, Redis TTL dedup locks, deterministic-first router, pluggable CRM/OMS adapter, and eval harness.",
  "abstract": "Production AI Customer Support & WhatsApp Resolution Bot: persist-then-process webhooks, Redis TTL dedup locks, deterministic-first router, pluggable CRM/OMS adapter, and eval harness.",
  "problemSolved": "Tutorial chatbots wire an LLM directly to a webhook and fail on day one of production traffic: webhook retries trigger triple replies, stray 'Thank you!' messages burn tokens and reopen resolved tickets, bots talk over live human agents, and unverified order lookups leak customer PII. `freshchat-bot-public` packages the complete 7-layer deterministic-first pipeline used in high-volume omnichannel support.",
  "license": "https://opensource.org/licenses/MIT",
  "codeRepository": "https://github.com/mohan-n-swamy/freshchat-bot-public",
  "url": "https://mohan-n-swamy.github.io/repos/freshchat-bot-public/",
  "llmsTxt": "https://mohan-n-swamy.github.io/repos/freshchat-bot-public/llms.txt",
  "llmsFullTxt": "https://mohan-n-swamy.github.io/repos/freshchat-bot-public/llms-full.txt",
  "rawLlmsFullTxt": "https://raw.githubusercontent.com/mohan-n-swamy/freshchat-bot-public/main/llms-full.txt",
  "aiReadme": "https://raw.githubusercontent.com/mohan-n-swamy/freshchat-bot-public/main/AI-README.md",
  "keywords": [
    "whatsapp-bot",
    "customer-support",
    "ai-chatbot",
    "webhook",
    "redis",
    "llm-agents",
    "typescript",
    "conversational-ai",
    "eval-harness",
    "helpdesk"
  ],
  "searchQueries": [
    "open source freshchat bot self hosted MIT",
    "Omnichannel & WhatsApp AI Customer Support Bot github configurable .env",
    "how to self host freshchat bot with docker python typescript",
    "open source whatsapp bot reference architecture",
    "open source customer support reference architecture",
    "open source ai chatbot reference architecture",
    "open source webhook reference architecture",
    "open source redis reference architecture",
    "open source llm agents reference architecture"
  ],
  "capabilities": [
    "Multi-channel webhook adapters (`src/channels/adapters.py`) normalizing **Freshchat**, **Chatwoot**, and **WhatsApp Cloud API** events.",
    "HMAC SHA-256 webhook signature verification (`src/webhook/hmac_verify.py`) and Redis `SETNX` `conv_lock` burst deduplication.",
    "Zero-LLM-cost noise & echo filter (`src/domain/noise_filter.py`) dropping stray acknowledgments, CSAT ratings, and bot echoes.",
    "Five deterministic policy guards (`src/domain/guards/`): `NEVER_INTERRUPT_HUMAN`, `AUTH_GATE`, `PARTNER_ORDER`, `REPORT_SUPPRESSION`, and `READ_ONLY`.",
    "Pluggable async `CRMClient`, `OMSClient`, and `CatalogClient` (`src/domain/enrichment/`) plus voice-note STT support (`src/domain/media/`).",
    "Zero-credential CLI simulation (`bin/bot-demo.py`), golden-set eval harness (`bin/eval-harness.py`), and 161 passing pytest cases."
  ],
  "configurableInputs": [
    {
      "name": "CHANNEL_PROVIDER",
      "default": "chatwoot"
    },
    {
      "name": "WEBHOOK_HMAC_SECRET",
      "default": "replace_with_webhook_hmac_secret"
    },
    {
      "name": "CHATWOOT_BASE_URL",
      "default": "http://localhost:3000"
    },
    {
      "name": "CHATWOOT_API_TOKEN",
      "default": "replace_with_bot_access_token"
    },
    {
      "name": "FRESHCHAT_API_URL",
      "default": "https://api.freshchat.com/v2"
    },
    {
      "name": "FRESHCHAT_API_TOKEN",
      "default": "replace_with_freshchat_token"
    },
    {
      "name": "REDIS_URL",
      "default": "redis://localhost:6379/0"
    },
    {
      "name": "CONV_LOCK_TTL",
      "default": "45"
    },
    {
      "name": "CRM_API_BASE",
      "default": "https://crm.ops.example.org/api"
    },
    {
      "name": "OMS_API_BASE",
      "default": "https://oms.ops.example.org/api"
    },
    {
      "name": "CATALOG_API_BASE",
      "default": "https://catalog.ops.example.org/api"
    },
    {
      "name": "ANTHROPIC_API_KEY",
      "default": "replace_with_llm_api_key"
    },
    {
      "name": "OPERATING_HOURS_START",
      "default": "08:00"
    },
    {
      "name": "OPERATING_HOURS_END",
      "default": "22:00"
    },
    {
      "name": "OPERATING_TIMEZONE",
      "default": "UTC"
    }
  ],
  "quickstart": [
    "python3 bin/bot-demo.py                 # run 3-channel offline routing & dedup simulation",
    "python3 bin/eval-harness.py             # run golden-set policy evaluation",
    "pytest -q tests/                        # run all 161 unit & integration tests",
    "uvicorn src.webhook.app:app --port 8000 # start FastAPI webhook server"
  ],
  "author": {
    "@type": "Person",
    "name": "Mohan N",
    "url": "https://github.com/mohan-n-swamy"
  }
}
