2017-05-30 9 views
1

こんにちは誰も私にボットフレームワークエミュレータでnode.jsを使用してアダプティブカードを作成するのを助けることができますか?私はエミュレータでhttps://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-send-rich-cardsの例を試しましたが、適応カードを作成していません。エミュレータでnode.jsを使用してアダプティブカードを作成するためのサンプルコードが必要です

+0

これは、https://github.com/nwhitmont/botframework-luis-adaptive-cards-weather-example – JasonSowers

答えて

2

AdaptiveCardは、メッセージの添付ファイルとして送信できる単なるJSONです。適応カードJSONsの

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

例は、例えばhereため、AdaptiveCards.ioサイトに掲載されています。

あなたが言及しているリンクには、a sampleもあります。

関連する問題