botframework

Get the active dialog id in botframework Python - Dispatch model with multiple Dialog and QnA Maker

試著忘記壹切 提交于 2020-07-10 10:26:59
问题 My bot processes incoming user messages and takes action based on the intent. For simple, one shot answers that do not require multiple passes between users and the bot, it works well. Now when I want to implement a dialog, it's getting tough. Once the user sends the message and the Dialog gets triggered, the bot asks the user for input. Once the user provides the input, this input is being again processed by LUIS to understand the intent. However, I do not want this to happen as this

BotBuilder Python - Handling multiple dialog and intent

白昼怎懂夜的黑 提交于 2020-07-10 07:37:10
问题 I have the following code to handle multiple intents, Code async def on_message_activity(self, turn_context: TurnContext): recognizer_result = await self.luis.recognize(self.recognizer, turn_context) intent = self.luis.get_top_intent(recognizer_result) await self.process_intent(turn_context, recognizer_result, intent) async def process_intent(self, turn_context: TurnContext, recognizer_result, intent): if intent == 'Greeting_Wishes': await greeting_wishes(turn_context, user_info) elif intent

How to display adaptive card selected option as if the user typed it in?

放肆的年华 提交于 2020-07-09 12:10:20
问题 By default when we use adaptive cards in a waterfall dialog, the bot records the selected action and process the next waterfall step - how it actually looks Instead can we display the selected option in the adaptive card as if the user typed in the option like - What I want it to look like I have a requirement where we want to display it as if the user typed it in and not like the bot says "you selectd X option". 回答1: You can do this by using the 'data' property in your Adaptive Card. { "

Identical Threads in Microsoft Bot are Duplicating Welcoming Message

允我心安 提交于 2020-07-09 08:13:50
问题 I have a welcoming message configured to appear in MessagesController the first time my bot is started. private Activity HandleSystemMessage(Activity message) { if (message.Type == ActivityTypes.ConversationUpdate) { // returning a msg here to the Post method in MessagesController. } } When I debug it would seem that at start time, TWO threads are working the bot and both are executing in the Post method, and consequently both are calling HandleSystemMessage . This is a problem for me,

Microsoft Teams Authentication : Unable to retrieve token in teams bot ( V4 SDK)

£可爱£侵袭症+ 提交于 2020-07-09 07:57:06
问题 I have a Microsoft Teams bot and I am trying to authenticate the user using AAD (v2 endpoint) . The bot uses V4 SDK and OauthPrompt .I am able to log in but unable to get the token. I am using OAuth Card. The card is being rendered inside Teams. When the sign in button is clicked it goes to the Microsoft login page. After the user logins, the bot stops responding and hence I have no way to get the token. The samples I am trying out are : https://github.com/microsoft/BotBuilder-Samples/tree

New intent in LUIS for multi turn dialogs

孤街醉人 提交于 2020-07-08 00:39:20
问题 I am going to create a multi-turn dialog. I didn't get how it should be connected with LUIS models. I checked out documentation, but there are samples with only one turn dialogs. Also, I use Virtual Assistant template. I want to do something like this. User: I want to book a flight Bot: What is the destination? User: London Bot: When? User: 21st of September. Bot: The ticket was bought. The questions are what happens on the second step? Should I check out dispatcher? Should I add all possible

How to fetch user access token after authentication in Microsoft Teams Bot?

你离开我真会死。 提交于 2020-07-07 12:26:41
问题 I am developing my first bot from Microsoft Teams. I want the user to input commands in the bot, the bot should send requests to my external web sever and display the results as adaptive cards. I was able to authenticate the bot with my external server. The bot shows the user access token after authentication. Perfect! How can I get the user's access token in my bot code or web server to process the incoming request from the bot. Here's what my bot code looks like. this.onMessage(async

How to fetch user access token after authentication in Microsoft Teams Bot?

﹥>﹥吖頭↗ 提交于 2020-07-07 12:25:15
问题 I am developing my first bot from Microsoft Teams. I want the user to input commands in the bot, the bot should send requests to my external web sever and display the results as adaptive cards. I was able to authenticate the bot with my external server. The bot shows the user access token after authentication. Perfect! How can I get the user's access token in my bot code or web server to process the incoming request from the bot. Here's what my bot code looks like. this.onMessage(async

How to fetch user access token after authentication in Microsoft Teams Bot?

天涯浪子 提交于 2020-07-07 12:24:49
问题 I am developing my first bot from Microsoft Teams. I want the user to input commands in the bot, the bot should send requests to my external web sever and display the results as adaptive cards. I was able to authenticate the bot with my external server. The bot shows the user access token after authentication. Perfect! How can I get the user's access token in my bot code or web server to process the incoming request from the bot. Here's what my bot code looks like. this.onMessage(async

How to Disable Button after single use in a adaptive card

戏子无情 提交于 2020-07-02 03:02:40
问题 I am using adaptive card in my LUIS agent. I want if a user has filled the details in an adaptive card after that the submit button should get disabled. And also i would like to know that how to hide a button when we are displaying a nested adaptive card on a button click I have tried validating the card using the values input given by the user. But i am looking for a better and more optimal solution for this p.s working on bot framework v4 API 回答1: In a channel like Teams, your bot can call