{"action":"created","issue":{"url":"https://api.github.com/repos/howdyai/botkit-middleware-witai/issues/4","repository_url":"https://api.github.com/repos/howdyai/botkit-middleware-witai","labels_url":"https://api.github.com/repos/howdyai/botkit-middleware-witai/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/howdyai/botkit-middleware-witai/issues/4/comments","events_url":"https://api.github.com/repos/howdyai/botkit-middleware-witai/issues/4/events","html_url":"https://github.com/howdyai/botkit-middleware-witai/issues/4","id":153356612,"number":4,"title":"using old version of wit.ai api","user":{"login":"dfischer","id":2424,"avatar_url":"https://avatars.githubusercontent.com/u/2424?v=3","gravatar_id":"","url":"https://api.github.com/users/dfischer","html_url":"https://github.com/dfischer","followers_url":"https://api.github.com/users/dfischer/followers","following_url":"https://api.github.com/users/dfischer/following{/other_user}","gists_url":"https://api.github.com/users/dfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/dfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfischer/subscriptions","organizations_url":"https://api.github.com/users/dfischer/orgs","repos_url":"https://api.github.com/users/dfischer/repos","events_url":"https://api.github.com/users/dfischer/events{/privacy}","received_events_url":"https://api.github.com/users/dfischer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-06T00:46:40Z","updated_at":"2016-05-13T17:55:42Z","closed_at":null,"body":"With wit.ai new api it's no longer appropriate to classify things off of the intent attribute.\r\n\r\nIt seems there has to be another strategy to figure it out.\r\n\r\n----\r\n\r\nInvestigating this."},"comment":{"url":"https://api.github.com/repos/howdyai/botkit-middleware-witai/issues/comments/219114692","html_url":"https://github.com/howdyai/botkit-middleware-witai/issues/4#issuecomment-219114692","issue_url":"https://api.github.com/repos/howdyai/botkit-middleware-witai/issues/4","id":219114692,"user":{"login":"darkin1","id":1249151,"avatar_url":"https://avatars.githubusercontent.com/u/1249151?v=3","gravatar_id":"","url":"https://api.github.com/users/darkin1","html_url":"https://github.com/darkin1","followers_url":"https://api.github.com/users/darkin1/followers","following_url":"https://api.github.com/users/darkin1/following{/other_user}","gists_url":"https://api.github.com/users/darkin1/gists{/gist_id}","starred_url":"https://api.github.com/users/darkin1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkin1/subscriptions","organizations_url":"https://api.github.com/users/darkin1/orgs","repos_url":"https://api.github.com/users/darkin1/repos","events_url":"https://api.github.com/users/darkin1/events{/privacy}","received_events_url":"https://api.github.com/users/darkin1/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T17:55:42Z","updated_at":"2016-05-13T17:55:42Z","body":"@dfischer I see that they change response. Some quick fix and it's work\r\n\r\n```\r\n        if (message.text ) {\r\n            client.message(message.text, function(error, data) {\r\n\r\n                if (error) {\r\n                    next(error);\r\n                } else {\r\n                    // not sure how to handle multiple outcomes right now\r\n                    message.entities = data.entities;\r\n                    next();\r\n                }\r\n            });\r\n```\r\n\r\nAnd i noticed that confidence works fine now \r\n\r\n```\r\ncontact: \r\nbot_1    | 17:54:18 bot-0    [ { body: '<@U056LAGRM>',\r\nbot_1    | 17:54:18 bot-0        value: [Object],\r\nbot_1    | 17:54:18 bot-0        confidence: 0.9678939346906366,\r\nbot_1    | 17:54:18 bot-0        start: 6,\r\nbot_1    | 17:54:18 bot-0        end: 18,\r\nbot_1    | 17:54:18 bot-0        entity: 'contact' } ] }\r\n```"}}