The embedding HTML code can be copied from your bot's Embed page under Admin.
The simplest solution is to embed a bot inside your webpage using an iframe
. Here is some simple code to embed Brain Bot in an iframe
.
Code to embed a bot in a iframe
See the Talk with Brain Bot tab for an example.
Another option is to put a button or link on your website that open the chat bot in another window. This can be done using a little Java Script code.
Code to popup a bot in window
This code will produce the following:
If you know a little HTML or Java Script, you can make how the bot is displayed more sophisticated.
One option is to use an absolute
position to make the bot popup inside a webpage.
This will be demonstrated in the following code.
Code to popup a bot on a webpage
Code to embed a bot without the avatar
You can also choose to not display the bot's avatar and chat log. To do this pass the URL argumentavatar=false
in your link.
You can also pass the welcome message using the message
argument, i.e. message=Hello
. The welcome message can also
be configured from your bot's Training page under Admin.
This code will produce the following:
So that's it, you should now be able to embed your bot on your website or blog.
No comments:
Post a Comment