【发布时间】:2019-05-11 04:08:49
【问题描述】:
您好,我是 Botframework 的新手,正在探索我可以在我的机器人中添加的可能功能。我为 MS-Teams 制作机器人,想知道我们是否可以在代码中添加自动完成功能。
我试图找到一种方法来跟踪打字事件,但没有运气。 botframework 中是否有任何事件跟踪,因为我只能看到一些有限的功能。
【问题讨论】:
标签: botframework microsoft-teams adaptive-cards
您好,我是 Botframework 的新手,正在探索我可以在我的机器人中添加的可能功能。我为 MS-Teams 制作机器人,想知道我们是否可以在代码中添加自动完成功能。
我试图找到一种方法来跟踪打字事件,但没有运气。 botframework 中是否有任何事件跟踪,因为我只能看到一些有限的功能。
【问题讨论】:
标签: botframework microsoft-teams adaptive-cards
AFAIK,自动完成不是任何频道当前支持的功能。有一些关于将它用于网络聊天here 的讨论,但这不是官方功能。
话虽如此,MS Teams 有一个称为“机器人菜单”的机器人功能:
根据他们的文档,要使用它,您只需更新您的应用清单机器人部分:
{
⋮
"bots":[
{
"botId":"[Microsoft App ID for your bot]",
"scopes": [
"personal",
"team"
],
"commandLists":[
{
"scopes":[
"team",
"personal"
],
"commands":[
{
"title":"Help",
"description":"Displays this help message"
},
{
"title":"Search Flights",
"description":"Search flights from Seattle to Phoenix May 2-5 departing after 3pm"
},
{
"title":"Search Hotels",
"description":"Search hotels in Portland tonight"
},
{
"title":"Best Time to Fly",
"description":"Best time to fly to London for a 5 day trip this summer"
}
]
}
]
}
],
...
}
这是有关该功能的 MS Teams 文档:Bot Menus
【讨论】: