我正在学习 Bot 框架作曲家。我正在尝试使用https://adaptivecards.io/designer添加自适应卡。我复制了卡有效负载并将其粘贴到机器人响应中。它看起来像这样
[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())}
]
在发送响应
- ${AdaptiveCard()}
我在网络聊天中测试了机器人,但我得到了这样的输出
{
“type”: “AdaptiveCard”,
“version”: “1.0”,
“body”: [
{
"type": "TextBlock",
"text": "Pick up where you left off?",
"weight": "bolder"
},
谁能帮我在机器人框架作曲家中实现自适应卡。