Join Sahil Malik for an in-depth discussion in this video Testing your bot via web chat, part of Microsoft Teams Bot Development.
- [Instructor] Now, your bot is exposed to the internet using this ngrok url. As you just saw that I have the ability now to access this bot over the internet. Looks like it's working. Typically what I do in this scenario is that I just run ngrok and I never visit that tab again. So, now if I was in a job, I would go in the morning, I would update ngrok, run it, and I'd just minimize that window and forget about it. Yeah, you are exposing an HTTP site to the internet so do this on your Dev machine, please.
But the good news is that now I can stop this node process, make changes, and as long as I don't disturb this ngrok registration, basically I don't need to add in my bot registration and you'll see that with the actual stuff of messages there's a little delay there for messages which start coming in. So, it's just nice that if you don't have to keep changing this hand point. Of course, if using as your website to start registers then apply because that url doesn't change anyway. Okay, my bot is running. Let's go ahead and test it.
First, I'm going to go back to my bot registration area and click this test button here and here I will say, "search" and the message will send. It looks like I'm able to talk to my bot over the internet. So, that is great. You see here that I should be getting some log in ngrok so yeah, messages are coming through. That's great. Let's come back here. So, I'll say, "Who are you looking for?" I will say, "Sahil Malik", enter and it does a git search.
It tells me there are four matching users. I hit one and my card shows up. So, this is how you can test your bot with teams registration, but now it is being tested in a simple web chat.
- 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