I have a Bot(using Microsoft Bot Framework) that has a QNA Service And Microsoft Graph API integrated with LUIS.
Problem: I have more than 50 intents inside LUIS.I want to handle all the intents related to QNA with a generic piece of code . I want to Optimise the Code. Also I want to understand from the Intent itself whether it should go to QNA or Graph API
Question:Is there an efficient way in which I can efficiently route from LUIS Model to QNA and Graph API
Sounds like you essentially want to create an app that follows the architecture of building a LUIS app with different intents. From within each intent, you could code your bot to call information you have stored in QnAMaker or the MS Graph API.
To get started, you could follow this tutorial: Integrate QnA Maker and LUIS to distribute your knowledge base.
(Note: in this tutorial there is a small documentation bug regarding the endpoint to query QnAMaker
It says in the docs: var client = new RestClient( qnaServiceHostName + "/qnamaker/knowledgebases/" + knowledgeBaseId + "/generateAnswer");
make sure you DELETE "/qnamaker", as it is accidentally duplicated--it's already included in qnaServiceHostName)
And I don't know what it is specifically you want to accomplish with the Graph API, but there are multiple examples linked in the MS Graph GitHub here and docs on MS Graph overall here, which should help you get started on the right path as well.