adaptive-cards

wake up the functionality on hi on clicking on others in product issue(A dialog) its goes to main dailog and show 4 choice

陌路散爱 提交于 2019-12-14 04:19:50
问题 I want to go to main dialog from product issue after clicking on adaptive card of others, like when say hi after clicking on other it will go main dialog and start the bot again. When click on other adaptive card its shows a static link and wake up msg . but i am not able wake up it on hi This is my main dialog: namespace Microsoft.BotBuilderSamples { public class MainDialog : ComponentDialog { protected readonly ILogger _logger; protected readonly string[] _cards = { Path.Combine(".",

How do i get the result of a adaptive card?

故事扮演 提交于 2019-12-13 03:50:32
问题 I'm trying to get the result of my AdaptiveCard. My bot uses waterfalldialogs. In one Waterfallstep i present the user a number of Rooms with the time and date. The user then can choose a room. I tried it like shown below. Sadly the activity stays null. How do I get the result of the adaptive card private async Task<DialogTurnResult> AfterChoice(WaterfallStepContext step, CancellationToken cancellationToken) { if (step.Result is Activity activity && activity.Value != null && ((dynamic

textprompt after button click in adaptive card doesnt invoke next step

别等时光非礼了梦想. 提交于 2019-12-13 03:33:59
问题 Functionality: Fetch and display relevant answer from QnAMaker This response must be followed by an adaptive card with checkboxes Based on the values selected, invoke a web service to provide the user with required file links. Display a feedback message 'Did this help?' Direct the conversation flow based on user response. Problem Statement: For the step 2 mentioned above, the button click is being handled at the bot.cs file and redirected to a new Dialog. Everything works fine until

How to create a step waterfall inside the Virtual Assistant where the steps are AdaptiveCards that are generated at runtime?

馋奶兔 提交于 2019-12-13 03:32:15
问题 I need to generate the waterfall steps at runtime, as they are based off an API response - is this even possible with the WaterfallDialog and WaterfallSteps ? Creating the adaptive cards at runtime can be done using the AdaptiveCard class but in terms of adding these to the dialog stack can I just call AddDialog() at runtime and add the waterfall steps? My API returns JSON with the text to display in the dialog as well as what kind of controls it - it uses React-JSONSchema and the UISchema

Unable to capture Adaptive Card events triggered in angular js 1.x directive

ぃ、小莉子 提交于 2019-12-13 03:12:45
问题 I am unable to capture the onExecuteAction emitted by the Adaptive Card. Can you please provide any pointers on the missing piece here.Also I am facing similar issue in binding,trigger and capturing events from the Adaptive Cards like showing/collapsing elements(triggered by Action.Showcard elements). Any pointers/guidence is appreciated.Thanks in advance.Attaching the plnkr code. https://plnkr.co/edit/2YB2zV3FL4JZgJ2yC4FG ` return { restrict: 'AE', replace: true, scope:false, template:

Adaptive Cards Support for Microsoft Teams

混江龙づ霸主 提交于 2019-12-13 02:49:02
问题 I have integrated a the MSFT chatbot with Teams, i am able to connect and interact, however for response that are based on Adaptive Cards, i get the below error "The specified card version is not supported." Any idea when the adaptive cards be supported with MSFT teams. Environment: Adaptive Cards v 0.5.1.0 回答1: Adaptive cards are now supported in Microsoft Teams (on desktop and web). A couple of things to note: You're using the old version of the nuget package. Please use this one: https:/

When Bot is hosted on Azure, I'm unable to retrieve values from Adaptive card in waterfall dialog inside validator method

Deadly 提交于 2019-12-13 02:43:07
问题 I'm using Adaptive card version 1.2 and Bot Builder dialog version is 4.5.1 in my Bot. Currently I'm calling adaptive card inside waterfall dialog using TextPrompt . I have written a validator method to validate values returned from the card. This works fine in Bot Emulator. But when I host it on Azure I'm Getting error. In the validator method, Adaptive card values are captured in promptContext.Recognized.Value . But it returns null when hosted on Azure which results in Object reference not

Botframework V4: Question about Input forms cards

丶灬走出姿态 提交于 2019-12-12 12:16:59
问题 Hello i have this input forms card. It is rendering properly but how can i get its results? And how can i make it so that the bot wait for the user to submit before proceding to the next step? Putting stepContext.NextAsync will automatically trigger the next step. But removing it will cause an error because it needs to return something. public InitialQuestions(string dialogId, IEnumerable<WaterfallStep> steps = null) : base(dialogId, steps) { AddStep(async (stepContext, cancellationToken) =>

How to Add a scroll bar to an adaptive card

二次信任 提交于 2019-12-11 18:44:53
问题 I m showing a list of users in a card, can I add a scrollbar to the card so that it fits the screen size? I am currently using Adaptive card 1.0 and sending this card to MS Teams. 回答1: AdaptiveCards do not allow scrolling or paging. If you want to implement paging you could add a "next page" button to your card, when pressed you just update the card with the new list data. MS Teams allows you to update cards/message you already sent so you could send the first page and when a user clicks on

Actionable Messages not displaying regional (UTF-8) characters

大兔子大兔子 提交于 2019-12-11 17:09:54
问题 I have encountered a problem with viewing Actionable Messages. Regional characters are not showing correctly (? instead of the actual character), even though I've added information about UTF-8 encoding in meta tag inside the email's HTML head: <meta http-equiv="Content-Type"content="text/html;charset=UTF-8"> What's peculiar, however, is that characters render correctly when I put them into email body. Furthermore, putting even one character from, let's say, Japanese, makes all the Japanese