In order to install a Webchat Plugin, we provide two different ways:
- Install in Cognigy.AI
- Install on webpage
Install in Cognigy.AI
There are two steps to do in order to use one of the released Webchat Plugins.
Copy Webchat Plugin File (URL)
- Open the Webchat Plugins Overview page
- Copy the link address of the wanted Webchat Plugin:
One can copy the link address of the Download button by right-clicking on it and then click Copy Link Address in the menu that will be opened by the web browser.
Paste Webchat Plugin File (URL)
- Login to Cognigy.AI
- Navigate to
Endpoints
: - Create a new Webchat Endpoint or use an existing one
- Scroll down and click on
Webchat Configuration
and paste the copied URL:
Install on webpage
Since the Cognigy Webchat is already embedded in a specific website, the Webchat Plugin (Bundle) JavaScript File can be imported inside the index.html
.
Download Webchat Plugin File
- Open the Webchat Plugins Overview page
- Click on Download for the wanted Webchat Plugin:
Import Webchat Plugin File
- Open the
index.html
file of the webpage. It is the sameindex.html
file where the Cognigy Webchat is embedded. - Add the HTML import statement to the code:
<script src="./path-to/rating.webchat-plugin.js"></script>
Please make sure that you first import the Cognigy Webchat Widget and then the Cognigy Webchat Plugin that should be used. Please find more information about embedding the WebchatWdiget to a webpage here.
Comments
0 comments