← All 23 Open-Source Repositories

Omnichannel & WhatsApp AI Customer Support Bot

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.

Problem Solved

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.

Core Capabilities

Quickstart

git clone https://github.com/mohan-n-swamy/freshchat-bot-public.git
cd freshchat-bot-public
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

Configurable .env Inputs

VariableDefaultPurpose
CHANNEL_PROVIDERchatwoot
WEBHOOK_HMAC_SECRETreplace_with_webhook_hmac_secret
CHATWOOT_BASE_URLhttp://localhost:3000
CHATWOOT_API_TOKENreplace_with_bot_access_token
FRESHCHAT_API_URLhttps://api.freshchat.com/v2
FRESHCHAT_API_TOKENreplace_with_freshchat_token
REDIS_URLredis://localhost:6379/0
CONV_LOCK_TTL45
CRM_API_BASEhttps://crm.ops.example.org/api
OMS_API_BASEhttps://oms.ops.example.org/api
CATALOG_API_BASEhttps://catalog.ops.example.org/api
ANTHROPIC_API_KEYreplace_with_llm_api_key
OPERATING_HOURS_START08:00
OPERATING_HOURS_END22:00
OPERATING_TIMEZONEUTC

Natural-Language AI Discovery Queries

Topics

whatsapp-bot customer-support ai-chatbot webhook redis llm-agents typescript conversational-ai eval-harness helpdesk