botframework

LUIS consider TIME and DURATION as number ENTITY

心已入冬 提交于 2019-12-14 03:24:17
问题 I was expecting entities such DATE, TIME, DURATION & No Of People Joining the Call in below JSON. Now i got entities back such as DATE,TIME and DURATION correctly but for No Of People there is problem for me. I am getting four entities as NUMBER so now i am confused as how to pick exact entity that represent No Of People . Ideally it is No. 6 , but i am not getting on which basis i should decide that 6 is the No Of People { "query": "book audio bridge tomorrow for 6 people for 30 mins starts

Inconsistent response between Azure QnAMaker Web App Bot and Cognitive Service

拈花ヽ惹草 提交于 2019-12-14 03:06:52
问题 I'm having differences with the responses to my questions (in Spanish language) performed against an Azure Web App Bot service that queries to an instance of QnAMaker and the queries directly performed against the specific QnAMaker service for that instance. For this specific case I've performed the same questions on the Bot's Web Chat and on the QnAMaker Test Chat. In several responses retrieved by the Bot's Web Chat I get the default message (like if the question does not match an answer)

Getting value stored in a variable in botframework suggested actions

孤者浪人 提交于 2019-12-14 02:46:34
问题 how to get the value "yes" or "no" stored into a variable? i am trying to store the value yes or no when a user clicks the button but it is not taking the value into k var activity1 = MessageFactory.SuggestedActions( new CardAction[] { new CardAction(title: "YES", type: ActionTypes.ImBack,value:"yes"), new CardAction( title: "NO", type: ActionTypes.ImBack, value: "no") }, text: "Do you want to continue Shopping?"); var k=await context.SendActivityAsync(activity1); 回答1: Unfortunately, context

Botframework V4: ID of active dialog not changing even when other dialogs are active

 ̄綄美尐妖づ 提交于 2019-12-14 02:37:46
问题 I need to do a condition depending on the Id of the active dialog something like this. var dc = await _dialogs.CreateContextAsync(turnContext); if (dc.ActiveDialog != null && dc.ActiveDialog.id == "SkipLuisDialog") { var interruptedQnaMaker = await IsTurnInterruptedDispatchToQnAMakerAsync(turnContext, topDispatch, QnaConfiguration, cancellationToken); } When i check my active dialog on OnTurnAsync() like this: if (dc.ActiveDialog != null) { await dc.Context.SendActivityAsync(dc.ActiveDialog

I want to trigger mail when the bot says that it has no answer

主宰稳场 提交于 2019-12-13 22:42:17
问题 I want to trigger mail when the bot says that it has no answer. I'm using MS bot framework SDk4, and using LUIS and QnA maker also, when the bot reached the to a point where it says that it has no answer , we want a mail to be triggered or add a new item in the sharepoint 回答1: If you want to add a no answer to a SharePoint List, I managed to get it working using the csom-node package and Bot Framework v4 / NodeJS. Granted, it's not the most elegant solution, but it works. Bot.JS const csomapi

APIs for reading activity feed from Microsoft Teams

烂漫一生 提交于 2019-12-13 22:33:14
问题 Is there any inbuilt APIs available using which we can read notifications from activity feed in Microsoft Teams? I've gone through Microsoft Teams Developer Platform but didn't find any clue. Any resources with explanation are greatly appreciated. 回答1: The answer from @mdrichardson-msft would find notifications sent by an app, but only a small fraction of the activity feed would ever match that. The Microsoft Graph APIs for retrieving the activity feed are on the backlog but they are not yet

Customizing bot framework direct line API with css

穿精又带淫゛_ 提交于 2019-12-13 22:33:00
问题 </footer> <!-- Footer --> <!-- SCRIPTS --> <script src="https://unpkg.com/botframework-webchat/botchat.js"></script> <script> (function () { var div = document.createElement("div"); document.getElementsByTagName('body')[0].appendChild(div); div.outerHTML = "<div id='botDiv' style='width: 400px; height: 500px; margin:10px; position: fixed; bottom: 0; right:0; z-index: 1000;><div id='botTitleBar' style='height: 40px; width: 400px; position:fixed; cursor: pointer;'></div></div>"; BotChat.App({

Why isn't BotUserData persisting and retrievable in my Bot Framework bot?

妖精的绣舞 提交于 2019-12-13 21:44:11
问题 I am using dummy messages with user ids to set BotUserData for a particular user, so that the bot can access it elsewhere via the same method. Example: message.From.Id = someUserId; message.SetBotUserData("someObject", someObject); Later, when another user is interacting with the bot, I execute message.From.Id = someUserId someObject = message.GetBotUserData<objectType>("someObject") But someObject is returned as NULL Note that these two snippets are being executed on different channels,

Accessing model/database without injecting the UserState to every dialog

为君一笑 提交于 2019-12-13 20:21:19
问题 I am migrating from the old botframework v4 to the latest version. I have around 50 dialog classes and it is so much work to inject the userstate dependency on all of them. Before i can access the model by just this code: var userstate = await (stepContext.Context.TurnState["BasicAccessors"] as BasicAccessors).BasicUserStateAccessor.GetAsync(stepContext.Context); and no need to inject the userState in every dialog. I tried doing this but got 500 error and other ones. How can i replicate this

Action buttons on cards are abnormally sized

喜欢而已 提交于 2019-12-13 20:20:01
问题 I'm using the Bot framework Nodejs SDK to send a Hero card to present the user with a question and 3 options. In the webchat channel, it would be like this: var card = new builder.HeroCard(session) .title("Please chose from below options:") .buttons([ builder.CardAction.imBack(session, "A green shirt", "A green shirt"), builder.CardAction.imBack(session, "A blue shirt", "A blue shirt"), builder.CardAction.imBack(session, "A red shirt", "A red shirt") ]) var msg = new builder.Message(session)