adaptive-cards

How to add a mention in Teams alongside an adaptive card using Bot Framework

只愿长相守 提交于 2020-03-05 06:04:44
问题 I'm trying to send an activity with an adaptive card attachment and include a mention to the user who created the post. From reading online I found you can't currently include mentions in adaptive cards. Is there a way to mention someone when sending the activity, for example in another attachment?. I have tried setting the activity.Text = mention, this works however it creates two posts, the first with the mention and then another post with the adaptive card as a separate message. I feel

Adaptive Cards as Formflow prompts

三世轮回 提交于 2020-02-05 05:29:07
问题 I made a bot in C# using BotFramework, Adaptive Cards, LUIS and FormFlow. It/he is responsible for managing meetings in a team. return new FormBuilder<MeetingRequestInput>() ... .Field( nameof(MeetingRequestInput.RequestedDate), "What date would you like to meet?" ) ... .Build(); During tests we noticed problems when a user was supposed to type the desired meeting date/time (people would type dd/mm/yy , mm/dd/yy , dd-mm-yy , only dd , etcetra) so we would like to use some kind of "Form" with

Adaptive Card clears input on submit

大城市里の小女人 提交于 2020-01-30 11:43:10
问题 From a Microsoft Teams bot I send an Adaptive Card with input fields and a Submit action. When the user clicks Submit I receive the data entered but the form fields are cleared. Why is this? What am I doing wrong? This behavior is extremely annoying as I can't verify the input and ask the user to correct it. This happens in the desktop Teams app, Teams in a browser, Teams webchat in a web page and the Bot Emulator. In the Emulator it suffices for the field to loose focus. In case it matters I

How to convert custom json to adaptive card json format

亡梦爱人 提交于 2020-01-26 03:57:06
问题 I am looking https://adaptivecards.io/ for my chatbot.I saw we can create any type of card and we can render ui using adaptive json.But how can i convert my custom json to adaptive card json format. Should i need to manually convert based on my custom json response type or is there any way that convert specific json to preferred adaptive card. adaptive card response: { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type"

Is it possible to set an adaptive card with date input in a waterfall dialog?(Using Bot Framework on Web and Teams)

白昼怎懂夜的黑 提交于 2020-01-25 08:57:10
问题 Is it possible to set an adaptive card with date input in a waterfall dialog?(Using Bot Framework on Web and Teams). What I need is user to select a date using adaptive cards Input.Date feature(Which is working everywhere except in Waterfall Dialogues) ie I need this adaptive card(which is already created as json in a local path) and return as context.PromptAsync() to next waterfall step. Thanks, Gokul. 回答1: it's possible. you can design date-input card schema on https://adaptivecards.io

NodeJS base64 image encoding not quite working

巧了我就是萌 提交于 2020-01-17 01:48:05
问题 I am using API to get user's profile photo from O365 cloud. Based on the doc it says response contains *The binary data of the requested photo. * I would like to use this image to be displayed by Data URI format. Ex:- "data:image/png;base64,iVBORw0KGgoAAA ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU 5ErkJggg==" where everything after data:image/png;base64,.... is image data in Base64. I unable to get Base64 encoding working for the image data I

Simple example to store array data in card

半腔热情 提交于 2020-01-16 17:08:47
问题 I would like to understand how to read/write data with Adaptive cards. I can read the data from a submit action, and reply as text, but not sure how present the input data in the card. First place, I would like to add the shootValue to an array that I can carry trough the lifecycle of the card. Can somebody please let me know how to do this? The goal of this question is to understand how to keep existing responses from the card. Like in Battleship, I shoot "A1", type it in an input box,

How can I put “AdaptiveActionSet” in “AdaptiveColumn”?

爱⌒轻易说出口 提交于 2020-01-16 10:34:12
问题 I would like to put "AdaptiveOpenUrlAction" in "AdaptiveColumnSet" for a better layout of adaptivecards. However, my bot emulator does not display the OpenUrl button. How do I add an action button? Perhaps this is a problem with the version of adaptivecards? The version of my adaptivecards is 1.1 (1.0 is also available). I would like to ask for a solution. Below is the code I wrote and the json log I created in the emulator. The Json Log in the ActionSet is written to the emulator, but the

OAuth Implementation in MS Teams and MSBotframeworkV4 Chatbot causing Adaptive Card Submit to Malfunction

余生长醉 提交于 2020-01-15 10:10:06
问题 Linked To This issue is linked to my previous post related to an issue with MS Bot framework oAuth Authentication in MS Teams Chanel. The OAuth Authentication has started working but, am facing this issue as a result of the suggested code changes to enable OAuth Authentication. Linked Post URL: Sign-in button prompts for Credentials and successfully authenticates but, doesn't log-in the user Used the following Git Hub Code Sample as a basis for the OAuth code and retrofitted to my existing

Can I show more than one button/option in teams using cards?

独自空忆成欢 提交于 2020-01-06 05:26:20
问题 I am trying to put 8 options in a card but I need to scroll to get other options horizontally. Is there it possible to make it available in a single card 回答1: Currently you can add only 6 actions directly in an adaptive card. If you want to send more than 6 buttons here are two things you could try: Use ActionSets which would add 6 buttons in each set.In this way you can show 12 buttons in a card. Please try this out in the AdaptiveCards Designer. You could try using AdaptiveCard.ShowCard