botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Support for Adaptive Card Templating

Open dmvtech opened this issue 2 years ago • 1 comments

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

  • [ ] PR
  • [ ] Merged

Javascript SDK TODO

  • [ ] PR
  • [ ] Merged

Python SDK TODO

  • [ ] PR
  • [ ] Merged

Java SDK TODO

  • [ ] PR
  • [ ] Merged

Samples TODO

  • [ ] PR
  • [ ] Merged

Docs TODO

  • [ ] PR
  • [ ] Merged

Tools TODO

  • [ ] PR
  • [ ] Merged

dmvtech avatar Mar 01 '22 03:03 dmvtech