0

我已将 ms bot 框架 webchat(node js) 集成到网页中。我正在使用 iframe 传递登录的用户信息。

例如:像下面这样

<iframe id="myFrame" src='https://webchat.botframework.com/embed/
testbot?s=secret_code&username=admin&userid=1234'></iframe>

谁能指导我,我如何从 bot.xml 读取这些参数值。

提前致谢。

4

1 回答 1

0

如果您在 iframe 的查询参数中提供用户名和用户 ID,则活动的 .From 属性将具有以下值:

<iframe style="width:300px;height:400px;" src='https://webchat.botframework.com/embed/mybotid?s=mybotsecret&username=adminxxx&userid=1234'></iframe>

在此处输入图像描述

于 2018-11-19T18:12:34.560 回答