...
Navigate to the Personal Assistant web page.
Go to the Chatbots page.
Click the three-dot menu on the right side of the chatbot one wishes to integrate.
Select
Code Snippet
.Save the code snippet in a JavaScript file (.js) on the web server where ones web application is deployed. The file name is not important, but for the purpose of this guide, we will assume it is named
chatbot_client.js
. Note that when
Overview of Code Snippets
...
Public Chatbot
Create a script of type="module"
that will handle communication with the chatbot as well as rendering of messages.
...
The attached ZIP archives contain minimal chatbot integrations following the guide above. Each of them requires supplying your own chatbot_client.js
, after which they will be fully functional and can be used as reference for you to integrate the chatbots into your own apps.
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|