botframework

How to call QnA Maker on a waterfall dialog using C#?

余生长醉 提交于 2021-01-27 11:12:34
问题 I am trying to call QnA Maker on a waterfall dialog step . How do I call it from this watterfall step, do I need to set up QnA On the waterfall step, do I need to call QnA from a LUIS intent , what can I do? I need it to get the first result from the QnA using the step context from the previous question. Can anyone help? Code: private async Task<DialogTurnResult> QnaAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { var response = await qnaMaker.GetAnswersAsync

TeamsBot - How do I get the Team Id from a conversationupdate event?

谁说胖子不能爱 提交于 2021-01-27 07:10:01
问题 I'm installing a Teams bot and adding it to a team. When I add it to the team, on the initial call I get the "conversationUpdate" event correctly, in OnTurnAsync. The issue I'm running into is that any call to get the team itself is failing because there is nothing there, that I can see, for getting the Id to call to get the team data. I want to be able to add it to the team, get that event and then get the data related to the team it was added to. Here is what I'm trying. private const

Update already posted Adaptive Card in Bot Framework v4 in C#

社会主义新天地 提交于 2021-01-27 06:30:50
问题 I'm working on a Bot with the Bot Framework v4 in C#. What I want now is, that after sending an Adaptive Card to the user, with Actions, that I can update this card after the Action is fired. For example, that the button will disappear after the click. Link to NodeJS Solution here I have a Solution in NodeJS, but I'm not able to transfer it to C#. Can anybody help? More Project details: I have an Adaptive Card that looks like this: This Card will be generated, after I searched with the MS

Lazy load javascript file

纵然是瞬间 提交于 2021-01-21 08:35:43
问题 I'm trying to implement a Microsoft botframework chatbot on our site but don't want to burden the users who won't engage with the bot with the 470Kb library unless they choose to start a chat. When the framework is included in the page source, the bot initialises and launches but when I remove this from the page source and instead write it to the page when the user clicks a button to start the bot, the script is written to the page and can be seen in DevTools sources but does not initialise.

Microsoft teams bot adaptive card carousel deleting a card

老子叫甜甜 提交于 2021-01-20 07:55:30
问题 I am using Microsoft teams bot with nodejs. I am rendering a carousel of adaptive cards with action on each card. My requirement is to delete an individual card out on which the action was clicked. Is it possible? Current code looks like below. i have given a try to deleteActive but that deletes entire carousel const { TurnContext, TeamsActivityHandler, CardFactory, AttachmentLayoutTypes, ActionTypes } = require('botbuilder'); class TeamsConversationBot extends TeamsActivityHandler {

Microsoft teams bot adaptive card carousel deleting a card

家住魔仙堡 提交于 2021-01-20 07:55:10
问题 I am using Microsoft teams bot with nodejs. I am rendering a carousel of adaptive cards with action on each card. My requirement is to delete an individual card out on which the action was clicked. Is it possible? Current code looks like below. i have given a try to deleteActive but that deletes entire carousel const { TurnContext, TeamsActivityHandler, CardFactory, AttachmentLayoutTypes, ActionTypes } = require('botbuilder'); class TeamsConversationBot extends TeamsActivityHandler {

how to detect bot Idleness on Bot Framework

时光怂恿深爱的人放手 提交于 2021-01-16 03:52:52
问题 I'm using bot framework V3 with C#. I need to identify when my bot is idle for more than 5 minutes. I've tried to handle bot idleness via the MessageController but my attempt seems not to work out. switch (activity.Type) { case ActivityTypes.Message: await Task.Delay(5000).ContinueWith(async (t) => { var reply = activity.CreateReply(); var myMessage = "Bot time out. Bye"; reply.Text = myMessage; await connector.Conversations.ReplyToActivityAsync(reply); }); await Task.Factory.StartNew(() =>

Microsoft Bot Framework V4: System.NullReferenceException: 'Unable to locate SkillConversationIdFactoryBase in HostContext'

↘锁芯ラ 提交于 2021-01-07 06:57:25
问题 I am working on creating a workflow which allows composer created dialogs to be integrated into a bot skill project. To accomplish this I am trying to follow the instructions in this post: https://microsoft.github.io/botframework-solutions/skills/handbook/experimental-add-composer/ My composer created dialogs including calling a skill. When I initiate that intent through the Bot Emulator I get this error: System.NullReferenceException: 'Unable to locate SkillConversationIdFactoryBase in

Bot Framework V4: Value cannot be null. (Parameter 'uriString')

眉间皱痕 提交于 2021-01-07 02:59:11
问题 I have been following the tutorial (Bot Framework Integrate Composer Into Skill Project) to integrate composer dialogs with a skill project. This includes composer created dialogs which call a skill. I am running into the exception "Value cannot be null. (Parameter 'uriString')" when calling the skill. I ran into various other issues when setting this up, as outlined here Previous Issues, which have been resolved though I had to do a work around to get the settings to work. I now need to

How to rewrite a Adaptive Card Submit Action for MSTeams also working in Web Chat?

久未见 提交于 2021-01-07 02:41:53
问题 Hi i'm using adaptive Cards and want to generate a Submit Action which works in MS Teams as well as in Webchat. In Emulator this works fine. After i'm clicking the Button its like the user would type in "Test" in the chat. "actions": [ { "type": "Action.Submit", "title": "Test", "data": "Test" } This doesnt work in MS Teams. How to bring this to work? 回答1: My blog post explains that if you want to use a string submit action you will need to do it differently in Web Chat and Teams: https:/