Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 4.89 KB

Configuration.md

File metadata and controls

80 lines (52 loc) · 4.89 KB

Azure Health Bot: Consuming Cognitive Services Demo

Introduction

We need to perform following tasks to successfully call any API from Health Bot.

  • An API you would like to consume. You can consume someone else's API or an API developed for you as well. We will consume Azure Cognitive Services TextAnalytics or preview link and Question Answering APIs.

  • Azure Health Bot from which we'll consume APIs. We will create data connection to consume following APIs:

    • Entity Recognition,
    • Entity Linking,
    • Recognize PII,
    • Key Phrase Extraction,
    • Sentiment Analysis,
    • Language Detection,
    • Answer Questions (Static) - using question embedded in the API call,
    • Answer Questions (Dynamic) - by passing user supplied question to the API call.

    Note

Create Language Studio instance in Azure

Create Question Answering instance in Azure

Create Azure Health Bot in Azure

Go through these steps to get familiar with the Azure Health Bot:

Now, you should be familiar with the Health Bot. You should be able to create custom scenarios by adding prompt, statements etc. This is nothing but a workflow based IDE (Integrated Development Environment) where you can execute code behind the scenes without writing any!

Create Language Service (Text Analytics) instance

  • Login to Azure Portal

  • Create a New resource.
    Language Service Resource

  • Select Language Service resource.
    Language Service Resource

  • Select Language Service features as desired. For demo, select all.
    Additional Features

  • Supply required subscription, resource group, region, pricing details and name for your resource. For demo, Free tier is sufficient.
    Create TextAnalytics

  • You can supply additional details in Network, Identity and Tags screen if needed.

  • Before you click on Review + create, you need to accept Microsoft's Responsible AI terms and conditions. Click Microsoft Responsible AI principles in practice for more details. You can also review service agreements on the Review + create page.
    Review + create

Language Service TextAnalytics Configurations

Now, let's save a couple of the key settings we'll need for our demo. They are

  • Subscription Key: We will use this option to authenticate API calls. For production choose sophisticated authentications like AAD or equivalent authentication mechanism.

  • Endpoint url: The service url for making API call.

Review + create

Note: Save subscription Key and Endpoint Url in notepad for later use.

Next

Import sample to Azure Health Bot