Microsoft Bot框架:如何通过消息扩展添加bot进行聊天?

发布于 2025-01-26 05:47:44 字数 763 浏览 3 评论 0原文

让我们假设用户在1:1聊天中与其他用户聊天。 (也许也可能是组聊天。)用户添加了一个机器人并继续聊天,而机器人现在为对话增加了价值。

我们正在寻找一种通过简单的按钮单击将机器人添加到尽可能无缝的聊天中的方法。看来我们可以获得最接近的按钮,就是使用a 消息传递扩展操作命令

当用户调用消息扩展时,我们的后端服务运行,可以用卡响应。现在,可以生成对添加bot 的响应而不是卡?例如,有特殊响应,例如身份验证。是否有回复告诉团队客户添加机器人?

任何提示都将受到赞赏。

Let's assume a user chats with another user in a 1:1 chat. (Might also be a group chat.) The user adds a bot and continues to chat while the bot now adds value to the conversation.

We are searching for a way to make adding the bot to a chat as seamless as possible through a simple button click. It seems the closest we can get to a button is using a messaging extension action command.

When the user invokes the messaging extension our backend service runs and can respond e.g. with a card. Now instead of a card is it possible to generate a response to add a bot? There are special responses e.g. for authentication. Is there a response telling the Teams client to add a bot?

Any hints are appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深居我梦 2025-02-02 05:47:44

JIT安装机器人是这里的一个选择。您将能够在用户对话中添加机器人。检查以下示例应用程序,有助于立即添加bot: https:// github .com/SubbaReddi/89.teams-just-in-time-installation

JIT installation of bot is an option here. You will be able to add bot to user conversation. Check following sample application which helps to add bot instantly: https://github.com/SubbaReddi/89.teams-just-in-time-installation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文