Back to Blog
Use ngrok to show local web server mac6/12/2023 ![]() ![]() When ngrok starts, it will display the public forwarding URL you’ll need to copy and save for later, as highlighted below. Note: You may use any localhost port you’d like Ngrok http 3980 -host-header="localhost:3980" In this post, we’ll discuss how you can locally debug your bot from any channel your production bot is configured for, using ngrok.įrom the ngrok documentation – “ngrok allows you to expose a web server running on your local machine to the internet.”Įssentially, what we’ll be doing is using ngrok to forward messages from external channels on the web directly to our local machine to allow debugging, as opposed to the standard messaging endpoint configured in the Bot Framework portal.įrom the command line, run the following command: all implement their own chat channel user interfaces. Popular third party channels such as Slack, Facebook Messenger, Kik, etc. But what about when your bot is already in production? The Bot Framework Emulator uses an instance of the Web Chat control, which is only used in DirectLine, or embedded into web sites using a standard or custom configuration. You can also use the Bot Framework Emulator to chat with your bot locally and inspect the messages your bot sends and receives. While your bot is in development, you can debug and test your bot locally using the debugger for Visual Studio and Visual Studio Code for the. ![]() One of the key features available when you use the Bot Framework is the ability to seamlessly connect your bot to multiple channels, all from the same bot.Ĭlick here to learn more about currently supported channels, and how to connect to them.
0 Comments
Read More
Leave a Reply. |