adaptive-cards

Microsoft Bot Framework image size in adaptive card

江枫思渺然 提交于 2019-12-11 16:44:13
问题 I'm trying to set the height of an image in a bot framework adaptive card. It doesn't have to be exact, but it should be close. For the following markup { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "speak": "", "type": "Container", "items": [ { "type": "TextBlock", "text": "Acai Bowls, Juice Bars & Smoothies, Vegan" }, { "type": "TextBlock", "text": "11:11 Health Bar", "weight": "bolder", "size": "Medium", "spacing":

How to use Adaptive Cards on Teams Messaging Extension?

爱⌒轻易说出口 提交于 2019-12-11 15:59:21
问题 I'm developing a Teams Message Extension and I'm using ThumbnailCard to display my results, however I wanted to use a custom adaptive card. Is that possible? var resultCardList = GetAttachments(title); var response = new ComposeExtensionResponse(new ComposeExtensionResult("list", "result")); response.ComposeExtension.Attachments = resultCardList.ToList(); return response; foreach (var contract in contractItems) { var lastModified = (DateTime)contract["Modified"]; var justificativa = contract[

Clickable HeroCard images

大憨熊 提交于 2019-12-11 15:15:06
问题 I can't seem to find any documentation or forum answers to making an image in a HeroCard clickable. I want to be able to click the image and perform the same imBack() action as I would with a button. 回答1: You can make the Hero card's image to go that link by using the Tap property of the HeroCard . Posting some sample code in C#: using System; using System.Threading.Tasks; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Connector; using System.Collections.Generic; namespace Bot

How to convert binary image data to URI for same image in nodejs?

心已入冬 提交于 2019-12-11 14:22:36
问题 I am using one API to get a profile photo of a user. This api gets me the binary data for a profile photo. I need to be able to use this profile photo in form of a https://en.wikipedia.org/wiki/Data_URI_scheme example:- json that will render an image where value of url should be URI. { "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Image", "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAABfUlEQVRIS72UPU/DMBRF+69hYaJIbBUjfwFRkFCLKFH4iBQWOpeJbMBG5kzGJ

How to send a simple adaptive card via email?

北慕城南 提交于 2019-12-11 14:01:10
问题 I've taken a look at the documentation for adaptive cards and actionable messages. I want to send an adaptive card via email and view it in outlook. https://docs.microsoft.com/en-us/outlook/actionable-messages/actionable-messages-via-email I am able to use the card playground (https://messagecardplayground.azurewebsites.net/) to send an email to myself with an adaptive card (using the button in the top right), and it renders correctly. Everything I read about these adaptive cards makes it

Not able to render Adaptive card in MS Teams using Bot Framework SDK v4

时光总嘲笑我的痴心妄想 提交于 2019-12-11 09:01:51
问题 I am trying to render Adaptive card in MS Teams and getting Message "The specified card version is not supported." I am using Bot Framework SDK v4 - node.js Below is code Snippets: below Adaptive card in welcome.json { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Default text input" } ], "actions": [ { "type": "Action

Botframework v4: Can't render cards

北城余情 提交于 2019-12-11 07:58:40
问题 This is the sample on Botframework v4 docs. But it does not work. It says "Can't Render Card" on the Microsoft bot emulator. What i'm trying to do is a carouselCard but this simple card from Microsoft's sample is already not working. { "type": "message", "text": "Plain text is ok, but sometimes I long for more...", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard",

ContinueDialogAsync does not work when I use the input form of adaptive-cards in the waterfall dialog

落花浮王杯 提交于 2019-12-11 06:58:51
问题 I have been using the EchoBot Template and have recently used the VirtualAssistant Template. In the previous template, there was no problem in submitting the input form data, but this template does not work with ContinueDialogAsync just by submitting the input form data. How can we solve this? Please help me. input form of WaterfallStep card.Body.Add(new AdaptiveTextBlock() { HorizontalAlignment = AdaptiveHorizontalAlignment.Left, Spacing = AdaptiveSpacing.None, Size = AdaptiveTextSize.Small,

botbuilder v 4, dynamic adaptive card with dropdown and capturing values on prompt

心已入冬 提交于 2019-12-11 03:52:50
问题 I'm using ms botbuilder v 4 I'm using webcontrol, webchat.js, latest, react Case is pretty trivial: I want to show list of possible values in dropdown, values will be dynamic (comes from API, i need Titles and Values (Ids) there. Then when user selects some item and clicks OK i want to get value (Id) and work further with that. As i got it for now only way to show dropdown is using adaptive cards, in v3 there was an option to use adaptive cards in prompts and it also planned for next version:

Adaptive Cards - Nested scheme

十年热恋 提交于 2019-12-11 00:27:05
问题 Is it possible to include action inside columnSet/column in the adaptive cards ? For example I want something like this :- ----- Body |___ columnSet |___ column1 | |___textblock | |___image | |___action.url | |___ column2 | |___textblock | |___image | |___action.url I did try it with visualiser but the action.url doesn't show despite the visualiser did not show any error. Thank you for your help. 回答1: Column has a selectAction property that can turn the column into a hit target. { "type":