node.js - Adaptive Cards doesn't work in MBF's Emulator running in Ubuntu 16.04 -
i trying implement adaptivecard
1 of dialogs using node.js. once run emulator following message instead of rendered adaptivecard
: [file of type 'application/vnd.microsoft.card.adaptive']
.
can tell me can problem?
i running on ubuntu 16.04, mbf emulator v.3.5.31-alpha, microsoft-adaptivecards v.0.6.1.
here code inside of 1 of dialogs:
var msg = new builder.message(session) .addattachment({ contenttype: "application/vnd.microsoft.card.adaptive", content: { type: "adaptivecard", body: [ { "type": "textblock", "text": msg_text, }, { "type": "input.choiceset", "id": "mycolor4", "ismultiselect": true, "value": "1", "style": "expanded", "choices": [ { "title": "red", "value": "1", "isselected": true }, { "title": "green", "value": "2" }, { "title": "blue", "value": "3", "isselected": true } ] } ], "actions": [ { "type": "action.submit", "title": "sent", "data": { "myproperty": 12 } } ], } }); session.send(msg);
this detailed response, contains elements of adaptivecard
declared(but still not render):
{ "type": "message", "attachments": [ { "contenttype": "application/vnd.microsoft.card.adaptive", "content": { "type": "adaptivecard", "body": [ { "type": "textblock", "text": "what color want?" }, { "type": "input.choiceset", "id": "mycolor4", "ismultiselect": true, "value": "1", "style": "expanded", "choices": [ { "title": "red", "value": "1", "isselected": true }, { "title": "green", "value": "2" }, { "title": "blue", "value": "3", "isselected": true } ] } ], "actions": [ { "type": "action.submit", "title": "sent", "data": { "myproperty": 12 } } ] } } ], "locale": "en-us", "localtimestamp": "2017-09-17t19:21:17+02:00", "from": { "id": "default-bot", "name": "bot" }, "recipient": { "id": "default-user" }, "inputhint": "acceptinginput", "id": "heam84b9dn5b", "replytoid": "71j1d6mbmk3l", "channelid": "emulator", "timestamp": "2017-09-17t17:21:17.379z", "conversation": { "id": "fdikc23llm5" } }
Comments
Post a Comment