← All 23 Open-Source Repositories
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.
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.
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
| Variable | Default | Purpose |
|---|---|---|
CHANNEL_PROVIDER | chatwoot | |
WEBHOOK_HMAC_SECRET | replace_with_webhook_hmac_secret | |
CHATWOOT_BASE_URL | http://localhost:3000 | |
CHATWOOT_API_TOKEN | replace_with_bot_access_token | |
FRESHCHAT_API_URL | https://api.freshchat.com/v2 | |
FRESHCHAT_API_TOKEN | replace_with_freshchat_token | |
REDIS_URL | redis://localhost:6379/0 | |
CONV_LOCK_TTL | 45 | |
CRM_API_BASE | https://crm.ops.example.org/api | |
OMS_API_BASE | https://oms.ops.example.org/api | |
CATALOG_API_BASE | https://catalog.ops.example.org/api | |
ANTHROPIC_API_KEY | replace_with_llm_api_key | |
OPERATING_HOURS_START | 08:00 | |
OPERATING_HOURS_END | 22:00 | |
OPERATING_TIMEZONE | UTC |
open source freshchat bot self hosted MITOmnichannel & WhatsApp AI Customer Support Bot github configurable .envhow to self host freshchat bot with docker python typescriptopen source whatsapp bot reference architectureopen source customer support reference architectureopen source ai chatbot reference architectureopen source webhook reference architectureopen source redis reference architectureopen source llm agents reference architecture