@eworx-org/ccbot-embed
v0.1.0
Published
Standalone browser embed package for the Content Cloud chatbot.
Downloads
103
Readme
@eworx-org/ccbot-embed
Standalone browser embed package for mounting the chatbot widget into a page.
Install
pnpm add @eworx-org/ccbot-embedUsage
import { mount } from '@eworx-org/ccbot-embed';
const widget = mount({
target: '#ccbot-container',
config: {
apiBaseUrl: 'https://example.test',
classNames: {
anchor: 'my-chat-anchor',
content: 'my-chat-content',
},
},
auth: { tokenEndpoint: '/ccbot/api/token' },
});
widget.unmount();The browser bundle also exposes window.CCBot via @eworx-org/ccbot-embed/browser.
