{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4886","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4886/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4886/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4886/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/4886","id":343146036,"node_id":"MDU6SXNzdWUzNDMxNDYwMzY=","number":4886,"title":"Dispatch tool doesn't support v3 bot ?","user":{"login":"rjgmail88","id":32375467,"node_id":"MDQ6VXNlcjMyMzc1NDY3","avatar_url":"https://avatars1.githubusercontent.com/u/32375467?v=4","gravatar_id":"","url":"https://api.github.com/users/rjgmail88","html_url":"https://github.com/rjgmail88","followers_url":"https://api.github.com/users/rjgmail88/followers","following_url":"https://api.github.com/users/rjgmail88/following{/other_user}","gists_url":"https://api.github.com/users/rjgmail88/gists{/gist_id}","starred_url":"https://api.github.com/users/rjgmail88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjgmail88/subscriptions","organizations_url":"https://api.github.com/users/rjgmail88/orgs","repos_url":"https://api.github.com/users/rjgmail88/repos","events_url":"https://api.github.com/users/rjgmail88/events{/privacy}","received_events_url":"https://api.github.com/users/rjgmail88/received_events","type":"User","site_admin":false},"labels":[{"id":592602176,"node_id":"MDU6TGFiZWw1OTI2MDIxNzY=","url":"https://api.github.com/repos/Microsoft/BotBuilder/labels/Azure%20App%20Service","name":"Azure App Service","color":"1d76db","default":false},{"id":487732758,"node_id":"MDU6TGFiZWw0ODc3MzI3NTg=","url":"https://api.github.com/repos/Microsoft/BotBuilder/labels/MS%20Teams","name":"MS Teams","color":"5319e7","default":false},{"id":429202607,"node_id":"MDU6TGFiZWw0MjkyMDI2MDc=","url":"https://api.github.com/repos/Microsoft/BotBuilder/labels/Node.js%20SDK","name":"Node.js SDK","color":"6eff54","default":false}],"state":"open","locked":false,"assignee":{"login":"stevengum","id":14935595,"node_id":"MDQ6VXNlcjE0OTM1NTk1","avatar_url":"https://avatars1.githubusercontent.com/u/14935595?v=4","gravatar_id":"","url":"https://api.github.com/users/stevengum","html_url":"https://github.com/stevengum","followers_url":"https://api.github.com/users/stevengum/followers","following_url":"https://api.github.com/users/stevengum/following{/other_user}","gists_url":"https://api.github.com/users/stevengum/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengum/subscriptions","organizations_url":"https://api.github.com/users/stevengum/orgs","repos_url":"https://api.github.com/users/stevengum/repos","events_url":"https://api.github.com/users/stevengum/events{/privacy}","received_events_url":"https://api.github.com/users/stevengum/received_events","type":"User","site_admin":false},"assignees":[{"login":"stevengum","id":14935595,"node_id":"MDQ6VXNlcjE0OTM1NTk1","avatar_url":"https://avatars1.githubusercontent.com/u/14935595?v=4","gravatar_id":"","url":"https://api.github.com/users/stevengum","html_url":"https://github.com/stevengum","followers_url":"https://api.github.com/users/stevengum/followers","following_url":"https://api.github.com/users/stevengum/following{/other_user}","gists_url":"https://api.github.com/users/stevengum/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengum/subscriptions","organizations_url":"https://api.github.com/users/stevengum/orgs","repos_url":"https://api.github.com/users/stevengum/repos","events_url":"https://api.github.com/users/stevengum/events{/privacy}","received_events_url":"https://api.github.com/users/stevengum/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-07-20T15:14:07Z","updated_at":"2018-08-07T15:57:49Z","closed_at":null,"author_association":"NONE","body":"## Bot Info\r\n* SDK Platform: Node.js\r\n* SDK Version: 3.15\r\n* Active Channels: MS Teams\r\n* Deployment Environment: Azure App Service\r\n\r\n## Issue Description\r\nI see sample code here [https://github.com/Microsoft/botbuilder-js/blob/master/samples/dispatch-es6/app.js](https://github.com/Microsoft/botbuilder-js/blob/master/samples/dispatch-es6/app.js)\r\ndemonstrates how to use a LUIS model generated by the Dispatch tool [https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-dispatch?view=azure-bot-service-4.0&tabs=jsaddref%2Cjsbotconfig#integrate-multiple-luis-apps-and-qna-services-with-the-dispatch-tool](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-dispatch?view=azure-bot-service-4.0&tabs=jsaddref%2Cjsbotconfig#integrate-multiple-luis-apps-and-qna-services-with-the-dispatch-tool)\r\n\r\nIs it possible to use SDK V3 Bot with Dispatch tool  ? We have v3 bot that's in production and we have gone so far now so its difficult to switch over v4 Bot. However, there are awesome capabilities like LUIS dispatch tool that we would like to leverage.\r\n\r\n## Code Example\r\nIs there any similar example in V3 like v4 [https://github.com/Microsoft/botbuilder-js/tree/master/samples/dispatch-es6](https://github.com/Microsoft/botbuilder-js/tree/master/samples/dispatch-es6)\r\n\r\n## Expected Behavior\r\nI should be able to use dispatch-tool in v3 bot. \r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/411108247","html_url":"https://github.com/Microsoft/BotBuilder/issues/4886#issuecomment-411108247","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4886","id":411108247,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTEwODI0Nw==","user":{"login":"rjgmail88","id":32375467,"node_id":"MDQ6VXNlcjMyMzc1NDY3","avatar_url":"https://avatars1.githubusercontent.com/u/32375467?v=4","gravatar_id":"","url":"https://api.github.com/users/rjgmail88","html_url":"https://github.com/rjgmail88","followers_url":"https://api.github.com/users/rjgmail88/followers","following_url":"https://api.github.com/users/rjgmail88/following{/other_user}","gists_url":"https://api.github.com/users/rjgmail88/gists{/gist_id}","starred_url":"https://api.github.com/users/rjgmail88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjgmail88/subscriptions","organizations_url":"https://api.github.com/users/rjgmail88/orgs","repos_url":"https://api.github.com/users/rjgmail88/repos","events_url":"https://api.github.com/users/rjgmail88/events{/privacy}","received_events_url":"https://api.github.com/users/rjgmail88/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T15:57:49Z","updated_at":"2018-08-07T15:57:49Z","author_association":"NONE","body":"@Kartik1607 , thanks for you advice. following code from [example](https://github.com/Microsoft/botbuilder-js/blob/master/samples/dispatch-es6/app.js) shows/doing what you have shown above. \r\n\r\n```\r\nconst luisResults = dispatcher.get(context);\r\n\r\n            // Extract the top intent from LUIS and use it to select which LUIS application to dispatch to\r\n            const **topIntent** = LuisRecognizer.topIntent(luisResults);\r\n\r\nconst isMessage = context.activity.type === 'message';\r\n            if (isMessage) {\r\n                switch (**topIntent**) {\r\n                    case 'l_homeautomation':\r\n                        const homeAutoResults = await homeAutomation.recognize(context);\r\n                        const **topHomeAutoIntent** = LuisRecognizer.topIntent(homeAutoResults);\r\n                        await dc.begin(**topHomeAutoIntent**, homeAutoResults);\r\n                        break;\r\n```\r\n\r\nbut I trying to understand how can I get it working for v3 botbuilder because there are following differences.  \r\n\r\nThis isnt possible in v3\r\n```\r\nconst faq = new QnAMaker(...)\r\n```\r\n\r\nadding luis recognizer isnt ready in v3\r\n\r\n```\r\nconst weather = new LuisRecognizer({\r\n    appId: '',\r\n    subscriptionKey: process.env.LUIS_SUBSCRIPTION_KEY,\r\n    serviceEndpoint: 'https://westus.api.cognitive.microsoft.com/',\r\n    verbose: true\r\n});\r\n``` \r\nand finally \r\n\r\n```\r\nconst { LuisRecognizer, QnAMaker } = require('botbuilder-ai');\r\n```\r\n\r\nYou said\r\n\r\n> You can call this dispatcher just like any other luis model. Dispatcher would return the list of intents (corresponding to LUIS model) and their confidence score. Through this you would get to know, which luis model to call to get the real intent and entities for the utterance.\r\n\r\nI tried using this approach on v3 bot by just adding Dispatcher app as LuisRecognizer on my bol. Just same as what I would do to existing any luis app.\r\n\r\n```\r\nvar recognizer = new builder.LuisRecognizer(process.env.LUIS_MODEL_URL);\r\n```\r\n\r\nand that return me just array of intents as you mentioned. \r\n\r\n```\r\n\r\nquery | \"turn the lights off\"\r\n-- | --\r\ntopScoringIntent |  \r\nintent | \"l_homeautomation\"\r\nscore | 0.9976286\r\nintents |  \r\n0 |  \r\nintent | \"l_homeautomation\"\r\nscore | 0.9976286\r\n1 |  \r\nintent | \"q_GinaFAQ\"\r\nscore | 0.00330403377\r\n2 |  \r\nintent | \"l_weather\"\r\nscore | 0.00276926183\r\n3 |  \r\nintent | \"None\"\r\nscore | 0.00148475915\r\nentities | []\r\n\r\n```\r\nBut these are not actual intents from my app. ex:- l_homeautomation isn't an intent so I cant simply call trigger dialog on it.  What I need is intents from Intent **l_homeautomation**"}}
{"actor":{"display_login":"rjgmail88"}}