gpt4 book ai didi

botframework - 在 Teams : how to send files to bot 中使用 azure bot 服务

转载 作者:行者123 更新时间:2023-12-04 11:02:19 26 4
gpt4 key购买 nike

我是团队和机器人框架开发的新手。

我有一个 botframework bot,它在 Teams 上启动并运行。我没有使用app studio,我直接从azure bot服务中导出它。

我想从手机发送图像(如自拍)。似乎您可以通过任何联系人执行此操作,但不能通过机器人执行此操作。现在,在我的 Teams 版本上似乎不可能向机器人发送文件。您可以通过 bing 发送图像,仅此而已。

enter image description here

从下面的文档中,它说:“不支持在移动设备上向机器人发送和接收文件。”
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-and-receive-files?tabs=dotnet
在我的电脑上,它似乎也不受支持。无论如何,我正在寻找一种使用手机相机分享自拍照的解决方案。

我遇到了这个线程,它讨论了一种添加按钮以提示用户在客户端上传文件的方法。
Prompt User to Upload file in Dialog Flow with MS Bot Framwork v4

这是否可以在 Teams 而不是在 Webchat 中执行此操作?

我是这个框架的新手,因此对上述任何见解将不胜感激!

最佳答案

这是可能的,我们实际上只是为它发布了一个样本( Node/C# )。但是请注意,我不相信您可以触发用户的相机……只要求他们上传图像文件。

您可能遗漏的重要部分是 step 7 (您需要一个包含 manifest.json"supportsFiles": true ):

This step is specific to Teams. Edit the manifest.json contained in the teamsAppManifest folder to replace your app id from Bot Framework everywhere you see the place holder string <>. Zip up the contents of the teamsAppManifest folder to create a manifest.zip. Upload the manifest.zip to Teams (in the Apps view click "Upload a custom app")

关于botframework - 在 Teams : how to send files to bot 中使用 azure bot 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58727698/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com