Site assistant (Marty 2026-11-15): chat widget in the 5xYourTeam draft-night look on every page, CANNED + FACTS from this repo's code (position $10 one time, 5 picks, sponsor 25% + L2-5 5% + pot 10% + company 45%, pass-up 20 places, Monday 7 PM Central draft, earned order, 3-day return, 48 h hold, 10 open picks, no contact data), retrieval over the shared network knowledge base on the hub (netkb.js, home entries boosted, another site named = its answer), reasoning off, account problems hand off to network support. chatbot.test 187, unit 62/62, smoke 160/160, iap-tank 35/35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -82,3 +82,11 @@ the coach's line. Picks keep their 3-day window there too; whichever sweep runs
|
||||
|
||||
Hub `HUB_SITES` entry `fivex` + secret; `TANK_MODE=iap` + `DRAFT_PARTNER_SECRET` + `IAP_URL` (above); the network-sites list
|
||||
and LinkSpin `nw5x`; the contract on chain with the prize wallet; DOCSTORE_URL; old-member reconciliation; PolHunter mission.
|
||||
|
||||
## Site assistant (2026-11-15)
|
||||
|
||||
Chat widget on every page (`public/assets/chat.js` + `chat.css` in the draft-night look). `chatbot.js` holds what it knows (CANNED +
|
||||
FACTS from this repo's code); `chatcore.js`, `kb.js` (`kb.json` = a MySQL document) and `netkb.js` (the shared network knowledge on
|
||||
the hub) are the same files on every rebuilt site. OpenRouter key: `/app/data/openrouter.key` on the volume. Account problems hand off
|
||||
to `https://instantadpay.com/support?from=fivex`. Admin API (x-admin-token): `/api/admin/kb`, `/api/admin/kb/<id>`,
|
||||
`/api/admin/kb/test`, `/api/admin/kb/network?refresh=1&publish=1`. Test: `node qa/chatbot.test.mjs` (Q&A in `qa/chat-qa.json`).
|
||||
|
||||
Reference in New Issue
Block a user