Bot 框架中的搜索功能

Search functionality in Bot framework

我已经在 MS Teams 中成功创建了 Bot,现在有一个要求,用户需要 select 从大约的选项中选择任何一个选项。 100 个选项(考虑到可用性,我知道在 MS Teams UI 中提供那么多按钮是不可行的)。我在 PromptDialog class documentation 中寻找可用选项,但找不到合适的解决方案。我可以添加与 Web 应用程序中相同的搜索功能吗? (详见附件)。非常感谢这方面的任何帮助。

这里有几个选项。

  1. 您可以在 LUIS 中使用列表实体。尽管听起来好像您已经在使用 LUIS 了。
  2. 你可以使用 scorable or an if statement in your ActivityType.Message section to catch the word "search" (or something similar) then implement logic to search a collection of some sort based on the user's next message. great video on scorables here
  3. 您可以创建一个带有文本框输入的卡片,您可以实现用于搜索某种集合的逻辑。

    所有这些有 node/c# 个版本

    rich cards samples
    Rich cards doc
    Adaptive cards doc
    Adaptive cards sample

    我相信其他人也可以添加更多解决方案