Syllable Web Chat embedded script
npm install @syllableai/webchatA lightweight web chat widget that can be easily integrated into approved website.
bash
npm install @syllableai/webchat
`$3
You can include the web chat directly from our CDN. Replace [VERSION] with the specific version you want to use (e.g., 1.0.0):
`html
`Or use the latest version:
`html
`Usage
1. Add an optional container div to your HTML where iframe will be rendered:
`html
`
In some instances you may want to adjust z-index of this div container.2. Initialize the chat bot:
#### In Javascript or Typescript
`typescript
import SyllableWebChat from '@syllableai/webchat';const webChat = new SyllableWebChat({
clientId: 'MY_CLIENT_ID'
});
webChat.init();
`#### Directly in HTML
`html
async
id="syllable-webchat-script"
src="https://cdn.syllable.ai/scripts/webchat/syllable-webchat.latest.min.js"
/>
``