【发布时间】:2018-11-07 00:55:40
【问题描述】:
<!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>
我在 github 上看到了这段代码,使用直线 API 将我的机器人集成到我的网站。我在 azure 上创建了一个直线通道并复制了直线密钥和我的 botid,但我不知道用户 ID 是什么。有人可以帮我吗?我已经将我的机器人作为应用托管在 azure 上
【问题讨论】:
标签: c# botframework