Microsoft团队:在将自定义应用程序安装到组织团队中时,“出现了问题”

时间:2020-04-06 12:07:45

标签: json botframework microsoft-teams microsoft-appstudio

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

当我使用App Studio创建我的应用程序(并链接到现有的漫游器)时,一切都很好,但是当我尝试将其添加到团队时,我收到“出了点问题”消息,并且没有任何请求发送给我机器人...

有人遇到过类似的问题吗?或者有人知道如何调试吗?我的清单在下面。

清单在下面(已替换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"
    ]
}

1 个答案:

答案 0 :(得分:4)

如果在尝试将漫游器部署到团队时发生这种情况(而不是试图在团队中与之交谈),则通常是由Bot服务中的团队渠道引起的“抱歉,出了点问题”消息尚未建立。您必须同时设置清单并打开频道。

要打开通道,只需在Azure门户中导航到您的Bot服务,选择“通道”边栏,然后单击“团队”以保存并激活通道(我不记得了,但我认为您没有在此处配置任何设置。)

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