-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from thepersonwho/espiritu-branch
espiritu-branch to Main branch for Healthcare Chatbot
- Loading branch information
Showing
80 changed files
with
4,585 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# msbuild output directories | ||
/bin | ||
/obj | ||
|
||
# MSBuild Binary and Structured Log | ||
*.binlog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Healthcare AI Chatbot | ||
|
||
## Summary | ||
|
||
This sample uses a Power Virtual Agents chatbot to diagnose and suggest a fitting doctor based on the user's inputted symptoms. | ||
NOTE: "healthAlde" is a placeholder brand name for the bot & the Power Pages portal | ||
|
||
![picture of the sample](assets/portal-chatbot.PNG) | ||
|
||
## Applies to | ||
|
||
![Power Apps](https://img.shields.io/badge/Power%20Apps-No-red "No") | ||
![Power Automate](https://img.shields.io/badge/Power%20Automate-Yes-green "Yes") | ||
![Power BI](https://img.shields.io/badge/Power%20BI-No-red "No") | ||
![Power Pages](https://img.shields.io/badge/Power%20Pages-Yes-green "Yes") | ||
![Power Virtual Agents](https://img.shields.io/badge/Power%20Virtual%20Agents-Yes-green "Yes") | ||
![Dataverse](https://img.shields.io/badge/Dataverse-Yes-green "Yes") | ||
|
||
## Compatibility | ||
|
||
![Premium License](https://img.shields.io/badge/Premium%20License-Required-green.svg "Premium license required") | ||
![Experimental Features](https://img.shields.io/badge/Experimental%20Features-No-red.svg "Does not rely on experimental features") | ||
|
||
## Contributors | ||
* [Miguel Espiritu](https://github.com/thepersonwho) | ||
|
||
## Version history | ||
|
||
Version|Date|Comments | ||
-------|----|-------- | ||
1.0.0.1|Sept. 27, 2023|Initial release | ||
|
||
## Prerequisites | ||
|
||
* A Dataverse user account with access to System Admin Security Role | ||
* AI Builder capacity (could be trial) | ||
* An existing Power Pages site (optional, files will be provided in the "powerpages-portalfiles" folder) | ||
|
||
## Data Sources | ||
|
||
* Dataverse | ||
|
||
## Minimal Path to Awesome | ||
|
||
* Download the **(./solution/healthcare-ai-chatbot.zip)** solution `.zip` from the `solution` folder | ||
* Within **<https://make.powerapps.com>**, import the solution `.zip` file via **Solutions** > **Import solution** > **Browse** and select the `.zip` file you just downloaded | ||
* Click next | ||
* Click Import | ||
* Go to the Chatbot and either import it your existing Power Pages site (optional), or open it on a demo website | ||
![picture of the pa flow](assets/pva-custom-demo.PNG) | ||
|
||
## Features | ||
|
||
The PVA chatbot lets the user input their current symptoms to let the Chatbot diagnose the user via generative answers located in the of the chatbot's topic. | ||
|
||
![picture of the pva step](assets/pva-generativeanswers.PNG) | ||
|
||
After that, the chatbot displays an adaptive card asking for a specific date & time | ||
|
||
![picture of the pva step](assets/pva-adaptive-card.PNG) | ||
|
||
From there, a Power Automate flow in the same topic uses AI to check the user's symptoms for any key words/phrases, then uses that to determine which doctor is the best fit for them based on their specialization. It also checks whether the doctor wil lbe available based on the user's selected date & time on the previous step. | ||
|
||
![picture of the pa flow](assets/pa-flow-steps.PNG) | ||
|
||
|
||
There are also 2 alternate topics in the chatbot: | ||
* One for directly setting up a consultation with a specific doctor by specifying the requested doctor and date & time of the appointment | ||
|
||
![picture of the consultation pva topic](assets/pva-consultation-1.PNG) | ||
|
||
![picture of the consultation pva topic](assets/pva-consultation-2.PNG) | ||
|
||
* And another one for requesting an ambulance on demand | ||
|
||
![picture of the ambulance pva topic](assets/pva-ambulance-1.PNG) | ||
|
||
![picture of the ambulance pva topic](assets/pva-ambulance-2.PNG) | ||
|
||
## Help | ||
|
||
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues. | ||
|
||
If you encounter any issues while using this sample, you can [create a new issue](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=healthcare-ai-chatbot&authors=@thepersonwho&title=healthcare-ai-chatbot%20-%20). | ||
|
||
For questions regarding this sample, [create a new question](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=question.yml&sample=healthcare-ai-chatbot&authors=@thepersonwho&title=healthcare-ai-chatbot%20-%20). | ||
|
||
Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=suggestion.yml&sample=healthcare-ai-chatbot&authors=@thepersonwho&title=healthcare-ai-chatbot%20-%20). | ||
|
||
## Disclaimer | ||
|
||
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** | ||
|
||
<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-samples/samples/healthcare-ai-chatbot" /> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
[ | ||
{ | ||
"$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json", | ||
"name": "pnp-powerplatform-samples-healthcare-ai-chatbot", | ||
"version": "1.0.0.0", | ||
"source": "pnp", | ||
"creationDateTime": "2023-09-27T00:00:00.000Z", | ||
"updateDateTime": "2023-09-27T00:00:00.000Z", | ||
"title": "Healthcare AI Chatbot", | ||
"shortDescription": "This sample uses a Power Virtual Agents chatbot to diagnose and suggest a fitting doctor based on the user's inputted symptoms.", | ||
"longDescription": [ | ||
"This sample uses a Power Virtual Agents chatbot to diagnose and suggest a fitting doctor based on the user's inputted symptoms." | ||
], | ||
"url": "https://github.com/pnp/powerplatform-samples/tree/main/samples/healthcare-ai-chatbot", | ||
"products": [ | ||
"Power Virtual Agents", | ||
"Power Platform" | ||
], | ||
"tags": [ | ||
"Chatbot", | ||
"Healthcare" | ||
], | ||
"categories": [ | ||
"POWERAPPS" | ||
], | ||
"metadata": [ | ||
{ | ||
"key": "POWERVIRTUALAGENTS-EXPERIMENTAL", | ||
"value": "No" | ||
}, | ||
{ | ||
"key": "POWERVIRTUALAGENTS-PREMIUM", | ||
"value": "Yes" | ||
}, | ||
{ | ||
"key": "POWERPLATFORM-CUSTOMCONNECTOR", | ||
"value": "No" | ||
} | ||
], | ||
"thumbnails": [ | ||
{ | ||
"type": "image", | ||
"order": 100, | ||
"url": "https://github.com/pnp/powerplatform-samples/blob/main/samples/healthcare-ai-chatbot/assets/portal-chatbot.png?raw=true", | ||
"alt": "Preview" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"gitHubAccount": "thepersonwho", | ||
"name": "Miguel Espiritu", | ||
"pictureUrl": "https://github.com/thepersonwho.png" | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"name": "Power Virtual Agents overview", | ||
"description": "Power Virtual Agents overview", | ||
"url": "https://learn.microsoft.com/en-us/power-virtual-agents/fundamentals-what-is-power-virtual-agents" | ||
}, | ||
{ | ||
"name": "AI-based chatbot authoring overview", | ||
"description": "AI-based chatbot authoring overview", | ||
"url": "https://learn.microsoft.com/en-us/power-virtual-agents/nlu-gpt-overview" | ||
} | ||
] | ||
} | ||
] |
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
samples/healthcare-ai-chatbot/sourcecode/Assets/botcomponent_workflowset.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<botcomponent_workflowset> | ||
<botcomponent_workflow botcomponentid.schemaname="cr961_hackathonHealthcareBot.topic.Consultation" workflowid.workflowid="9da85dd8-f65b-ee11-be6f-000d3a338c5d"> | ||
<iscustomizable>1</iscustomizable> | ||
</botcomponent_workflow> | ||
<botcomponent_workflow botcomponentid.schemaname="cr961_hackathonHealthcareBot.topic.Diagnosis" workflowid.workflowid="94672084-1659-ee11-be6f-000d3a338c5d"> | ||
<iscustomizable>1</iscustomizable> | ||
</botcomponent_workflow> | ||
</botcomponent_workflowset> |
Oops, something went wrong.