Microsoft团队:带有基于搜索的命令的邮件扩展

时间:2020-09-02 13:48:56

标签: botframework microsoft-teams

我正在测试Teams Messaging Extension中基于搜索的命令。使用“ YO TEAMS”创建解决方案并使用BotId / AppId和密码/ Secret在Azure中创建BOT之后。并将它们作为值添加到解决方案的.env文件中。

通过运行命令“ gulp ngrok-serve”,我会生成ngrok url,看起来应该没问题。但是通过从Teams的package文件夹中上传一个.zip文件,我收到错误消息“无法访问应用程序,请重试”。 enter image description here

为了测试,我创建了仅使用“ Tab”的另一个解决方案。当我尝试上传.zip时,我得到几乎相同的错误消息, “到达此应用程序时出现问题” enter image description here

有许多令人沮丧的教程,有些又有些新。通过运行命令“ gulp ngrok-serve”,可以启动用于隧道的ngrok。并且生成的ngrok URL似乎可以工作: enter image description here

该URL被存储为Azure中BOT的终结点:

enter image description here

那我不能在这里错过什么呢?

这是我的清单文件:

 {
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.6/MicrosoftTeams.schema.json",
  "manifestVersion": "1.6",
  "id": "{{APPLICATION_ID}}",
  "version": "{{VERSION}}",
  "packageName": "{{PACKAGE_NAME}}",
  "developer": {
    "name": "gonadn consulting",
    "websiteUrl": "https://{{HOSTNAME}}",
    "privacyUrl": "https://{{HOSTNAME}}/privacy.html",
    "termsOfUseUrl": "https://{{HOSTNAME}}/tou.html"
  },
  "name": {
    "short": "TeamsMsgExtSearch",
    "full": "TeamsMsgExtSearch"
  },
  "description": {
    "short": "TODO: add short description here",
    "full": "TODO: add full description here"
  },
  "icons": {
    "outline": "icon-outline.png",
    "color": "icon-color.png"
  },
  "accentColor": "#D85028",
  "configurableTabs": [],
  "staticTabs": [],
  "bots": [],
  "connectors": [],
  "composeExtensions": [
    {
      "botId": "{{MICROSOFT_APP_ID}}",
      "canUpdateConfiguration": false,
      "commands": [
        {
          "id": "msgSearchCommandMessageExtension",
          "title": "MsgSearchCommand",
          "description": "Add a clever description here",
          "initialRun": true,
          "parameters": [
            {
              "name": "parameter",
              "description": "Description of the parameter",
              "title": "Parameter"
            }
          ],
          "type": "query"
        }
      ]
    }
  ],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "{{HOSTNAME}}"
  ],
  "showLoadingIndicator": false
}

链接到Git Repo

0 个答案:

没有答案