Skip to content

SDK

About

SDK is a client library for embed Dialogshift webchat to webpages. SDK allows to embed Dialogshift webchat to webpages, customize and control chat widgets, change conversational flow as you need, communicate with Conversational AI platform. Webchat widgets are fully responsive for desktop, tablet or mobile pages. SDK has native JavaScript and TypeScript versions.

SDK Documentation

Full SDK documentation you can find on GitHub https://github.com/dialogshift/dialogshift-webchat-sdk

SDK example

...
<script
  type="text/javascript"
  src="https://cdn.dialogshift.com/sdk/latest/dialogshift-webchat-sdk.umd.js"
></script>
<link
  rel="stylesheet"
  type="text/css"
  href="https://cdn.dialogshift.com/sdk/latest/dialogshift-webchat-sdk.min.css"
/>
<script type="text/javascript">
  const client = Dialogshift.instance({
    id: '%id%',
    teaserText: 'Hi, can I help you?',
    isTeaserVisible: true,
    locale: 'en',
  })

  setTimeout(() => {
    client.setUnreadCounter(1)
  }, 3000)
</script>
...