{"action":"created","issue":{"url":"https://api.github.com/repos/smooch/smooch-bot-example/issues/20","repository_url":"https://api.github.com/repos/smooch/smooch-bot-example","labels_url":"https://api.github.com/repos/smooch/smooch-bot-example/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/smooch/smooch-bot-example/issues/20/comments","events_url":"https://api.github.com/repos/smooch/smooch-bot-example/issues/20/events","html_url":"https://github.com/smooch/smooch-bot-example/issues/20","id":170095181,"number":20,"title":"Reply button in web embedded widget opens new browser tab on click","user":{"login":"daveroma","id":1719307,"avatar_url":"https://avatars.githubusercontent.com/u/1719307?v=3","gravatar_id":"","url":"https://api.github.com/users/daveroma","html_url":"https://github.com/daveroma","followers_url":"https://api.github.com/users/daveroma/followers","following_url":"https://api.github.com/users/daveroma/following{/other_user}","gists_url":"https://api.github.com/users/daveroma/gists{/gist_id}","starred_url":"https://api.github.com/users/daveroma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveroma/subscriptions","organizations_url":"https://api.github.com/users/daveroma/orgs","repos_url":"https://api.github.com/users/daveroma/repos","events_url":"https://api.github.com/users/daveroma/events{/privacy}","received_events_url":"https://api.github.com/users/daveroma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-09T06:57:58Z","updated_at":"2016-08-09T15:43:05Z","closed_at":null,"body":"I'm outputting a \"Reply Button\" to the conversation using the following code:\r\n```\r\ngetRole: {\r\n\tprompt: (bot) => bot.say(`What's your primary role at your company? %[Agent](reply:agent) %[Team Manager](reply:team) %[Broker](reply:broker)`),\r\n\treceive: (bot, message) => {\r\n\t\treturn bot.setProp('role', message.text)\r\n\t\t\t.then(() => bot.say(`Thanks!`))\r\n\t\t\t.then(() => 'getBusinessType');\r\n\t}\r\n},\r\n```\r\nWhen one of the Reply buttons is clicked a new browser tab opens instead of the reply value being added to the conversation. After inspecting the DOM I noticed the Reply buttons are actually being output as anchors with `target=\"_blank\"`."},"comment":{"url":"https://api.github.com/repos/smooch/smooch-bot-example/issues/comments/238595039","html_url":"https://github.com/smooch/smooch-bot-example/issues/20#issuecomment-238595039","issue_url":"https://api.github.com/repos/smooch/smooch-bot-example/issues/20","id":238595039,"user":{"login":"daveroma","id":1719307,"avatar_url":"https://avatars.githubusercontent.com/u/1719307?v=3","gravatar_id":"","url":"https://api.github.com/users/daveroma","html_url":"https://github.com/daveroma","followers_url":"https://api.github.com/users/daveroma/followers","following_url":"https://api.github.com/users/daveroma/following{/other_user}","gists_url":"https://api.github.com/users/daveroma/gists{/gist_id}","starred_url":"https://api.github.com/users/daveroma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveroma/subscriptions","organizations_url":"https://api.github.com/users/daveroma/orgs","repos_url":"https://api.github.com/users/daveroma/repos","events_url":"https://api.github.com/users/daveroma/events{/privacy}","received_events_url":"https://api.github.com/users/daveroma/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T15:43:05Z","updated_at":"2016-08-09T15:43:05Z","body":"@mspensieri thanks, so would a postback be a good option for mimicking the behavior of suggested replies in a custom web embedded widget?"}}
{"actor":{"display_login":"daveroma"}}