I am learning Bot framework composer. I am trying to add adaptive card using https://adaptivecards.io/designer. I copied the card payload and paste it in the bot responses. It look like this
[import](common.lg)
#title()
-adaptive card
# adaptivecardjson()
- ```
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "${title}",
"wrap": true,
"style": "heading",
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}```
# AdaptiveCard()
[Activity
Attachments = ${json(adaptivecardjson())}
]
In send a response
- ${AdaptiveCard()}
I tested the bot in web chat but I'm getting output like this
{
“type”: “AdaptiveCard”,
“version”: “1.0”,
“body”: [
{
"type": "TextBlock",
"text": "Pick up where you left off?",
"weight": "bolder"
},
Can anyone please help me to implement adaptive cards in bot framework composer.