@sippet-ai/widget
v0.0.2
Published
Sippet AI chat and voice widget for external websites.
Maintainers
Readme
@sippet-ai/widget
Sippet AI is an AI-powered customer communication platform for building and operating real-time agents across voice and chat. This package embeds a Sippet AI agent on any website so visitors can start a conversation by text or voice.
Install
npm install @sippet-ai/widgetESM usage
import "@sippet-ai/widget";
const widget = document.createElement("sippet-widget");
widget.setAttribute("agent-id", "YOUR_AGENT_ID");
widget.setAttribute("publishable-key", "YOUR_PUBLISHABLE_KEY");
document.body.append(widget);Script loader usage
Serve dist/loader.js, dist/index.js, and dist/chunks/* from the same public directory, then embed:
<script
type="module"
src="https://cdn.sippet.ai/sippet-widget/loader.js"
data-agent-id="YOUR_AGENT_ID"
data-publishable-key="YOUR_PUBLISHABLE_KEY"
></script>Find the AI agent ID in the Sippet console URL after /ai-agents/ when that
agent is open. Never put Sippet secret API keys in browser code.
