botframework

Retrieve complete LUIS DateTimeV2 entity from recognizer

烂漫一生 提交于 2020-01-16 16:45:56
问题 I'm using the Microsoft Bot Framework v4 to do some fairly basic date and date range recognition. The most straightforward use of the LUIS recognizer that most examples use and is used in the enterprise template doesn't return the complete DateTimeV2 structure. The example below is for "last week" corresponding to a daterange. These results are in recognizer.result.entities: { "$instance": { "datetime": [ { "startIndex": 8, "endIndex": 17, "text": "last week", "type": "builtin.datetimeV2

Chat BoT Exception: OnTurnAsync exception— Operation returned an invalid status code 'BadRequest'

倖福魔咒の 提交于 2020-01-16 16:29:10
问题 I am getting this error only after I deployed my bot to azure web app and tried to Test in azure portal Web Chat. But my bot is working as expected from bot emulator on my local machine. I am not sure if this is due to the azure role assigned to me.My assigned role is showing as "Limited Contributor". I am able to create any resource and deploy my chat bot to azure.So not sure if this has anything to do with my "Limited Contributor" role. Here is the line of code(marked in red) where it is

Passing QueryString to Microsoft bot web channel

旧巷老猫 提交于 2020-01-16 15:55:07
问题 We have created a bot using ms bot framework and wanted to pass some data to bot which user will not input. Like I was thinking if we can pass query string to below web channel. https://webchat.botframework.com/embed/myformbot?s=XXXXXX&mycustomfield=text And from bot api code, I can somehow read this querystring parameter...Ideally I know we don't have control over above webchat link, we are only giving access to bot api. But is this possible or any other way to pass data to bot which is not

How can I put “AdaptiveActionSet” in “AdaptiveColumn”?

爱⌒轻易说出口 提交于 2020-01-16 10:34:12
问题 I would like to put "AdaptiveOpenUrlAction" in "AdaptiveColumnSet" for a better layout of adaptivecards. However, my bot emulator does not display the OpenUrl button. How do I add an action button? Perhaps this is a problem with the version of adaptivecards? The version of my adaptivecards is 1.1 (1.0 is also available). I would like to ask for a solution. Below is the code I wrote and the json log I created in the emulator. The Json Log in the ActionSet is written to the emulator, but the

Send a proactive message to user via api controller

[亡魂溺海] 提交于 2020-01-16 10:04:31
问题 I am trying to make a reminder feature for a chat bot. I thought of using azure function to make an api post request when it matches a date. I made a controller with this guide i found. I tried it on bot emulator and found that it only works like this: Run code and bot emulator then make a request on fiddler but nothing happens. Then i stop running the code and run it again but not to restart the emulator. Then i make a fiddler request again and now it successfully sends a proactive message.

Send a proactive message to user via api controller

空扰寡人 提交于 2020-01-16 10:04:26
问题 I am trying to make a reminder feature for a chat bot. I thought of using azure function to make an api post request when it matches a date. I made a controller with this guide i found. I tried it on bot emulator and found that it only works like this: Run code and bot emulator then make a request on fiddler but nothing happens. Then i stop running the code and run it again but not to restart the emulator. Then i make a fiddler request again and now it successfully sends a proactive message.

How to make a carousel image clickable in Botframework version 4

早过忘川 提交于 2020-01-16 09:35:28
问题 I am using hero card to display a list of carousels on FB messenger. I want to put an url link behind the image I am displaying so that when user selects the carousel he is redirected to the payment page. How to achieve this with the latest Botframework v4. In version 3 Action types included OpenUrl. but in V4 I didn't found a way to this in the docs. Kindly Help. I am adding my code here. // Create the hero cards. Add the carousels to it. var heroCard = new HeroCard { Title = "We are a

OAuth2 Signin from a Bot, based on Enterprise Bot template(v4 SDK), does not work with MS Teams desktop app

[亡魂溺海] 提交于 2020-01-16 09:10:53
问题 I have a bot which is based on enterprise bot template(Bot builder framework SDK v4.0). I have called AuthenticationDialog (OAuth2 sign-in with AAD v2) as per other thread in the stack overflow, i have implemented to handle Invoke Activity with "signin/verifyState" in my IBot implementation , it works fine on Microsoft Teams Web app, however, MS Teams desktop app puts up the dialog for selecting sign-in user, immediately, it closes the dialog and sends the Invoke activity with signin

Sign-in button prompts for Credentials and successfully authenticates but, doesn't log-in the user

有些话、适合烂在心里 提交于 2020-01-16 08:27:31
问题 Ms Teams Chat Bot : MS Teams OAuth Authentication Sign-in button prompts for Credentials and successfully authenticates but, doesn't log-in the user Using MS Teams: Validation Code Text Box Popup Doesn't Show up: In MS Teams The Sign-in button works to show the login prompt, the authentication is successful but then, The Validation code Text Box doesn't show up and the further Bot code is not executed. When I re-type the utterance "Hi" it, shows the Sign-in button again. Using Azure Webchat &

Bot works in Bot Framework Emulator on local computer, but not after it's deployed to Microsoft Azure: “HTTP status code NotFound” (2nd Thread)

北城余情 提交于 2020-01-16 07:25:09
问题 This is my second thread about this issue and I tried every suggestion provided in the last thread about this. The URL to the last thread is here: Bot works in Bot Framework Emulator on local computer, but not after it's deployed to Microsoft Azure - HTTP status code NotFound. I followed the exact directions at https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-deploy-az-cli?view=azure-bot-service-4.0&tabs=newrg. After following these instructions involving Azure CLI, I had three