@peachai/agent-widget
v1.0.5
Published
Embeddable Peach Agent Widget
Readme
Peach Agent Widget
Embeddable agent widget for the Peach platform.
Install
CDN
<script src="https://cdn.jsdelivr.net/npm/@peachai/agent-widget/dist/peach-agent-widget.umd.js"></script>NPM
npm install @peachai/agent-widgetUse
Script tag
<script src="/dist/peach-agent-widget.umd.js"
data-peach-widget
data-token="YOUR_TOKEN"
data-mode="both"
data-base-url="https://your-peach-host">
</script>Programmatic
import { PeachAgentWidget } from '@peachai/agent-widget'
const widget = new PeachAgentWidget({ token: 'YOUR_TOKEN', baseUrl: 'https://your-peach-host' })
widget.show()Dev
npm i
npm run build
npm run serve:examplesOpen:
- http://localhost:3001/basic.html
- http://localhost:3001/advanced.html
- http://localhost:3001/programmatic.html
