【发布时间】:2018-06-19 11:37:28
【问题描述】:
<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.botframework.com/botframework-webchat/latest/botchat.css" rel="stylesheet" />
</head>
<body>
<div id="bot"/>
<script src="https://cdn.botframework.com/botframework-webchat/latest/botchat.js"></script>
<script>
BotChat.App({
directLine: { secret: direct_line_secret },
user: { id: 'userid' },
bot: { id: 'botid' },
resize: 'detect'
}, document.getElementById("bot"));
</script>
</body>
</html>
我有这段代码可以使用直接 Line API 而不是通常的 iframe 将机器人嵌入为实时聊天,但是当我输入我的直接密钥时,机器人会占据整个网页。我需要它出现在网页的右下角,并在用户点击它时作为生活聊天弹出。请有人指导我实现这一目标。谢谢
【问题讨论】:
标签: botframework direct-line-botframework