json - 微软团队 : "Something went wrong" while installing my custom app into my organization's team

标签 json botframework microsoft-teams microsoft-appstudio

我为 Microsoft Teams 创建了一个应用程序,可以将其添加到团队中。该应用程序是使用 Microsoft Bot 框架创建的聊天机器人。我已经制作了其他两个具有类似功能的应用程序,可以很好地安装。

当我使用 App Studio(并链接到现有机器人)创建我的应用程序时,一切正常,但是当我尝试将其添加到团队时,我收到“出现问题”消息,并且也没有向我的机器人发送请求。 ..

有没有人遇到过类似的问题,或者有人知道如何调试吗?我的 list 如下。

list 如下(替换了 id)。

{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
    "manifestVersion": "1.5",
    "version": "0.0.2",
    "id": "my-id-is-here",
    "packageName": "nl.getsofia.teams.acceptance",
    "developer": {
        "name": "Sofia Melius B.V.",
        "websiteUrl": "https://www.getsofia.nl",
        "privacyUrl": "https://www.getsofia.nl/",
        "termsOfUseUrl": "https://www.getsofia.nl/"
    },
    "icons": {
        "color": "color.png",
        "outline": "outline.png"
    },
    "name": {
        "short": "Sofia Acceptance 2",
        "full": "Sofia Acceptance Nice"
    },
    "description": {
        "short": "ACCEPTANCE bot",
        "full": "ACCEPTANCE bot long description"
    },
    "accentColor": "#FFFFFF",
    "bots": [
        {
            "botId": "my-bot-id-is-here",
            "scopes": [
                "personal",
                "team"
            ],
            "commandLists": [
                {
                    "scopes": [
                        "personal"
                    ],
                    "commands": [
                        {
                            "title": "Add user",
                            "description": "A manager can add a user"
                        },
                        {
                            "title": "Get overview",
                            "description": "Get an overview of registered hours"
                        },
                        {
                            "title": "Projects",
                            "description": "Manage all projects"
                        },
                        {
                            "title": "Register hours",
                            "description": "Register your hours"
                        },
                        {
                            "title": "Settings",
                            "description": "Set hour registration reminder times"
                        }
                    ]
                }
            ],
            "supportsFiles": false,
            "isNotificationOnly": false
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "*.sofiamelius.nl",
        "*.getsofia.nl"
    ]
}

最佳答案

如果在您尝试将 bot 部署到 Teams 时发生这种情况(而不是尝试在 Teams 中与其交谈),则“抱歉,出现问题”消息通常是由未设置 Bot 服务中的 Teams channel 引起的向上。您必须同时设置 list 并打开 channel 。

要打开 channel ,只需在 Azure 门户中导航到您的机器人服务,选择 channel 边栏选项卡,然后单击团队以保存并激活 channel (我不记得了,但我认为您不必配置任何此处设置)。

完成后,您应该能够使用任何可用方法将您的机器人发布到 Teams。

关于json - 微软团队 : "Something went wrong" while installing my custom app into my organization's team,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61059481/

相关文章:

ios - 支付你的钱 nsurl 错误空字符串

azure - 机器人 channel 注册在迁移后自动分配位置 "global"

c# - 机器人框架 : How to exit Conversation?

c# - 使用自定义 API 机器人无法使用 Bot 框架在 Microsoft Teams channel 中发布操作卡

php - 将 Propel 转换为带有链接实体的 JSON

java - Spring MVC : strange @ResponseBody behavior

ios - 奇怪的 json 解码器行为

node.js - 当我从 Microsoft Bot Framework 阅读 Direct Line API 文档时,主机和端口来自哪里

microsoft-graph-api - 无法再确定 Microsoft Teams 的聊天记录

reactjs - 是否可以使用 Graph Toolkit 2.0 在 Microsoft Teams 选项卡中进行静默身份验证