{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/2715","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/2715/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/2715/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/2715/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/2715","id":226837928,"number":2715,"title":"[Question] How can i get the response from card buttons?","user":{"login":"Nisthar","id":11994157,"avatar_url":"https://avatars0.githubusercontent.com/u/11994157?v=3","gravatar_id":"","url":"https://api.github.com/users/Nisthar","html_url":"https://github.com/Nisthar","followers_url":"https://api.github.com/users/Nisthar/followers","following_url":"https://api.github.com/users/Nisthar/following{/other_user}","gists_url":"https://api.github.com/users/Nisthar/gists{/gist_id}","starred_url":"https://api.github.com/users/Nisthar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nisthar/subscriptions","organizations_url":"https://api.github.com/users/Nisthar/orgs","repos_url":"https://api.github.com/users/Nisthar/repos","events_url":"https://api.github.com/users/Nisthar/events{/privacy}","received_events_url":"https://api.github.com/users/Nisthar/received_events","type":"User","site_admin":false},"labels":[{"id":429202607,"url":"https://api.github.com/repos/Microsoft/BotBuilder/labels/Node%20SDK","name":"Node SDK","color":"6eff54","default":false},{"id":335881076,"url":"https://api.github.com/repos/Microsoft/BotBuilder/labels/question","name":"question","color":"b60205","default":true}],"state":"open","locked":false,"assignee":{"login":"nwhitmont","id":3075047,"avatar_url":"https://avatars2.githubusercontent.com/u/3075047?v=3","gravatar_id":"","url":"https://api.github.com/users/nwhitmont","html_url":"https://github.com/nwhitmont","followers_url":"https://api.github.com/users/nwhitmont/followers","following_url":"https://api.github.com/users/nwhitmont/following{/other_user}","gists_url":"https://api.github.com/users/nwhitmont/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhitmont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhitmont/subscriptions","organizations_url":"https://api.github.com/users/nwhitmont/orgs","repos_url":"https://api.github.com/users/nwhitmont/repos","events_url":"https://api.github.com/users/nwhitmont/events{/privacy}","received_events_url":"https://api.github.com/users/nwhitmont/received_events","type":"User","site_admin":false},"assignees":[{"login":"nwhitmont","id":3075047,"avatar_url":"https://avatars2.githubusercontent.com/u/3075047?v=3","gravatar_id":"","url":"https://api.github.com/users/nwhitmont","html_url":"https://github.com/nwhitmont","followers_url":"https://api.github.com/users/nwhitmont/followers","following_url":"https://api.github.com/users/nwhitmont/following{/other_user}","gists_url":"https://api.github.com/users/nwhitmont/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhitmont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhitmont/subscriptions","organizations_url":"https://api.github.com/users/nwhitmont/orgs","repos_url":"https://api.github.com/users/nwhitmont/repos","events_url":"https://api.github.com/users/nwhitmont/events{/privacy}","received_events_url":"https://api.github.com/users/nwhitmont/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-05-07T07:55:07Z","updated_at":"2017-05-08T17:25:25Z","closed_at":null,"body":"I want to get the response of a hero card button click on the next waterfall?\r\n\r\nHow to do it?\r\n\r\nI don't want to use dialogAction to route to another dialog. I have this cards which asks various questions and store the response in an object. I want to get the response to store."},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/299932910","html_url":"https://github.com/Microsoft/BotBuilder/issues/2715#issuecomment-299932910","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/2715","id":299932910,"user":{"login":"nwhitmont","id":3075047,"avatar_url":"https://avatars2.githubusercontent.com/u/3075047?v=3","gravatar_id":"","url":"https://api.github.com/users/nwhitmont","html_url":"https://github.com/nwhitmont","followers_url":"https://api.github.com/users/nwhitmont/followers","following_url":"https://api.github.com/users/nwhitmont/following{/other_user}","gists_url":"https://api.github.com/users/nwhitmont/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhitmont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhitmont/subscriptions","organizations_url":"https://api.github.com/users/nwhitmont/orgs","repos_url":"https://api.github.com/users/nwhitmont/repos","events_url":"https://api.github.com/users/nwhitmont/events{/privacy}","received_events_url":"https://api.github.com/users/nwhitmont/received_events","type":"User","site_admin":false},"created_at":"2017-05-08T17:25:25Z","updated_at":"2017-05-08T17:25:25Z","body":"You can find the response data in `result.response.entity`. For example:\r\n\r\n```\r\nvar choicesObject = {\r\n    \"herocard\": \"Hero Card\",\r\n    \"slackbuttons\": \"Slack Buttons\",\r\n    \"basictext\": \"Basic text\"\r\n};\r\n\r\nbot.dialog('/', [\r\n    function (session) {\r\n        session.send('Hi, I am Slack Support Bot!\\n\\n I will show you what is possible with Bot Framework for Slack.');\r\n\r\n        botBuilder.Prompts.choice(session, 'Choose a demo', choicesObject);\r\n    },\r\n    function (session, result) {\r\n        console.log('Result object:\\n'); // log the result object\r\n        console.log(result);\r\n\r\n        switch (result.response.entity) {\r\n            case 'Hero Card':\r\n                session.beginDialog('herocard');\r\n                break;\r\n            case 'Slack Buttons':\r\n                session.beginDialog('buttons');\r\n                break;\r\n            case 'Basic message':\r\n                session.beginDialog('basicMessage');\r\n                break;\r\n            default:\r\n                session.send('invalid choice');\r\n                break;\r\n        }\r\n    }\r\n]);\r\n```"}}
{"actor":{"display_login":"nwhitmont"}}