Adaptive Card Render function for WebChat
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
Hi Kalyani, we are working on an integration with Adaptive Cards, please stay tuned for an upcoming PR. Thanks!
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 I believed that the adaptive cards integration is in the adaptivecards branch right now. It just hasn't merged into the master yet.
@photodesignch can you please share the code base location?
@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.
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.
Hi @Chitma the latest release 0.10.8 may fix this for you. Can you get the latest version and try again?
Hi @miscalencu the latest version 0.10.8 may fix this for you. Can you get the latest version and try again?
I can confirm that everything is OK now. The card is displayed.
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 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?
Yes, i'm writing a bot using .NET
@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.
The Bot Framework is now hosting the latest version of the WebChat. Thanks all 👍