@PatriciaG , I followed the instructions listed here for creating a BotKit bot and chose the BotFramework implementation. With an Azure resource setup + ngrok for tunneling between ABS and the locally running BotKit bot, I was able to connect Web Chat to my bot. You just need to enable the DirectLine channel in your ABS bot's channels blade and use the DirectLine secret for connecting Web Chat. (Please be sure to not use the secret in your Web Chat code in a production setting.)
Following the above worked flawlessly. Please note that I created the Azure bot as a 'MultiTenant' bot.
I then did the same using a 'SingleTenant' bot and received a 401 unauthorized error.
I believe this occurs because single tenant bots aren't fully supported, just yet. As far as the BotFramework is concerned, a BotFramework bot that uses the older BotFrameworkAdapter should work without issue. However, a bot that uses the newer CloudAdapter has an issue when the app type is SingleTenant
. This should be fixed with the next release, v4.16.
However, you are using BotKit and I am unsure what adapter it is utilizing under the hood for connecting to the BotFramework. Regardless, it doesn't appear to support 'SingleTenant' bots, at this time.
You will need to create an ABS bot that is of the 'MultiTenant' app type for your bot to connect until BotKit is updated to support the other options.