npm.io
0.1.9 • Published 5 years ago

@talkdata/webchatwidget

Licence
MIT
Version
0.1.9
Deps
2
Size
8.7 MB
Vulns
0
Weekly
0

web chat widget

  • this repo is widget code that can be embedded as a script on any website

  • it appears as a pop up window from an icon on the bottom left of the website

  • it has chat capabilities that link with our chat server to answer simple questions on a website

  • this code is based on ionic's stencil web component generator and example code here https://github.com/assister-ai/assister

  • to install, copy the script from this sample index html into your website index.html

  • edit the url to point to the back end chat server that handles messages

  • edit the root: config variables to adjust styling

to run

(need to have stencil and ionic core installed) npm install @stencil/core@latest --save-exact npm install @ionic/core@latest --save-exact

npm install
npm start

or (with the simple webserver serve installed)

npm run build
cd www
serve

To build the component for production, run:

npm run build

To run the unit tests for the components, run:

npm test

Need help? Check out the Stencil docs here.

Keywords