I have found a solution for my problem myself. So all those who might have the same problem: Microsoft teams do not support web service endpoints on localhost!
I got ngrok and created a tunnel to my localhost address. So it worked!
How do bots work properly in App Studio?
Hi,
I have created a sample organization with AAD using the E5 license. This allows me to use teams as well. Now I want to use App Studio to create my own Team App and add a bot. In the App Studio settings you will find the Bots button where you can create a new Bot. I have done this and added a messaging endpoint. This points to a locally hosted web service.
URL: https://www.localhost:8443/services/rest/mywebservice
According to App Studio, you don't need more settings. Now I create my app and upload it to my MSTeams team by clicking the button "Upload Custom App". It is now also available to me. I can access the app via @mention. But if I type "@mention hello" now, nothing happens.
If I access my web service via Postman I get the response: "Hello, I am the response". What am I doing wrong? Please help me!
-
Martin Bilda 176 Reputation points
2020-04-07T11:55:27.367+00:00
1 additional answer
Sort by: Most helpful
-
JimmyYang-MSFT 53,846 Reputation points Microsoft Vendor
2020-04-07T08:19:57.653+00:00 Hi MartinBilda!
You can try to check your steps by referring to this official documents:
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/create-a-bot-for-teams