OFFSHORE SPEND / ONINEE SHARED CHATBOT — integration handover
The supplied reference pages identify the existing widget script as ../assets/oninee-ai-chat.js?v=6e2a10694afc and public endpoint https://dashboard.oninee.com/ai-chat/public (data-oninee-mode="public"). The actual widget source and server implementation are not in R3/R4. Do not deploy an invented or untested API request.
Every Offshore Spend page now has html[data-support-site="offshore-spend"] and data-support-brand, and a meta name="offshore-support-site". These are local context markers only. No chat script or data collection is enabled by R4.
To integrate: copy the verified existing widget asset and inspect its request contract. Extend the public chat server to choose product knowledge according to an approved originating hostname (offshorespend.com and optionally www.offshorespend.com; oninee.com and other existing approved hosts remain Oninee). Configure a strict CORS origin allowlist if cross-origin requests are used. Do not trust a client-supplied brand field for authorisation or account data; treat it as a presentation hint only. Unknown origins should fail closed. Import offshore-spend-knowledge.json into the actual knowledge/config format; preserve Oninee’s existing data separately. Verify an Offshore Spend question and an Oninee question from each site, correct identity, fee amounts, safe handling of account inquiries, no leakage of secrets, error states and rate limits. Update the privacy notice before enabling the chatbot. No server changes are included.
