vue.js智能客服聊天机器人框架BotUI是一款类似机器人客服在线聊天回答提问效果的智能问答聊天网页特效。
js代码
<script type="text/javascript" src="js/vue.min.js"></script>
<script type="text/javascript" src="dist/botui.min.js"></script>
<script type="text/javascript">
var homeBot = BotUI('home-demo');
homeBot.message.add({
content: '大家好!'
}).then(function () {
return homeBot.message.add({
delay: 1500,
content: '想看BotUI能做什么?'
});
}).then(function () {
return homeBot.action.button({
delay: 1000,
action: [{
text: '好的!',
value: 'sure'
}, {
text: '不用了😒',
value: 'skip'
}]
});
}).then(function (res) {
if(res.value == 'sure') {
tutorial();
}
if(res.value == 'skip') {
end();
}
});
</script>
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791