需要在模拟器上使用 node.js 创建自适应卡的示例代码

Need a sample code for creating adaptive cards using node.js on emulator

嗨,谁能帮助我使用 node.js 在 bot 框架模拟器上创建自适应卡片?我在模拟器上尝试了 https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-send-rich-cards 上的示例,但它没有创建自适应卡。

A​​daptiveCard 只是一个 JSON,您可以将其作为邮件的附件发送。

 session.send(new builder.Message(session).addAttachment({
     contentType: "application/vnd.microsoft.card.adaptive",
     content: // here you should put your json.
 }));

可以在 AdaptiveCards.io site, for example here 上找到自适应卡片 JSON 的示例。

你说的link里面还有a sample.