Max*_*ger 3 json microsoft-appstudio botframework microsoft-teams
我为 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"
]
}
Run Code Online (Sandbox Code Playgroud)
bil*_*ton 13
如果在您尝试将 bot 部署到 Teams 时发生这种情况(而不是尝试在 Teams 中与其交谈),则“抱歉,出现问题”消息通常是由未设置 Bot 服务中的 Teams 频道引起的向上。您必须设置清单并打开频道。
要打开频道,只需在 Azure 门户中导航到您的机器人服务,选择频道边栏选项卡,然后单击团队以保存并激活频道(我不记得了,但我认为您不必配置任何此处设置)。
完成后,您应该能够使用任何可用方法将您的机器人发布到 Teams。