我们希望通过一对一聊天机器人为 Teams 用户提供服务。此机器人应立即出现,供所有 Teams 用户与之聊天。由于此机器人/应用程序不在特定的团队上下文中使用(没有频道对话,没有选项卡等,只有一对一聊天),根本不需要将此机器人添加到团队中。
是否可以构建仅适用于 1:1 聊天的机器人?如何使其可用,以便无需将其添加到特定团队?
我发现,说明在1测试机器人:1个聊天,而无需将其添加到一个特定的团队在这里。是否有类似的生产部署模型?
编辑:
也许这个问题可以更好地表述为“机器人是否只能侧载到个人范围”?也许这只是团队 UI 问题,因为我目前必须通过团队的应用程序菜单旁加载应用程序:
商店体验可能会有所不同,因为我可以选择在个人范围内“获取应用程序”。
是否也可以通过个人范围进行侧载?
目前,它非常隐蔽。我们正在完成工作以使这更简单,我将在下面解释,但现在是如何做到这一点。
如果您在 Bot Framework 中查看机器人的设置,您将看到一个 Bot Framework 频道列表(不要与 Teams 频道混淆):
"Microsoft Teams" is a hyperlink in the form https://teams.microsoft.com/l/chat/0/0?users=28:<bot_id>
. For example, here's AzureBot which is a 1:1 bot. (I wouldn't recommend this to your end users, but as a developer, you can also start a conversation using the new chat icon and paste the <bot_id>
, e.g. 9a38affe-4fa0-493c-b802-432a83d8842f for AzureBot.
The "real" way to do it though is in Developer Preview now. To create a bot that only works 1:1, specify "personal"
for the value of bots.scopes
in the manifest.json file. You can also specify default commands in bots.scopes.commandLists[]
. More info here.
As for how your users will be able to invoke your bot once the "Apps" feature is out of Developer Preview and in production, there are several ways:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句