microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.44k stars 2.44k forks source link

Support for Adaptive Card Templating #6477

Open dmvtech opened 2 years ago

dmvtech commented 2 years ago

Issue

It does not appear that the SDK (and Directline/Webchat) support Adaptive Card Templating.

Using sample 16 and sending the card below, it does not render in Emulator/Webchat/Teams.

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "FactSet",
      "facts": [
        {
          "$data": [
            {
              "key": "1",
              "value": "first value"
            },
            {
              "key": "2",
              "value": "second value"
            }
          ],
          "title": "${key}:",
          "value": "${value}"
        }
      ]
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.3"
}

image

Although, using the Designer and selecting "Bot Framework WebChat" host, it will render correctly (assuming it's just using a HTML renderer or something). image

I am looking for confirmation that it is currently not supported/implemented as well as requesting comment on if this will be supported in the future of the SDK.

From what I can tell, it looks like templating is currently in preview.

This is separate from any issues with using Adaptive Expressions/LG along with Adaptive Card Templating.

Tracking Status

Dotnet SDK [TODO]()

Javascript SDK [TODO]()

Python SDK [TODO]()

Java SDK [TODO]()

Samples [TODO]()

Docs [TODO]()

Tools [TODO]()

jamesemann commented 2 months ago

Hi team, has there been any progress on this item? We have a customer who is impacted by this. Thank you!