Prerequisites
- Build a bot with Digital Views. See Digital Views.
-
Enable the Widget SDK channel on your bot by creating or using an existing client app. See Add Widget SDK Channel. Note the following from the Configurations tab:
- Bot Name
- Bot ID
- Client ID
- Client Secret
- If co-hosting with Web SDK, also enable the Web/Mobile Client channel. Note the same four credentials from that channel. See Web SDK Tutorial.
- Publish the bot.
Option A — Host Panels Standalone
-
Download the Web SDK from github.com/Koredotcom/web-kore-sdk and extract all files to
…/SDKApp/sdk. -
Open the
UIfolder and editkore-widgets-config.js. -
Configure
botOptionswith the Widget SDK channel credentials: -
Open
index_widgets.htmlin a browser. The panels render in the page. -
To embed panels in your own website, add the
<div>element fromindex_widgets.htmlto your HTML page.
Option B — Co-Host Panels with Web SDK
-
Download and extract the Web SDK to
…/SDKApp/sdk(same as above). -
Open the
UIfolder and editkore-config.js. -
Configure
botOptionswith the Web/Mobile Client channel credentials: -
Edit
kore-widgets-config.jsand configurebotOptionswith the Widget SDK channel credentials: -
Open
index_widgets_chat.htmlin a browser. The chat window and panels render together.