adaptive-cards

Microsoft Teams bot - debug link unfurling

你。 提交于 2021-02-11 15:27:31
问题 I'm trying to implement pretty simple teams bot but constantly facing an issues with unpredictable behavior. E.g. documentation clearly says that Teams applies Adaptive card as link unfurling response but when I'm sending pretty simple response like: var card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0)); card.Body.Add(new AdaptiveTextBlock { Text = "Title", Size = AdaptiveTextSize.ExtraLarge }); var attachment = new MessagingExtensionAttachment { ContentType = AdaptiveCard.ContentType,

Microsoft Teams bot - debug link unfurling

北慕城南 提交于 2021-02-11 15:26:41
问题 I'm trying to implement pretty simple teams bot but constantly facing an issues with unpredictable behavior. E.g. documentation clearly says that Teams applies Adaptive card as link unfurling response but when I'm sending pretty simple response like: var card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0)); card.Body.Add(new AdaptiveTextBlock { Text = "Title", Size = AdaptiveTextSize.ExtraLarge }); var attachment = new MessagingExtensionAttachment { ContentType = AdaptiveCard.ContentType,

How do I make Input text a required field in adaptive card version 1.2 for webchat

Deadly 提交于 2021-02-11 14:56:33
问题 I am using BotFramework WebChat 4.9.1 and adaptive card 1.2 and I need few fields to be mandatory. Following is the card I have tried but it does not work. Ideally on submit it should highlight with red text that First name is required if the text box is empty. { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "body": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": 2, "items": [ { "type": "TextBlock", "text": "Email

Adaptive Cards Submit actions

◇◆丶佛笑我妖孽 提交于 2021-02-07 14:16:55
问题 I have generated an adaptive card using JSON format with two buttons submit and cancel which are returning a "messageBack" message as submit and cancel respectively. I am using C# to access the reply but I am not able to figure out how to access the reply from the adaptive card. My json is { "type": "AdaptiveCard", "selectAction": { "type": "Action.Submit" }, "body": [ { "type": "TextBlock", "horizontalAlignment": "Center", "size": "Large", "weight": "Bolder", "color": "Accent", "text":

Issue with size limit (limit of 262144 bytes) from bot while displaying adaptive card with large choice list (in botframework)

China☆狼群 提交于 2021-02-02 09:34:13
问题 My team is working on a chatbot with Microsoft bot framework, as a requirement we need to show a dynamic choice list according to what the users select. For this we are hitting an API to fetch the custom response. Please find below an example of the response. { "items": [ { "val": { "Field1": "Hello World" }, "_links": { "self": [ { "href": "API_URL_FOR_THIS_OPTION" } ] } }, { "val": { "Field1": "Hi World" }, "_links": { "self": [ { "href": "API_URL_FOR_THIS_OPTION" } ] } }, ], "_links": {

BotFramework-WebChat - Adaptive Card

人走茶凉 提交于 2021-02-02 03:41:49
问题 Is there a way to add Onchange event to the adaptive card input field that is rendered in webchat (version V4). Example changing a quantity value (Adaptive card inputfield of type number) in the checkout screen should update the Total value (Adaptive card text field) To keep it simple....In the below image once i change the number in the input box it should update in the below text box. everything should happen on the webchat V4(React) client side Below are the options i tried, don't have any

Video playback in Adaptive card of MS teams

*爱你&永不变心* 提交于 2021-01-29 12:34:25
问题 I get a message "Media playback is currently not supported in Adaptive Cards in Teams" on the adaptive card when rendered in the channel MS teams. Although it seems its not officially supported ,i was wondering is there any workaround to play videos on adaptive card in MS Team Channel? Any help would be gladly appreciated. 回答1: Playing video inside an Adaptive Card is not supported. You could try opening a task module on click of a Adaptive card button and play a video inside TaskModule.Here

Is there a way I can give column padding to an adaptive card- Adaptive MS BOT

家住魔仙堡 提交于 2021-01-29 07:02:19
问题 I'm using an adaptive card to display dynamic content in a table using the, adaptive-cards templating package. I have been to customize it but one column is still refusing to fall in place, the column would always have more content than others. So it's falling out of rows, therefore expanding the table and making it look ugly.[![enter image description here][1]][1] async testTableData(context) { var tablePayLoad = { $schema: "http://adaptivecards.io/schemas/adaptive-card.json", "type":

C# Botframework Loop inside of AdaptiveCard

馋奶兔 提交于 2021-01-28 10:43:57
问题 I have created one dialog to evaluate our company consultant in our chatbot (C# botframework), but I can't use for or foreach inside of AdaptiveCard. I need to create one TextBlock() and one ChoiceSet() block for each item from List Pergunta, but I can't do it with foreach. Any suggestion or better idea to create this loop ? Here is my complete dialog code in C#. using System; using System.Threading.Tasks; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Connector; using System

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 {