enter image description here we are facing an issue while developing a chat bot using Microsoft Botframework V4 hosted on Azure. The Chat has issues when published in a MS Teams Channel but, the same Chatbot works fine on MS Teams Private Chat and even Web Chat i.e. All pointing to the same Microsoft APP ID on Azure.
From Within MS Teams Channel:
The ChatBot gets an incorrect User utterance when user chats to ChatBot from within a MS Teams Channel.
Bug:###
As visible in the screenshot, User types “hi” and the Chat Bot returns the text “VA Check ID Bothi” from the Chat Step Context (stepContext.Context.Activity.Text) . This is incorrect as, the Bot Name "VA Check ID Bot" is getting included in the user utterance. • Therefore the Incorrect Intent is getting recognized by LUIS i.e. the “Help” Intent.
A simple echo Bot also has the same issue when published in a Teams Channel, but work fine in a MS Teams Private Chat.
From Within Teams Private Chat
o The Chat Bot gets a correct User utterance, when user chats to the same chat bot from within a private chat on MS Teams. o As you can see in the screen shot,the User types “hi” and the Chat Bot returns the same text “hi” from the Chat Step Context (stepContext.Context.Activity.Text). This is correct.
Therefore the correct Intent is getting recognized by LUIS i.e. the “Greeting” Intent.
Since its the same chatbot with the same MS APP ID hosted on MS Azure, the Chatbot should behave the same when used from within MS Teams Private Chat or MS teams Channel.
The Chatbot also works perfectly fine in Web Chat on Azure Portal