Site assistant (Marty 2026-11-15): chat widget in the ViralAdBlitz look on every page, CANNED + FACTS from this repo's code (Boost $5/500 views, 10% x 5 + 50% company, 20 places, 30-day delivery, ad limits, verified views), retrieval over the shared network knowledge base on the hub (netkb.js publishes this site's entries and reads the others', home entries boosted), OpenRouter deepseek-v4-flash with reasoning off, account problems hand off to network support. kb.json is a MySQL document. qa/chatbot.test.mjs 195 pass, smoke 198/198
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,3 +41,13 @@ Admin: `/admin` with the `ADMIN_TOKEN` (status, Boost delivery, member lookup, a
|
||||
Coolify app `p5abaw5evbtf9qpk0wbv0mfd` (compose, Crypto Projects/production, volume vab-data, connect_to_docker_network on) on https://vab.saasy.top, MySQL `6dgur7sbgbwcawlxen6du1jr` (viraladblitz-mysql, binlog expiry 3 h, in /root/db-hourly-dump.sh). Repo git.saasy.top/marty/viraladblitz (contracts: marty/viraladblitz-contracts, private). SITE_HOST=vab.saasy.top, TG_* empty (no sale cards), HUB_ENABLED=1, KEEPER_KEY from /root/.vab-keeper-key, ADMIN_TOKEN /root/.vab-admin-token, HUB_SECRET /root/.vab-hub-secret (root-only on core).
|
||||
|
||||
Domain switch DONE 2026-11-15 ~8 AM CT: Coolify domains viraladblitz.com + www + vab.saasy.top, SITE_HOST=viraladblitz.com, TG_* from VBB (payments topic 632242), IAP VAB_URL, hub LOOKUP_SITES vab url (NETWORK_SITES with the hub deploy), Reown allowlist, rhi zone apex A 140.99.254.14 + MX mail.viraladblitz.com A 89.116.149.103, old crons off, old members reconciled on the hub (108 sponsors filled, 330 quiet joins, 6 bots blocked), oldrefs 2,351.
|
||||
|
||||
## Site assistant (2026-11-15)
|
||||
|
||||
Chat widget on every page (`public/assets/chat.js` + `chat.css` in this site's look). `chatbot.js` holds what it knows (CANNED
|
||||
instant answers + FACTS, written from this repo's code); `chatcore.js` (engine), `kb.js` (BM25 knowledge base, `kb.json` = a MySQL
|
||||
document) and `netkb.js` (the shared network knowledge on the hub: publishes this site's entries, reads the other sites') are the same
|
||||
files on every rebuilt site. OpenRouter key: `/app/data/openrouter.key` on the volume (copied from InstantAdPay). Account problems hand
|
||||
off to network support (`https://instantadpay.com/support?from=viraladblitz`). 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`). House rule: a feature change updates CANNED + FACTS and KNOWLEDGE_DATE in the same commit.
|
||||
|
||||
Reference in New Issue
Block a user