BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Adaptive Card Render function for WebChat

Open kalykodu opened this issue 9 years ago • 14 comments

Hi,

I am trying to use an adaptive card to add images on a button . Is there a render function for the webchat so that i can leverage that for the use case i am trying?

Thanks, Kalyani

kalykodu avatar May 18 '17 18:05 kalykodu

Hi Kalyani, we are working on an integration with Adaptive Cards, please stay tuned for an upcoming PR. Thanks!

danmarshall avatar May 18 '17 23:05 danmarshall

I see that Adaptive Cards have been implemented. But this is still not available in the sources available at https://unpkg.com/botframework-webchat, is this correct? Because I get a "[File of type 'application/vnd.microsoft.card.adaptive']" error using unpkg resources. Any idea when this will be updated?

miscalencu avatar Jun 29 '17 14:06 miscalencu

@miscalencu I believed that the adaptive cards integration is in the adaptivecards branch right now. It just hasn't merged into the master yet.

photodesignch avatar Jun 29 '17 16:06 photodesignch

@photodesignch can you please share the code base location?

PrasenjitSaha avatar Jun 30 '17 11:06 PrasenjitSaha

@PrasenjitSaha

Adaptive card branch has the somewhat up-to-date adaptive cards' integration to webchat. However, it's heavily depend on the adaptive card module in the node_module. If you want to integrate the most up-to-date adaptive cards. You should go to Adaptive Cards repo and build the newest adaptive cards module from there. Then port into your webchat.

photodesignch avatar Jun 30 '17 17:06 photodesignch

Hello All,

I am implementing custom webchat for my bot. I have linked .css and .js files as shown in documentation by providing directline secret. My bot contains adaptive cards to be rendered but i get "[File of type 'application/vnd.microsoft.card.adaptive']" error could anyone please tell me am I doing it right? or is it something I am missing?

I have read some comments above but couldn't get it.

Thanks, Manish Chitre.

manish-chitre avatar Jul 06 '17 06:07 manish-chitre

Hi @Chitma the latest release 0.10.8 may fix this for you. Can you get the latest version and try again?

danmarshall avatar Jul 06 '17 19:07 danmarshall

Hi @miscalencu the latest version 0.10.8 may fix this for you. Can you get the latest version and try again?

danmarshall avatar Jul 06 '17 19:07 danmarshall

I can confirm that everything is OK now. The card is displayed.

miscalencu avatar Jul 09 '17 00:07 miscalencu

How can I go about getting the latest version 0.10.8? All my Microsoft.AdaptiveCards packages in Visual Studio say they are up to date (e.g. Microsoft.AdaptiveCards is at version 0.5.0)

rachelbransom avatar Jul 14 '17 00:07 rachelbransom

@rachelbransom if you are creating a web-based project you can get it by running npm install botframework-webchat. However it sounds like you may be in a C# project?

danmarshall avatar Jul 14 '17 01:07 danmarshall

Yes, i'm writing a bot using .NET

rachelbransom avatar Jul 14 '17 01:07 rachelbransom

@rachelbransom - so then you are using the Iframe-based WebChat. I am working to get the latest WebChat bits up to the BotFramework site. I'm hoping it will be just a couple days.

danmarshall avatar Jul 14 '17 01:07 danmarshall

The Bot Framework is now hosting the latest version of the WebChat. Thanks all 👍

danmarshall avatar Jul 24 '17 21:07 danmarshall