JS API and Components
The Parsewise widget exposes a public JS API via window.Parsewise. You can open and close the chat programmatically, subscribe to widget events and use web components inside skills.
Sections
- Widget methods — open / close / destroy and auto-init.- Events — CustomEvents emitted by the widget and web components.
- Web components — [data-action], [data-card], [data-suggest-input] and more.
Install
The widget automatically creates window.Parsewise global after the script loads:<script>
window.ParsewiseConfig = { shopId: "YOUR_SHOP_ID" };
</script>
<script async src="https://releases.parsewise.ru/widget/latest/widget.iife.js"></script>