Table of Contents
Install the Microsoft QnA Maker Extension
The first step is to install the required integration. In this case, a so-called Extension is uploaded to Cognigy.AI. Thus, open the Extensions Library in another tab and download the Microsoft QnA Maker Extension by clicking on the Download button. Now follow this installation guide and upload the Extension to Cognigy, where it will be displayed as the following:
Congrats! The installation of the Extension is finished!
Create a QnA Maker Connection
In this step, a so-called Connection will be created. If one, in Cognigy.AI, clicks on the previously uploaded Extension, the following details can be observed:
The red-marked part in the above figure shows, that there is one Connection required. Therefore, it needs to be created and filled with the QnA Maker instance information. In order to do so, one initial Flow Node needs to be added to a Flow:
- Create a new Flow in Cognigy.AI
- Inside of the Flow Chart, click on + and navigate to the Microsoft QnA Maker Extension:
- Add the Generate Answer Flow Node by clicking on it:
- In order to edit the Flow Node and create the Connection, please click on it. An Edit Node menu will be opened on the right side of the screen:
- Right next to the Connection field (the first one at the top), one needs to click on the + button. The Connection menu will be opened at the center of the screen:
- The required values can be copied from the Settings page of the referenced QnA Maker Knowledgebase:
- Login to https://www.qnamaker.ai/
- Select the Knowledgebase that should be connected
- On the top right, click on Settings
- Scroll down to the Deployment details
- Insert the related Microsoft QnA Maker credentials/information of the organization to the fields.
- The URL of the hosted QnA Maker instance.
- The authentication key is provided after the "EndpointKey" name in the Authorization information.
- The actual identifier (ID) of the used Knowledgebase in QnA Maker.
- Click on the Create button
Generate an answer
Finally, a virtual agent could generate a fitting answer to a user's question if no intent was found in Cognigy.AI. A possible Flow Chart could look such as the following:
This straightforward configuration instantly extends the available list of possible FAQ answers in the chat/voice conversation. In this case, the Generate Answer Flow Node exposes two different so-called Child Nodes, helping the designer developing a valid logic.
On Found Answer
If a fitting answer was found in the QnA Maker Knowledgebase, the On Found path is executed -- the dynamic answer can be sent to the user in a Say Node
while the used CognigyScript is:
The entire result JSON data information is stored in the Input or Context object:
"Who is Cognigy?"
"answer": "Cognigy is an enterprise software provider for Conversational AI automation. Our platform, Cognigy.AI, automates customer and employee communications. Available in on-premises and SaaS environments, Cognigy.AI enables enterprises to have natural language conversations with their users on any channel – webchat, SMS, voice and mobile apps – and in any language.",
On Not Found Answer
However, if even the QnA Maker database did not find a fitting answer, the On Not Found path is executed which could lead to a live chat handover event. Again, the Extension's result JSON data is stored in the Input or Context object -- based on the configuration:
"answer": "No good match found in KB.",