Download Knowledgebase Details Using Cognitive Service And Microsoft Flow

Introduction

In this article, you will see how to download knowledgebase details using Cognitive Service and Microsoft Flow. I have created a simple SharePoint list with the following fields.
Download Knowledgebase Details using Cognitive Service and Microsoft Flow 

Flow Design

Download Knowledgebase Details using Cognitive Service and Microsoft Flow 

Get Subscription Key

  1. Navigate to Azure Portal here.
  2. In the left navigation, click Create a resource.
  3. In Azure Marketplace, search for "QnA Maker" and then click "Create".
  4. Fill all the required details and click Create.
  5. It might take a few minutes to deploy the resource. Click "All Resources" in the left navigation and then click the newly created QnA Maker resource.
  6. Click "Keys" under Resource Management, and copy the key value.

Create Knowledge Base

  1. Navigate to QnA Maker Portal from here.
  2. Create a new Knowledge Base and publish.

Create Flow

  1. Navigate to flow site here.
  2. In the top navigation, click "My flows".
  3. Click "Create from blank".
  4. Select "SharePoint – When an item is created" and select the Site Address and List Name, as shown below.

    Download Knowledgebase Details using Cognitive Service and Microsoft Flow
  1. Click "Next Step" and search for QnA Maker as shown below. Select the "Download knowledgebase details" option. 

    Download Knowledgebase Details using Cognitive Service and Microsoft Flow
  1. Enter the following details and click "Create".

    Download Knowledgebase Details using Cognitive Service and Microsoft Flow
    • Connection Name –a user-friendly name for the connection
    • API Key – Copied from the above "Get Subscription Key" section
  1. Add the dynamic content Knowledge Base Id (when an item is created – action).

    Download Knowledgebase Details using Cognitive Service and Microsoft Flow
  1. Click "Next" and select "SharePoint – Update item". Fill all the required details and add the dynamic content (output from Download knowledgebase details action) as shown below.

    Download Knowledgebase Details using Cognitive Service and Microsoft Flow

Testing the Flow

  1. Navigate to QnA Maker Portal and get the Knowledgebase Id as shown below.

    Download Knowledgebase Details using Cognitive Service and Microsoft Flow
  1. Navigate to the SharePoint list and create a new item with knowledgebase Id. After a few seconds, the flow updates the other fields, as shown below.

    Download Knowledgebase Details using Cognitive Service and Microsoft Flow

Reference

https://docs.microsoft.com/en-us/connectors/cognitiveservicesqnamaker/#downloadknowledgebaseold

Summary

Thus, in this article, you saw how to download knowledgebase details using Cognitive Services and Microsoft Flow.


Similar Articles