Want visitors on your page to talk to your AI without leaving the site? OniPin offers an embeddable widget that works on any website.
Widget code
Add this before </body>:
<script src="https://onnivers.store/widget.js" data-pin="onp_your_pin" async></script>
Replace onp_your_pin with the pin you receive when signing up for OniPin.
What does it do?
- Floating bubble with your brand
- Real-time chat with your Oni configured in MY AI
- Automatic discovery — AI agents detect your pin on the page
Compatibility
Works on WordPress, Shopify, Wix, static HTML, React, Vue, and any site that allows a <script> tag.
In React (official package)
npm install onipin-react
import { OniChat } from "onipin-react";
<OniChat pin="onp_your_pin" />
// or embedded: <OniChat pin="onp_your_pin" mode="iframe" height={640} />
Alternatives to the widget
- Direct link:
https://onnivers.store/c/onp_your_pin - QR code downloadable from the dashboard
- Node / Python SDK:
onipin-js·pip install onipin - HTTP API
/v1/chat/{pin}for custom bots