Join Sahil Malik for an in-depth discussion in this video Enable side loading bots in teams, part of Microsoft Teams Bot Development.
- [Narrator] So my Bot seems to be working in simple Web Chat. That's the good news. Now, I need to test it in teams. Now, of course, if you're using team specific features, like reading the user's profile, getting the list of channels inside of a team, etc. Team specific code, then you have to test inside of teams. So naturally, we need to test inside teams. How do we do that in dev mode? Well, there are two steps. Number one, you need to enable side loading of your Bots.
So to do that, go to Office365.com, or just Office.com. And go ahead and sign in, and show that you're signing in using the same identity as a tenant.administration. Then go to the admin area. I'm going to close these other tabs. Go to the admin area, and then here go to Settings, Services and add ins. And here look for Microsoft teams.
Click on it. And in this pane that opens, look through here under the Apps area, and you'll see a radio button here that allows side loading of external apps. I have already set it to on in my tenantcy. It is off by default, you need to turn this on. Now, a lot of administrators are going to have nightmares by doing this. They have a point, because the Bot is running under your credentials. So if you enable side loading, theoretically, any user can download a zip file from the Internet, side load it in, and run it.
Not a great idea. So, yes, you would do this in your dev tenantcy, and when it ship into production, then you would not be doing this. However, I am in my dev tenantcy, so I've enabled it. So now I can just close this tab, and now I want to test this in Microsoft Teams. Let's see that next.
- What are bots?
- Creating bots
- Testing using ngrok
- Deploying bots to Microsoft Teams
- Testing bots
- Bots as Azure AD applications
- Updating bot registration in Azure
- Building the bot package