0
votes

How can I get user response from adaptive card using Adaptive Cards Action.Submit action from MS Teams channel using Microsoft Bot Framework?

Here is my sample Adaptive Card with two button Yes and No. Once the User will click on any button, I need to capture the response in the bot application in the backend implemented using Microsoft Bot Framework 4.

{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "body": [ { "type": "TextBlock", "text": "Does this information help you?" }, { "type": "ActionSet", "actions": [ { "type": "Action.Execute", "title": "Yes", "verb": "personalDetailsFormSubmit", "id": "surveyReplyYes", "userIds": "" , "data":{ "key1": true, "key2":"okay" }, "fallback": { "type": "Action.Submit", "title": "Yes" }
}, { "type": "Action.Execute", "title": "No", "verb": "personalDetailsFormSubmit", "id": "surveyReplyNo", "userIds": "" , "data":{ "key1": false, "key2":"np" }, "fallback": { "type": "Action.Submit", "title": "No" }
} ] } ] }