How to configure Microsoft Healthbot? - azure

I'm working on a project to integrate a healthcare assistant bot on a mobile application with React Native
I saw that there was a bot from Microsoft for health and therefore adapted for my project, so I would like to use it
So I created an account on Azure and created my bot, however I can't and don't really understand how to configure it to use it and integrate it into my project.
On the Microsoft documentation I see that we have to configure the DirectLine to use a Microsoft bot but I can't activate this on mine, I don't have the option, moreover it's considered as a Saas and not as a bot application on azure, so I don't have the same options and I don't really understand exactly why (I tried with the cli without success, so I think we can't configure DirectLine on a HealthBot)
Then I found this https://github.com/Microsoft/HealthBotContainerSample/tree/live_agent_handoff
The README.md indicates that we must deploy the bot, which I did, I also set the variables to add. But then I don't know exactly what to do to integrate that into my application. I also wonder how to take into account the creation of scenarios on azure.
If someone could enlighten me on how I should proceed to integrate this, I would be grateful. I also saw that there was a module (react-gifted-chat) for creating chat bot, but in the tutorials I meet, everyone uses the DirectLine, so I wonder if it's possible or do I have to go through a Web View?
Thank you in advance!

Microsoft has a doc, titled “Embed a health bot instance in your application”, that should answer your questions. You can find the doc here.
It includes:
GitHub samples
Code examples
Steps for securing communication
Information on how to setup Direct Line
A link and steps for setting up WebChat as an iframe or web page element (in a div, for example)
Hope of help!

Related

Azure Question answering bot - how do I add authentication?

I have created a basic Azure 'Custom Question Answering' bot (https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/question-answering/quickstart/sdk?pivots=studio). I created the bot through Language Studio:
bot creation through language studio
I want to add authentication so that only users with who are part of my Azure AD are able to interact with the bot. I've tried following the tutorials listed below:
https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-authentication?view=azure-bot-service-4.0&tabs=singletenant%2Caadv2%2Ccsharp
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/add-authentication?tabs=dotnet%2Cdotnet-sample
I've not been able to follow these tutorials, as they assume the bot is built from either of the following code bases:
https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/46.teams-auth
https://github.com/Microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/18.bot-authentication
Whereas the bot that I deployed through Language Studio looks like it is built from the following framework:
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/12.customQABot
How can I add authentication to the custom question answering bot I deployed through Azure Language Studio (Cognitive services)? Currently anyone would be bale to interact with my bot.
Thanks
To add authentication, there is a need to install a library supportive with Python Programming.
pip install azure-ai-language-questionanswering
Add the above library to start authentication process.
Authenticate with Client
Get an API key from Azure Cognitive Services.
az cognitiveservices account keys list --resource-group <resource-group-name> --name <resource-name>
To Instantiate QuestioningAnswerClient
from azure.core.credentials import AzureKeyCredential
from azure.ai.language.questionanswering import QuestionAnsweringClient
endpoint = "https://{myaccount}.api.cognitive.microsoft.com"
credential = AzureKeyCredential("{api-key}")
client = QuestionAnsweringClient(endpoint, credential)
For further reference, Check the below link:
https://pypi.org/project/azure-ai-language-questionanswering/
https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell
Since these are all samples, they're all designed to do one thing for simplicity's sake. What you need to do is actually straightforward (in concept, if not always in practice). You should look at the code and docs of the auth samples and integrate the authentication sections with your CQA bot. Alternatively, you could integrate the CQA sections with an auth bot. Regardless of which base you start with, the goal is the same. Combine the two.

How to integrate Microsoft Project Dashboard in web application?

I am working on a project where I need to integrate MS Project Dashboard in my angular based web application with Node backend api. We want to embed MS Project dashboard in our application. However, I don't know if this is possible and if possible from where should I begin.
I can find references to PowerBI Dashboard integrations but can't find anything about MS Project dashboard integration, even on microsoft.
I am wondering if anyone can provide me a direction or can share any references.
In the end what I want to achieve is user can create project on msproject from our web application.
At this point the above functionality doesn't exists. But i remember a related uservoice item posted in the Microsoft uservoice/feature request. If you wish, go ahead, upvote it, so that it can be considered to be implemented.

Azure Bot Service Sample AuthenticationBot Sign-in card not working (application/vnd.microsoft.card.oauth)

I am following this tutorial using the v4 SDK.
Add authentication to your bot via Azure Bot Service
Put simply, I click on the "Sign In" button from the OAuthPrompt card, a window pops up with the title "Sign In" and the screen is blank. This is using the bot service emulator.
I could be wrong but I feel like it's something to do with the content type.
application/vnd.microsoft.card.oauth
I wish I had more information to offer.
From the samples, I get the same outcome whether I use the BotAuthenticationMSGraph or AuthenticationBot example.
Thanks for the assistance. I've managed to progress but am not fully over the line yet. Maybe it's clearer for others, but for me, I followed what I thought were the instructions and did this:
Create Azure AD v2 Application (apps.dev.microsoft.com)
Create BOT Registration (Azure Portal)
... but in step 1. above, it automatically creates the app for you when you create the "Bot Channels Registration" so step 2 of creating the application is not required I created a second app and used that one in my settings and I think that's where I was going wrong.
Thanks for your help.
On another note, once the above was corrected and I removed myself from the company Wifi, it all came good. Network blocking issue!

Impossible to choose any channel in Azure Bot Service

Since the new Azure Bot Service (released GA 2017-12-13), I've created a "WebAppBot" named "SanoBot" and I can't choose any channel to plug it for another services like Telegram: the page is empty when I click on "Channels". I've done a little screenshot to show you what I see:
I've check the documentation sent by the Azure Support from Twitter but the pages return 404 error.
Just to be clear: the bot works well and I can modify it from the Online Editor, build, deploy & test it. It's only "channels" feature that doesn't work.
Thanks for your help.
I can't use pictures because I haven't enough reputation...

How do i grant permission on my Luis.ai application to other microsoft account?

I own a Luis.ai application which I use for my chat BOT.
i want my qa guys to be able to train my Luis.ai application, so that my BOT would be smarter.
how do i grant permissions to other user to train my APP?
Now there is an option to set other users as "Collaborator" and they can then Train and modify the luis.ai app as needed.
The accounts can be independent and don't need to be from same Azure Active Directory or otherwise linked.
Basic description by Microsoft is here.
This way you add the Collaborator at
https://www.luis.ai/applications/yourAppId/0.1/settings
And this way the collaborator sees the UI:
I don't think that it's currently possible.
The easiest workaround I can think of is to create a shared account, export your LUIS application from your account and import it into the new shared account. Have in mind that the keys of your LUIS app will likely change and so you will likely need to update your bot too.
Also, you can see if using the Cognitive Services API is suitable for your scenario. If it's, then there are a bunch of operations available there.
You can use the Cognitive Services API for this.
Link - https://dev.projectoxford.ai/docs/services/5890b47c39e2bb17b84a55ff/operations/5890b47c39e2bb052c5b9c45
I haven't actually used it but you can have a look. Hope this helps.

Resources