问题
We recently added a QnA Maker Bot to MS Teams and got it to Deploy on the Azurewebsites.net/api. Unfortunately in MS Teams when you direct message the bot it is not responding at all. We checked the logs and are not getting any errors either. Any Idea where we need to check next?
Thank you, M
回答1:
I had exactly this problem, and it was because I was trying to hit the bot directly rather than creating a Teams App first. You will need to install App Studio from the Apps blade on the left if you haven't already.
- Open up App Studio and click on Manifest editor tab
- Click Create a new app
- Fill our all of the required information for App details
- Generate/create an App ID. This is NOT the same as your Bot's App ID
- Click on Bots tab under Capabilities and add your bot
- Install app for testing in specific Teams or Chats
Submit is for if you want to publish to your company's App Store. If you download the package you could import it in Step 2 instead of creating a new app. Or use it as a template to do future apps offline instead of using App Studio for the whole process.
Once I set up the bot in this way, it started responding to me. I tried with another app after doing this for one and confirmed that I would NOT get a response from a bot unless I had set it up with a manifest through App Studio.
来源:https://stackoverflow.com/questions/58105154/qna-maker-bot-not-responding-in-ms-teams