[Skype SMBA] Encountered error when used Adaptive Cards
Pre-flight checklist
- [ ] I posted a question about this issue on Stack Overflow using the tag
botframework. - [ ] I have searched the existing issues before logging a new one.
System Information (Required)
- SDK Pletform: Node?
- SDK Version: 3.8.3
- Development Environment: localhost
Issue Description
when I want to send a message container a adaptive card attachment, It appeared a error:
Error: Request to 'https://smba.trafficmanager.net/apac-client-ss.msg/v3/conversations/a%3A1bDvKvzkBsuUKhMFE7AyNGF2L5sX6_CTpKZ1pdfw6hbd9MIj0mdtONhSzxx3x8KAH5yYh2xF-kZxT71Y4dCXkbPMaI8JhXEYoDwXjkj_1TO9k_fcq3A8f0TQ38Fr3Wex4/activities/1495005732722' failed: [400] Bad Request
at Request._callback (d:\git_code\swat_oa_bot\node_modules\botbuilder\lib\bots\ChatConnector.js:452:46)
at Request.self.callback (d:\git_code\swat_oa_bot\node_modules\request\request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.
Example Code
bot.dialog('/', [ function (session, args) { var msg = new builder.Message(session) .addAttachment({ contentType: "application/vnd.microsoft.card.adaptive", content: { type: "AdaptiveCard", body: [ { "type": "TextBlock", "text": "Adaptive Card design session", "size": "large", "weight": "bolder" }, { "type": "TextBlock", "text": "Conf Room 112/3377 (10)" }, { "type": "TextBlock", "text": "12:30 PM - 1:30 PM" } ], "actions": [ { "type": "Action.Http", "method": "POST", "url": "http://foo.com", "title": "Snooze" } ] } }); session.send(msg); } ]);
Expected Behavior
What you expected to happen.
Actual Results
What actually happened. Please give examples and support it with screenshots, copied output or error messages.
Unfortunately Skype apps don't yet support Adaptive cards - we're working on them for a future release.
@nickcordrey ok.. thanks for your answer. But I have tried to use in ms teams, it is the same error above.
MS Teams also does not support adaptive cards yet.
@nwhitmont ok, I got it, thanks for help. I want to confirm that:
1.when ms teams support adaptive cards? 2.which channel support adaptive cards? thanks!
Recently Microsoft introduced Bot Framework Adaptive Cards. I want to know this is in preview stage or implemented. Please let me know any of these channels like Skype,Facebook,Microsoft Teams,kik,Slack and Telegram supports Bot Framework Adaptive Cards,Please reply asap.
@lweibin and @RaoVenka Please see answer here https://github.com/Microsoft/BotBuilder/issues/2803