Custom Microsoft Teams Connector doesn't communicate with an external service at all

房东的猫 提交于 2020-01-06 07:25:36

问题


Common description

First, my goal is sending notifications from my service using an internal API to a MT channel and having an option to answer it transmitting one to internal API.

I've found a Connector has such functionality. Good example which i've tried to use StackOverflowConnector. It was a good point to start that is exactly what i need(Bot has inappropriate UI behaviour) , but i've decided to do it by small steps from creating a Bot just to understand things better. In short i had success, the bot and a mt channel communicted well both directions. Next point was Connector. I explored all information here:

  1. https://docs.microsoft.com/en-us/microsoftteams/platform/index
  2. https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-3.0
  3. https://docs.microsoft.com/en-us/outlook/

What i have taken to create a Connector

  1. registered a Connector in the Connectors Developer Dashboard with followed fields:

    • Connector name: connector

    • Logo: contoso96x96.png

    • Short description of your app (10 words or less): sd

    • Detailed description of what your Connector does (3-5 sentences): dd

    • Company website: https://external.service

    • List the events supported by your Connector: all

    • Do you want to enable actions on your Connector cards?: Yes

    • Actions URL: https://external.service/api/messages

    • Does your service support login using subdomain?: No

    • Landing page for your users for Inbox: https://external.service

    • Landing page for your users for Groups or Teams: https://external.service

    • Redirect URLs: https://external.service/api/messages

  2. Ran the external service to communicate with a Connector. Checked service works

  3. took a manifest.json file is generated by Connectors Developer Dashboard and uploaded it to a Microsoft Team(MT) team. Uploading was successful. There was no network requests(monitored nginx logs) to the external service

  4. selected a channel in MT and clicked the Connectors dialog option. Found the created connector in the list Sideloaded group and clicked Configure. Got such window and clicked Done. Nothing happened

  1. ran nodejs code from the [github connector example][3](it didn't have meaning because of total lack of the requests)

What i expected:

Any activity in the external service, other nodes of integration i can't monitor. I compare this failed result with ones of StackOverflowConnector and my bot experience, both works as needed.

Question:

How to set up the connector to work, to send network requests? At least to have echo logic.

Upd:

I have noticed a weird report of deleting a MT app of the connector.


回答1:


I believe you might have some confusion between a Bot and a Connector. Based on your post description you should be looking to create a Bot and not a Connector. Please let us know if you have further queries.

Update:

Could you please give a try with C# sample code? Here is the basic flow for your understanding:

  1. When user clicks on Visit Site to install the Setup endpoint is hit.
  2. When user clicks on Connecto to Office 365 the Register endpoint is hit with webhook information.
  3. When new task is created in your system you can post the message to registered channels using webhook url.


来源:https://stackoverflow.com/questions/50724382/custom-microsoft-teams-connector-doesnt-communicate-with-an-external-service-at

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!