adaptive-cards

In bot framework v4, how to implemente rating card with comment box and submit button

南笙酒味 提交于 2020-06-12 12:14:08
问题 I have made a bot framework V4 using C#. I have made star rating in adaptive card but I need to add comment box and submit button in it,but my submit button is not working.In debugging mode its not hitting the any method of bot.Kindly help me. I am also attaching the code of my rating card having comment box and submit button in it. { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "color": "Accent", "text": "Rate your experience!" }, { "type":

How to format adaptive cards like the old version of webchat

非 Y 不嫁゛ 提交于 2020-05-31 03:30:09
问题 The new version of the standard webchat channel ("gemini") stripped out all of the formatting. I was able to replicate most of the old interface via tweaks in the botframework-webchat implementation, but I cannot get the adaptive card formatting to match. With the general formatting I was able to get it close, and the adaptiveCardHostConfig tweaks shown here on Github got a bit closer, but I still can't figure out how to replicate it. Specifically, the chat bubble (which is gray in my

Adaptive Card: Dynamically show Card on dropdown click in Adaptive Card : Bot Builder

£可爱£侵袭症+ 提交于 2020-05-17 03:00:23
问题 I have to create a adaptive card which have city of name and each city have different holiday list. I have to show city name in dropdown list and on selection of each city i have to show child card which contains Holiday list. I have develop below code: private async Task<DialogTurnResult> ShowCard(WaterfallStepContext stepContext, CancellationToken cancellationToken) { List<string> city = new List<string>() { "Delhi", "Bangalore", "Mumbai" }; List<string> date = new List<string>() { "1-Jan",

Automatically Bot display rating card after few seconds to take user feedback

丶灬走出姿态 提交于 2020-05-08 17:31:25
问题 I have a bot made using framework v4 in c#. I want that my bot take user feedback once the bot goes idle, or in the case user doesn't responded to bot.I have made my card but not getting any logic to implement above mention feature in my bot. I am also attaching the code of card i made. Also the image of my card. Can any look into it and help me out with this implementation. enter image description here { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight":

How do dynamically bind data to adaptive card?

喜夏-厌秋 提交于 2020-04-30 06:38:12
问题 I have created a bot using c#.net. I am fetching data from the SharePoint list and it will fetch a number of rows. The number of rows is dynamic. I want to add data in a Table format when the bot will answer in Teams. I want to use adaptive cards for showing data in a table format, but how do I bind that data in an adaptive card as the number of rows will change according to question asked to bot? How can I bind data to cad dynamically in c#.net bot code? 回答1: This is no problem at all, you

How to work properly with advanced Adaptive Cards?

一笑奈何 提交于 2020-04-29 03:39:06
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective

How to work properly with advanced Adaptive Cards?

余生颓废 提交于 2020-04-29 03:35:19
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective

How to work properly with advanced Adaptive Cards?

我怕爱的太早我们不能终老 提交于 2020-04-29 03:34:46
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective

How to work properly with advanced Adaptive Cards?

ぃ、小莉子 提交于 2020-04-29 03:33:15
问题 Multiple question 1. Building Adaptive Cards dynamically I'm creating an Order confirm card where there's an entry for every product and quantity. There's also a button to delete the entry and another button to modify its quantity. The amount of products displayed will vary based on the amount of Product objects I've stored in a list. The card is a JSON template without any products that I want to be able to modify through my code (add the product columns, the buttons, their respective

How to map JSON Array with Adaptive Card Row - Using Designer to Create Template

有些话、适合烂在心里 提交于 2020-04-17 20:27:29
问题 I am trying to create a template for the adaptive card. My adaptive card is similar to the expense report adaptive card in many ways. https://adaptivecards.io/samples/ExpenseReport.html It is basically a timesheet submission card for the manager to approve the timesheet. It should look something like this. Preview of the draft Adaptive Card (with a static number of rows) The challenge I am facing is fixing a number of rows, samples provided has a fixed number of rows. In real cases, the