adaptive-cards

Adaptive cards - serving images in bytes

百般思念 提交于 2020-01-03 04:49:29
问题 I'm trying to put an image in Adaptive Card in Bot framework like this way: card.Body.Add(new AdaptiveImage() { Type = "Image", Url = new Uri(pictureUrl), Size = AdaptiveImageSize.Large }); It's working. The problem is with Url. I get images from the external web service in Base64 format. But sometimes I get too large image so I get The uri string is too long exception. Is there any way how to handle that problem? For example, enable putting the image in Adaptive card in bytes. 回答1: thanks

How to get message back from Adaptive card

偶尔善良 提交于 2019-12-24 18:56:25
问题 I use an adaptive card that has 2 actions. "actions": [ { "type": "Action.Submit", "title": "Cards related queries", "data": "Cards_intent" }, { "type": "Action.Submit", "title": "Accounts related queries", "data": "Accounts_intent" } ] But when the users select on action, I don't want the user to see "Accounts_intent" displayed in the chat box. Instead, I want "Accounts related queries" to be displayed The issue: 回答1: I think you have a few options Option #1 If you want to keep using an

Botframework - resize bot chat in width [duplicate]

会有一股神秘感。 提交于 2019-12-24 04:28:06
问题 This question already has an answer here : How to change the size and other properties of the chat window (1 answer) Closed last year . Is it possible to resize the width of the chat for botframework ? Currently I'm testing on a emulator. Basically I want make my bot chat wider to the right. As you can see in the picture, the chat width remain the same despite me increasing the size of the columns, add more columns, and so on. Currently using adaptive card. 回答1: If you are using the iframe

Adaptive Cards in Carousel Layout in Facebook Messenger using Bot Framework

白昼怎懂夜的黑 提交于 2019-12-21 21:24:12
问题 I was trying to use Adaptive Cards for my chatbot using Bot Framework, to use in FB Messenger, with a carousel layout. But apparently FB doesn't support Adaptive Cards, and renders them into an image + buttons. So what I wanted to know, as a way to go around it, was if it's possible to manually render the adaptive cards Json code into images, and use those images for the layout. I've tried simply adding the cards as they were and setting the layout, but Facebook simply lists them, not in

Microsoft Teams Webhook Generating 400 for Adaptive Card

旧巷老猫 提交于 2019-12-21 02:01:33
问题 I have a functioning webhook to a Teams channel to which I can successfully post messages. I am now trying to post an adaptive card to the webhook. Using Postman and performing a Post to https://outlook.office.com/webhook/xyz, with Content-Type set to application/json in the header and the following adaptive card set in the body. { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "speak": "Nothing to say.", "body": [ { "type":

Microsoft Teams Webhook Generating 400 for Adaptive Card

大憨熊 提交于 2019-12-21 02:01:23
问题 I have a functioning webhook to a Teams channel to which I can successfully post messages. I am now trying to post an adaptive card to the webhook. Using Postman and performing a Post to https://outlook.office.com/webhook/xyz, with Content-Type set to application/json in the header and the following adaptive card set in the body. { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "speak": "Nothing to say.", "body": [ { "type":

Capture values submitted by Adaptive Card in waterfall dialog

落花浮王杯 提交于 2019-12-20 07:38:53
问题 I have followed the advice of this question, the comment on this issue and also this answer. Inside my Waterfall Dialog: Displaying the adaptive card Sending a text prompt right after displaying an adaptive card Inside my main bot class: Setting the Text property of the Activity to that of the extracted value from the Value property of the activity if the activity is a message that contains postback data. I have tried using a AdaptiveTextInput or AdaptiveDateInput as the control to submit the

How to update an adaptive card which is already sent to user from BOT?

回眸只為那壹抹淺笑 提交于 2019-12-20 04:54:02
问题 I have already sent the card with capturing the details and with buttons.After clicking on submit from task module which will save details through http API here the activity type is Invoke. Now i have to update the existing adaptive Card. I have the code to update the message, but how to update the card or resend the card again. connector = new ConnectorClient(new Uri(activity.ServiceUrl)); reply = activity.CreateReply($"You sent {activity.Text} which was {activity.Text.Length} characters");

How to update an adaptive card which is already sent to user from BOT?

*爱你&永不变心* 提交于 2019-12-20 04:53:05
问题 I have already sent the card with capturing the details and with buttons.After clicking on submit from task module which will save details through http API here the activity type is Invoke. Now i have to update the existing adaptive Card. I have the code to update the message, but how to update the card or resend the card again. connector = new ConnectorClient(new Uri(activity.ServiceUrl)); reply = activity.CreateReply($"You sent {activity.Text} which was {activity.Text.Length} characters");

Can we add text field dynamically

别等时光非礼了梦想. 提交于 2019-12-18 09:38:10
问题 I've created an adaptive card(using json) in my chatbot that takes input from users. I want to add a button that enables the user to add a new text field every time the user clicks on the insert field. (i.e., the user can click on insert button to enter details of education (school, college etc.)) Can this be achieved in adaptive cards? I also wanted to know, can adaptive cards be designed in any other language (excluding json) 回答1: The easiest way to do this is with Action.ShowCard : { "type