├── 01SimplePowerAppswithAzureOpenAISample ├── Readme.md └── images │ ├── 01CanvasApp.jpg │ ├── 02 Tablet.png │ ├── 03 Place 3 Controls.png │ ├── 04 Add Flow.png │ ├── 05 Add Blank Flow.png │ ├── 06 Rename flow - HTTP - Post.png │ ├── 07 Az Open AI - Competions - Questions - View Code.png │ ├── 08 View Code.png │ ├── 09 HTTP Copy.png │ ├── 10 Ask In PowerApps 2.png │ ├── 10 Ask In PowerApps.png │ ├── 11 Compose Body.png │ ├── 12 Compose Body.png │ ├── 13 Button Run Flow.png │ ├── 14 Compose Output JSON.png │ ├── 15 Edit Flow.png │ ├── 16 Parse JSON.png │ ├── 17 HTTP Rename Action.png │ ├── 18 Parse JSON Body.png │ ├── 19 Parse JSON Reanme Paste JSON.png │ ├── 20 Init Var outsummary.png │ ├── 21 Apply to each.png │ ├── 22 Apply to each - Choices.png │ ├── 22 Apply to each - Current Item.png │ ├── 23 Canvas App - Refresh PA.png │ ├── 24 Canvas App - Run the flow.png │ ├── 25 Click on flow.png │ ├── 26 Copy the Output Compose.png │ ├── 27 Edit Flow.png │ ├── 28 Parse JSON Output summary.png │ ├── 29 Parse JSON Generate Sample.png │ ├── 30 Paste JSON cONTENT FROM previois step.png │ ├── 31 Paste JSON cONTENT FROM previois step.png │ ├── 32 Respond to Poweer Apps or flow.png │ ├── 33 Output Summary.png │ ├── 33 Save flow.png │ ├── 34 Adjust Flow Response.png │ ├── 35 Output label.png │ └── 36 Final Output.png ├── 02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci ├── Readme.md └── images │ ├── 01 Canvas App controls.png │ ├── 02 Create new flow.png │ ├── 03 Rename, HTTP Action, POST.png │ ├── 04 Az Open AI - Competions - Questions - View Code.png │ ├── 05 View Code.png │ ├── 06 HTTP Copy.png │ ├── 07 Ask In PowerApps.png │ ├── 08 Ask In PowerApps .png │ ├── 09 Compose Body.png │ ├── 10 Compose Body 2.png │ ├── 10 Compose Body.png │ ├── 11 Canvas App FLow 2.png │ ├── 11 Canvas App FLow.png │ ├── 12 Flow Run'.png │ ├── 13 Edit Flow.png │ ├── 14 Compose Output JSON.png │ ├── 15 Edit Flow.png │ ├── 16 Parse JSON.png │ ├── 17 HTTP Rename Action.png │ ├── 18 Parse JSON Body.png │ ├── 19 Parse JSON Reanme Paste JSON.png │ ├── 20 Init Var outsummary.png │ ├── 21 Apply to each.png │ ├── 22 Apply to each - Choices.png │ ├── 22 Apply to each - Current Item.png │ ├── 23 Canvas App - Refresh PA.png │ ├── 24 Canvas App - Run the flow.png │ ├── 25 Click on flow.png │ ├── 26 Copy the Output Compose.png │ ├── 27 Edit Flow.png │ ├── 28 Parse JSON Output summary.png │ ├── 29 Parse JSON Generate Sample.png │ ├── 30 Paste JSON cONTENT FROM previois step.png │ ├── 31 Paste JSON cONTENT FROM previois step.png │ ├── 32 Respond to Poweer Apps or flow.png │ ├── 33 Output Summary.png │ ├── 33 Save flow.png │ ├── 34 Adjust Flow Response.png │ ├── 35 Output label.png │ ├── 36 Final Output.png │ ├── 39 - Summarize Text.png │ ├── 40 SQL.png │ ├── 41 Classify .png │ ├── 42 Unstrcuted.png │ ├── 43 Classfiy.png │ ├── 50 Final Summarize.png │ ├── 51 Final SQL.png │ ├── 52 Final Classify Text.png │ ├── 53 Unstsrcu.png │ └── 54 Classify.png ├── 03MicrosoftTeams&AzureOpenAI ├── Readme.md └── images │ ├── 01 Automated Teams Flow.png │ ├── 02 When new channel is added.png │ ├── 03 TEams and Channel.png │ ├── 04 Rename flow - HTTP - Post.png │ ├── 05 Az Open AI - Competions - Questions - View Code.png │ ├── 06 View Code.png │ ├── 07 Ask In PowerApps 2.png │ ├── 07 HTTP Copy.png │ ├── 09 Compose Body.png │ ├── 11 Button Run Flow.png │ ├── 12 Compose Output JSON.png │ ├── 12 Edit Flow.png │ ├── 15 Test Flow 2.png │ ├── 15 Test Flow 3.png │ ├── 15 Test Flow.png │ ├── 16 Teams Message.png │ ├── 17 Flow Test.png │ ├── 18 Teams message.png │ ├── 19 run of flow run.png │ ├── 20 Copy Output from Compose Message.png │ ├── 21 Edit Flow.png │ ├── 22 Parse JSON 1.png │ ├── 23 Parse JSON - Generte from Sample.png │ ├── 24 Parse JSON - Generte from Sample PASTE JSON .png │ ├── 25 Parsse JSON NExt Step.png │ ├── 30 Reply with a message in a channel.png │ ├── 31 Message text.png │ ├── 32 Save flow.png │ ├── 33 Test Message in Teams.png │ └── 34 Teams Message.png ├── 04PowerPlatformCustomConnectorwithAzureOpenAI ├── Readme.md └── images │ ├── 01 Custom Connector.png │ ├── 02 Name the connector.png │ ├── 03 Turn of Swagger Editor.png │ ├── 04 Swagger Host.png │ ├── 05 Swagger Deployment ID.png │ ├── 06 Az Overview Host.png │ ├── 07 Az default.png │ ├── 08 Update logo and verify the Host.png │ ├── 09 Security Key.png │ ├── 10 Definations.png │ ├── 11 Code Preview.png │ ├── 12 Update Connector.png │ ├── 13 TEst Connector.png │ ├── 14 Successful Test.png │ └── 15 DONT MODIFY other Default.png ├── Completed Lab Solution for students ├── Module 1 │ ├── ContosoCoffee_1_0_0_1.zip │ └── Importing Module 1 Completed.docx ├── Module 2 │ ├── ContosoCoffee_1_0_0_2.zip │ └── Importing Module 2 Completed.docx ├── Module 3 │ ├── ContosoCoffee_1_0_0_3.zip │ └── Importing Module 3 Completed.docx ├── Module 4 │ ├── Complete Solution.docx │ └── ContosoCoffee_1_0_0_4.zip └── Module 5 │ ├── PowerAppsAzureOpenAI_1_0_0_1_managed.zip │ └── PowerAppsAzureOpenAI_1_0_0_2.zip ├── Excel Data └── Machine-Order-Data.xlsx ├── LICENSE ├── Labs ├── 00-AppInADay Lab Overview.pdf ├── 01-Power Apps Canvas App Lab Manual.pdf ├── 02-Microsoft Dataverse Lab Manual.pdf ├── 03-Power Automate Lab Manual.pdf ├── 04 Integration of Power Platform with Azure OpenAI Labs Manual.pdf ├── AppInADay Lab Introduction.pptx ├── Machine-Order-Data.xlsx └── Readme.md ├── README.md ├── SCREEENSHOTS ├── 01 Canvas Apps.png ├── 02 Canvas App.png ├── 03 Teams Bot.png └── 04 Custom Connector.png ├── Slide Decks ├── 01-Business Applications and Power Apps Canvas Apps.pdf ├── 02-Microsoft Dataverse.pdf ├── 03-Microsoft Power Automate.pdf └── 04- Better Together Power Apps and Azure OpenAI.pdf ├── file_one.txt └── images └── 01 Power Apps Canvas Controls.png /01SimplePowerAppswithAzureOpenAISample/Readme.md: -------------------------------------------------------------------------------- 1 | # 01 Simple Power Apps with Azure OpenAI Sample 2 | 3 | In this example you will able to use Power Apps as front end for end users to ask question, then call Power Automate for Azure OpenAI service, the request come back to Power Automate and then anwer shown to end user. 4 | 5 | ## STEP 1 6 | 7 | Create an app and selecte a Canvas App 8 | 9 | ![01CanvasApp](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/c5db6ef3-0528-420b-b2a2-1218f862336d) 10 | 11 | 12 | ## Step 2 13 | 14 | Create app from blank 15 | 16 | ![02 Tablet](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/2487ba6b-1683-42ed-a977-d4e3f9ac8aae) 17 | 18 | 19 | ## Step 3 20 | 21 | Please 3 controls 22 | 23 | - Textbox 24 | - Button 25 | - Label 26 | 27 | 28 | ![03 Place 3 Controls](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/0b24374d-8a38-4691-8ce7-63a8efd693fa) 29 | 30 | # Step 4 31 | 32 | Add a new flow from Cavas apps 33 | 34 | 35 | ![04 Add Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/328268e9-e4c8-46bd-8b16-c3a335684fbb) 36 | 37 | 38 | # Step 5 39 | 40 | Add new blank flow 41 | 42 | ![05 Add Blank Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/67d61559-ba7f-472d-aeea-81b5a9c6f756) 43 | 44 | 45 | # Step 6 46 | 47 | Rename the flow, add new step, add new HTTP action and set to post 48 | 49 | ![06 Rename flow - HTTP - Post](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/d185070a-8670-4207-9054-f3f8e1b5a5bb) 50 | 51 | 52 | # Step 7 53 | 54 | Nagivate to the Azure portal, under playground select **Compleltions** >> Select **Question answring** >> select the **View code** 55 | 56 | 57 | ![07 Az Open AI - Competions - Questions - View Code](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/4be798ee-1063-4f6a-8b41-147e2f4245e5) 58 | 59 | # Step 8 60 | 61 | Copy the Endpoint and Key from Azure OpenAI service 62 | 63 | ![08 View Code](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f1c4ec94-af8e-4aec-8b28-c49e28defebd) 64 | 65 | 66 | # Step 9 67 | 68 | Copy the URL to URI at Power Automate 69 | and for key type in **api-kpi** amd paste the key 70 | 71 | ![09 HTTP Copy](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/51a0fd77-34cf-4992-b1dd-147a8b63e80e) 72 | 73 | # Step 10 74 | 75 | For Body of HTTP, you need a craft JSON content from [Azure OpenAI API refrence](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference). 76 | 77 | 78 | ``` 79 | { 80 | "prompt": "", 81 | "max_tokens": 200, 82 | "temperature": 0, 83 | "top_p": 1, 84 | "frequency_penalty": 0 85 | } 86 | 87 | ``` 88 | 89 | For getting the question from PowerApps, double click on **Ask in PowerApps** within **prompt** 90 | 91 | ![10 Ask In PowerApps](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/92742cb8-7e7f-46af-b00f-91115619b7fa) 92 | 93 | 94 | ![10 Ask In PowerApps 2](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/e81ad777-798c-4e6c-8420-541214a950e8) 95 | 96 | 97 | 98 | # Step 11 99 | 100 | In next step, search for **compose** message >> select the **Add dynamic content** >> Under HTTP heading select Body 101 | 102 | ![11 Compose Body](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/996d82b3-37f9-46c9-b371-0cdeabdf7199) 103 | 104 | 105 | ![12 Compose Body](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/9f0b6713-ad11-4784-8fc6-63359d286a9a) 106 | 107 | # Step 12 108 | 109 | 110 | At the Canvas App, create a global variable and trigger the flow as follows 111 | 112 | ``` 113 | Set(gOutout,'13JunePPAzOpenAI'.Run(txtQuestion.Text)) 114 | ``` 115 | 116 | Run the Power Apps 117 | 118 | ![13 Button Run Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/6d7dd46a-a9da-4bc4-be51-cd6c71b0a983) 119 | 120 | 121 | 122 | # Step 13 123 | 124 | Once the flow is successful, **copy the output JSON to a text file** that you will use in upcoming steps 125 | 126 | ~~~ 127 | { 128 | "type": "object", 129 | "properties": { 130 | "id": { 131 | "type": "string" 132 | }, 133 | "object": { 134 | "type": "string" 135 | }, 136 | "created": { 137 | "type": "integer" 138 | }, 139 | "model": { 140 | "type": "string" 141 | }, 142 | "choices": { 143 | "type": "array", 144 | "items": { 145 | "type": "object", 146 | "properties": { 147 | "text": { 148 | "type": "string" 149 | }, 150 | "index": { 151 | "type": "integer" 152 | }, 153 | "finish_reason": { 154 | "type": "string" 155 | }, 156 | "logprobs": {} 157 | }, 158 | "required": [ 159 | "text", 160 | "index", 161 | "finish_reason", 162 | "logprobs" 163 | ] 164 | } 165 | }, 166 | "usage": { 167 | "type": "object", 168 | "properties": { 169 | "completion_tokens": { 170 | "type": "integer" 171 | }, 172 | "prompt_tokens": { 173 | "type": "integer" 174 | }, 175 | "total_tokens": { 176 | "type": "integer" 177 | } 178 | } 179 | } 180 | } 181 | } 182 | ~~~ 183 | 184 | 185 | ![14 Compose Output JSON](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f1e8385c-37af-4ac1-92ea-99474679bd1a) 186 | 187 | 188 | # Step 13 189 | 190 | Edit the flow 191 | 192 | ![15 Edit Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/742cdd96-e61a-47b9-b1a5-bd29c8c77849) 193 | 194 | 195 | # Step 14 196 | 197 | in next step search for Parse JSON, rename the action, select the **Add dynamic content** and select **body** 198 | 199 | ![16 Parse JSON](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/ba3c7eb8-0bb1-49b5-bdda-62dd9db4f1d8) 200 | 201 | 202 | ![17 HTTP Rename Action](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/e64a15e9-09d0-4a10-8271-cf94ee8f63a4) 203 | 204 | 205 | ![18 Parse JSON Body](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/a3230873-5909-4a8b-b87e-372d2557ea60) 206 | 207 | # Step 15 208 | 209 | Now, paste the JSON the content that you copied at **Step 13** as follows 210 | 211 | 212 | ![19 Parse JSON Reanme Paste JSON](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/c8350660-bb26-463b-8ff1-6c2e9ab76dd9) 213 | 214 | 215 | # Step 16 216 | 217 | In next step, create a new varibale, initialize varibale called **outsummary** with string data datatype 218 | 219 | ![20 Init Var outsummary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f051c8f2-2bea-4e0f-bd4d-12883ad5a3f9) 220 | 221 | 222 | # Step 17 223 | 224 | In next step, search of **apply to each** control, select **Add dynamic content** and select **choices** from Parse JSON from above steps 225 | 226 | ![21 Apply to each](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/08b8ef7d-0d69-4296-9fb5-a85a56ba5eee) 227 | 228 | 229 | 230 | # Step 18 231 | Within **apply to each** control, select a set variable and in the value property set the **Current item** 232 | 233 | ![22 Apply to each - Current Item](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/ba9c2910-3bbe-41df-b9a1-36558428d21b) 234 | 235 | 236 | # Step 19 237 | 238 | Go back to Canvas app, select the flow 239 | 240 | ![23 Canvas App - Refresh PA](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/055f29c5-b0c6-4c5c-89cc-ca9c7ba0fa06) 241 | 242 | 243 | # Step 20 244 | 245 | Type a question in textbox and cilck on Submit button 246 | 247 | ![24 Canvas App - Run the flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/5eaa9e76-ada2-47c9-8794-bb19dc6094a0) 248 | 249 | 250 | # Step 21 251 | 252 | Click on the flow link 253 | 254 | 255 | ![25 Click on flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/b39d7f81-c9bb-467b-a96e-64c720852b52) 256 | 257 | 258 | # Step 22 259 | 260 | Copy the output JSON from compose to a text file. You will use in next step 261 | 262 | ![26 Copy the Output Compose](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/9d4cf06d-4071-4919-a672-1e863762f674) 263 | 264 | 265 | # Step 23 266 | 267 | Edit the flow 268 | ![27 Edit Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/2856a94c-2939-41d5-94e7-663591bfbadd) 269 | 270 | 271 | # Step 24 272 | 273 | In Next Step, search for Parse JSON action, select **Add dynamic content** and use outsummary variable 274 | ![28 Parse JSON Output summary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f40bfc52-356b-4cbe-9bd7-2936c52fabd9) 275 | 276 | 277 | # Step 25 278 | 279 | Click on **Generate from Sample** button 280 | 281 | ![29 Parse JSON Generate Sample](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/ad47ef47-444e-409b-83c1-2dbb19ea52d1) 282 | 283 | 284 | # Step 26 285 | 286 | Paste the JSON content that you copied from Step 22 287 | ![30 Paste JSON cONTENT FROM previois step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/b97fb88c-e375-4215-bb09-8c3fbf8f89d1) 288 | 289 | ![31 Paste JSON cONTENT FROM previois step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/3400435a-e8ee-42c9-92d2-b52708e27d37) 290 | 291 | ~~~ 292 | { 293 | "text": "\n\nPower Apps help with digital transformation by providing a platform for businesses to quickly and easily create custom applications that can be used to automate processes, streamline operations, and improve customer experiences. Power Apps can be used to create applications that can be used to capture data, automate processes, and integrate with other systems. This helps businesses to quickly and easily create applications that can be used to improve customer experiences, increase efficiency, and reduce costs. Additionally, Power Apps can be used to create applications that can be used to create custom reports, dashboards, and analytics. This helps businesses to gain insights into their operations and make better decisions.", 294 | "index": 0, 295 | "finish_reason": "stop", 296 | "logprobs": null 297 | } 298 | ~~~ 299 | 300 | 301 | # Step 27 302 | In next step, search for **Respond to a PowerApp or flow action** 303 | 304 | ![32 Respond to Poweer Apps or flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/38b2c7d1-4fa5-4d5e-96c1-1217045c54b3) 305 | 306 | 307 | # Step 28 308 | 309 | Add text input variable called **response** and use **text** from Parse JSON 310 | 311 | ![33 Output Summary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/4689890d-9a07-4334-8b3a-95eb39c6924a) 312 | 313 | # Step 29 314 | 315 | Save the flow 316 | 317 | ![33 Save flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/0c92eec3-4b3f-46e2-83f2-83481000f5e7) 318 | 319 | 320 | # Step 30 321 | 322 | Back to Power Apps, Set the response variable at the **Get Answer** 323 | ![34 Adjust Flow Response](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/b0383ae5-b96e-4693-8277-63748e7a13c6) 324 | 325 | 326 | # Step 31 327 | 328 | Assign gOutput the label control 329 | 330 | ![35 Output label](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/1ad7ae76-95ca-4b83-9e4b-0a8b7ac24056) 331 | 332 | # Step 32 333 | 334 | Run the Power Apps, ask question, click on Get Anwser and anwser is shown at output label 335 | 336 | 337 | ![36 Final Output](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/09d2473d-2d4c-4dea-ab5c-f30f7e3cd6e6) 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/01CanvasApp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/01CanvasApp.jpg -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/02 Tablet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/02 Tablet.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/03 Place 3 Controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/03 Place 3 Controls.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/04 Add Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/04 Add Flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/05 Add Blank Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/05 Add Blank Flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/06 Rename flow - HTTP - Post.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/06 Rename flow - HTTP - Post.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/07 Az Open AI - Competions - Questions - View Code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/07 Az Open AI - Competions - Questions - View Code.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/08 View Code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/08 View Code.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/09 HTTP Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/09 HTTP Copy.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/10 Ask In PowerApps 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/10 Ask In PowerApps 2.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/10 Ask In PowerApps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/10 Ask In PowerApps.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/11 Compose Body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/11 Compose Body.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/12 Compose Body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/12 Compose Body.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/13 Button Run Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/13 Button Run Flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/14 Compose Output JSON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/14 Compose Output JSON.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/15 Edit Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/15 Edit Flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/16 Parse JSON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/16 Parse JSON.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/17 HTTP Rename Action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/17 HTTP Rename Action.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/18 Parse JSON Body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/18 Parse JSON Body.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/19 Parse JSON Reanme Paste JSON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/19 Parse JSON Reanme Paste JSON.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/20 Init Var outsummary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/20 Init Var outsummary.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/21 Apply to each.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/21 Apply to each.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/22 Apply to each - Choices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/22 Apply to each - Choices.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/22 Apply to each - Current Item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/22 Apply to each - Current Item.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/23 Canvas App - Refresh PA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/23 Canvas App - Refresh PA.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/24 Canvas App - Run the flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/24 Canvas App - Run the flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/25 Click on flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/25 Click on flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/26 Copy the Output Compose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/26 Copy the Output Compose.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/27 Edit Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/27 Edit Flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/28 Parse JSON Output summary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/28 Parse JSON Output summary.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/29 Parse JSON Generate Sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/29 Parse JSON Generate Sample.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/30 Paste JSON cONTENT FROM previois step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/30 Paste JSON cONTENT FROM previois step.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/31 Paste JSON cONTENT FROM previois step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/31 Paste JSON cONTENT FROM previois step.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/32 Respond to Poweer Apps or flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/32 Respond to Poweer Apps or flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/33 Output Summary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/33 Output Summary.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/33 Save flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/33 Save flow.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/34 Adjust Flow Response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/34 Adjust Flow Response.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/35 Output label.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/35 Output label.png -------------------------------------------------------------------------------- /01SimplePowerAppswithAzureOpenAISample/images/36 Final Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/01SimplePowerAppswithAzureOpenAISample/images/36 Final Output.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/Readme.md: -------------------------------------------------------------------------------- 1 | #02 PowerApps & Azure OpenAI with Different Actions within Davinci 2 | 3 | 4 | 5 | # 02 Azure Open AI (GPT) with Power Apps 6 | 7 | In this example you will able to use Power Apps as front end for end users to ask question, then call Power Automate for Azure OpenAI service, the request come back to Power Automate and then anwer shown to end user. 8 | 9 | This is inspired by this blogpost [Build a Power App to create Demo or Personal Knowledge Bot](https://techcommunity.microsoft.com/t5/ai-machine-learning-blog/azure-open-ai-gpt-with-power-apps-build-a-power-app-to-create/ba-p/3730864) 10 | 11 | ## STEP 1 12 | 13 | - Create a new Power Apps Canvas App 14 | - Select Tablet format 15 | - Add different controls such as 16 | - Textbox 17 | - Text labels 18 | - Buttons as follows: 19 | 20 | ![01 Canvas App controls](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/dc570a40-d8a7-4f7d-bf3d-fdeb249be8f9) 21 | 22 | 23 | ## Step 2 24 | 25 | Add a new flow from Cavas apps 26 | ![02 Create new flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/416a6b82-9038-4eb0-b8f7-4b9c3deba32a) 27 | 28 | 29 | 30 | ## Step 3 31 | 32 | Add new blank flow 33 | 34 | 35 | ## Step 4 36 | 37 | Rename the flow, add new step, add new HTTP action and set to post 38 | 39 | ![03 Rename, HTTP Action, POST](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/fd09936c-dd51-4c8b-b893-06fd1d4988f0) 40 | 41 | ## Step 5 42 | 43 | Nagivate to the Azure portal, under playground select Compleltions >> Select Question answring >> select the View code 44 | 45 | ![04 Az Open AI - Competions - Questions - View Code](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/99a7c2b6-9922-4f68-a60d-8caf4b9c2af5) 46 | 47 | 48 | ## Step 6 49 | 50 | Copy the Endpoint and Key from Azure OpenAI service 51 | 52 | ![05 View Code](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/2cd52351-1d13-4883-b330-31e81c688b18) 53 | 54 | 55 | ## Step 7 56 | 57 | Copy the URL to URI at Power Automate and for key type in api-key amd paste the key 58 | 59 | ![06 HTTP Copy](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/551d396c-b5cf-4755-acb3-add7cd7bf5ac) 60 | 61 | ## Step 8 62 | 63 | For Body of HTTP, you need a craft JSON content from [Azure OpenAI API refrence](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference). 64 | 65 | 66 | ~~~ 67 | { 68 | "prompt": "", 69 | "max_tokens": 200, 70 | "temperature": 0, 71 | "top_p": 1, 72 | "frequency_penalty": 0 73 | } 74 | 75 | ~~~ 76 | 77 | For getting the question from PowerApps, **double click** on Ask in PowerApps within prompt 78 | ![07 Ask In PowerApps](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/be46e497-9ad1-435b-b617-9ba3d71e6a97) 79 | 80 | 81 | ![08 Ask In PowerApps ](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/84084e60-a7e7-4841-b315-11e8c05e9e8f) 82 | 83 | 84 | 85 | ## Step 09 86 | 87 | In next step, search for **compose** message >> select the **Add dynamic content** >> Under HTTP heading select Body 88 | 89 | ![11 Compose Body](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/996d82b3-37f9-46c9-b371-0cdeabdf7199) 90 | 91 | 92 | ![12 Compose Body](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/9f0b6713-ad11-4784-8fc6-63359d286a9a) 93 | 94 | ## Step 10 95 | 96 | 97 | At the Canvas App, create a global variable and trigger the flow as follows 98 | 99 | ``` 100 | Set(gOpenAIText, '16JunePPAzireOpenAIFlow'.Run(txtQuestion.Text)) 101 | ``` 102 | 103 | ![11 Canvas App FLow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/170b73d7-9f13-4e66-8b8e-6e6f93906e71) 104 | 105 | and run the Power App 106 | 107 | 108 | ![11 Canvas App FLow 2](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/aa7d9937-463b-4910-a647-43506f7777f4) 109 | 110 | 111 | ## Step 12 112 | 113 | 114 | Once the flow is successful, copy the output JSON to a text file that you will use in upcoming steps 115 | 116 | ~~~ 117 | { 118 | "id": "cmpl-7S9Cbnovtz5bYPzna5TK8dW7gnZV7", 119 | "object": "text_completion", 120 | "created": 1686942913, 121 | "model": "text-davinci-003", 122 | "choices": [ 123 | { 124 | "text": "\n\nPower Apps is a powerful and easy-to-use platform for creating custom business applications. It is a low-code platform that enables users to quickly create applications without the need for coding. It is a great tool for businesses to quickly create applications that can be used to automate processes, improve customer service, and increase efficiency. Power Apps is also popular because it is cloud-based, meaning that applications can be accessed from anywhere with an internet connection. Additionally, Power Apps integrates with other Microsoft products, such as Office 365, Dynamics 365, and Azure, making it easy to create applications that are connected to existing data sources.", 125 | "index": 0, 126 | "finish_reason": "stop", 127 | "logprobs": null 128 | } 129 | ], 130 | "usage": { 131 | "completion_tokens": 127, 132 | "prompt_tokens": 6, 133 | "total_tokens": 133 134 | } 135 | } 136 | ~~~ 137 | 138 | ![12 Flow Run'](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/912de84f-9ad3-417a-b22d-9742173ec2ab) 139 | 140 | ![10 Compose Body 2](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/68dc00d4-1f72-4231-95f5-2ab033ec70b3) 141 | 142 | 143 | ## Step 13 144 | 145 | Edit the flow 146 | ![13 Edit Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/a5dc3afb-e85e-4e57-a1eb-3583d7985fed) 147 | 148 | 149 | ## Step 14 150 | 151 | In next step search for Parse JSON, rename the action, select the Add dynamic content and select body 152 | 153 | ![16 Parse JSON](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/82cddbde-6e9b-4973-9278-42a29991cd9f) 154 | 155 | ![17 HTTP Rename Action](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/29a2d600-6ebe-46ef-9227-baa7ad276725) 156 | 157 | ![18 Parse JSON Body](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/40f56a61-68db-428a-9828-7c4c07005c43) 158 | 159 | 160 | 161 | 162 | ## Step 15 163 | 164 | Now, paste the JSON the content that you copied at Step 12 as follows 165 | 166 | 167 | ![19 Parse JSON Reanme Paste JSON](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/1397c29e-a644-4816-aa0a-c95358c02b98) 168 | 169 | 170 | ## Step 16 171 | 172 | In next step, create a new varibale, initialize varibale called outsummary with string data datatype 173 | 174 | 175 | ![20 Init Var outsummary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/bf3aea0e-eedc-4325-a04f-6945ddfcd2ad) 176 | 177 | 178 | ## Step 17 179 | 180 | In next step, search of **apply to each** control, select **Add dynamic content** and select **choices** from Parse JSON from above steps 181 | 182 | ![21 Apply to each](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/7d5ccc70-1395-487b-adf8-0edc4a378d4a) 183 | 184 | 185 | ![22 Apply to each - Choices](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/109f7516-a713-4506-b377-e783054c2f44) 186 | 187 | ## Step 18 188 | 189 | Within apply to each control, select a **set variable** and in the value property set the **Current item** 190 | 191 | ![22 Apply to each - Current Item](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/6ef6309c-ef7e-4404-b7fb-5fc3cbc6194f) 192 | 193 | 194 | ## Step 19 195 | 196 | Go back to Canvas app, select the flow 197 | 198 | ![19 Parse JSON Reanme Paste JSON](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/e5deb8ce-3dbc-47f4-b10f-1ff4b2c9319f) 199 | 200 | 201 | ## Step 20 202 | 203 | Type a question in textbox and cilck on **Summarize Text** button 204 | 205 | 206 | ![24 Canvas App - Run the flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/70c040eb-6a31-4f00-98b2-f642a1e374c6) 207 | 208 | 209 | ## Step 21 210 | 211 | Click on the flow link 212 | 213 | ![25 Click on flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/8ac78c92-ff7c-4be5-b9c2-1acee575a8cf) 214 | 215 | 216 | 217 | ## Step 22 218 | 219 | Copy the output JSON from compose to a text file. You will use in next step 220 | 221 | ![26 Copy the Output Compose](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/49e3d949-df1a-43ac-b5df-3e3c1aaeb0d8) 222 | 223 | 224 | ## Step 23 225 | 226 | Edit the flow 227 | 228 | ![27 Edit Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/411aecec-6e1f-4ce7-a859-3bcd8b0418bc) 229 | 230 | 231 | ## Step 24 232 | 233 | In Next Step, search for **Parse JSON action**, select **Add dynamic content** and use outsummary variable 234 | 235 | ![28 Parse JSON Output summary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/2aa540ee-dfc8-4f16-91c2-34e22c0d1bdb) 236 | 237 | 238 | 239 | 240 | ## Step 25 241 | 242 | Click on **Generate from Sample** button 243 | 244 | 245 | ![29 Parse JSON Generate Sample](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/565e78eb-2a57-489f-938d-1552626df104) 246 | 247 | ## Step 26 248 | 249 | Paste the JSON content that you copied from Step 22 250 | 251 | ![30 Paste JSON cONTENT FROM previois step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f105f380-19a3-40ae-a783-af19e476ede5) 252 | 253 | 254 | ![31 Paste JSON cONTENT FROM previois step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/0e0bc93f-ad2d-44e9-9454-8c0ce2caf476) 255 | 256 | ## Step 27 257 | 258 | In next step, search for **Respond to a PowerApp or flow** action 259 | 260 | ![32 Respond to Poweer Apps or flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/d673d3b3-7aaf-4339-b2b2-52b9657dec83) 261 | 262 | 263 | ## Step 28 264 | 265 | Add text input variable called **response** and use **text** 266 | 267 | from Parse JSON 268 | ![33 Output Summary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/a6f5941a-84e8-4309-b031-f899da8cd505) 269 | 270 | 271 | 272 | ## Step 29 273 | 274 | Save the flow 275 | 276 | ![33 Save flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/fa25242c-9446-4840-9ead-0ce78242220f) 277 | 278 | 279 | ## Step 30 280 | 281 | 282 | Back to Power Apps, 283 | 284 | a) Set the response variable at the **Summarize Text** Button 285 | 286 | ![39 - Summarize Text](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/d1c07d51-6075-41ac-b994-cfde95e9d8fd) 287 | 288 | 289 | b) Set the response variable at the **SQL** Button 290 | 291 | ![40 SQL](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/77f479fa-76fe-472c-a5cd-388ecdb6d0fc) 292 | 293 | 294 | c) Set the response variable at the **Classify Text** Button 295 | 296 | ![41 Classify ](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/77746ea7-ffb0-4a98-885b-184dfefee3bb) 297 | 298 | 299 | d) Set the response variable at the **Parsed Unstructured** Button 300 | 301 | 302 | ![42 Unstrcuted](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f49e1e56-532a-48b7-a0ff-2d965078f19d) 303 | 304 | e) Set the response variable at the **Classify** Button 305 | 306 | ![43 Classfiy](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/d33aa772-f1b4-442f-b6d3-800d0c51568c) 307 | 308 | 309 | 310 | ## Step 31 311 | 312 | Assign gOutput the label control 313 | 314 | 315 | ![36 Final Output](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/6e61d0d2-ad4c-4e96-8024-eb69132e7327) 316 | 317 | 318 | ## Step 32 319 | 320 | Run the Power Apps, ask question, click on buttons and anwser is shown at output label 321 | 322 | ![50 Final Summarize](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/dad2a248-ec2f-4779-8ce9-15b206ef0dc5) 323 | 324 | ![51 Final SQL](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/bc9b633c-320c-4b8e-a5c9-32a5fa3a50e9) 325 | 326 | ![52 Final Classify Text](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/8747b417-e950-4d43-96c5-7ef4abefa3fe) 327 | 328 | 329 | ![53 Unstsrcu](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/519ab059-bbff-4ff7-84f0-67f627e35b69) 330 | 331 | ![54 Classify](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/bcf6f7ac-ccf6-420d-9126-382468cf9f70) 332 | 333 | 334 | 335 | 336 | 337 | -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/01 Canvas App controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/01 Canvas App controls.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/02 Create new flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/02 Create new flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/03 Rename, HTTP Action, POST.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/03 Rename, HTTP Action, POST.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/04 Az Open AI - Competions - Questions - View Code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/04 Az Open AI - Competions - Questions - View Code.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/05 View Code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/05 View Code.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/06 HTTP Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/06 HTTP Copy.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/07 Ask In PowerApps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/07 Ask In PowerApps.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/08 Ask In PowerApps .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/08 Ask In PowerApps .png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/09 Compose Body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/09 Compose Body.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/10 Compose Body 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/10 Compose Body 2.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/10 Compose Body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/10 Compose Body.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/11 Canvas App FLow 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/11 Canvas App FLow 2.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/11 Canvas App FLow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/11 Canvas App FLow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/12 Flow Run'.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/12 Flow Run'.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/13 Edit Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/13 Edit Flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/14 Compose Output JSON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/14 Compose Output JSON.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/15 Edit Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/15 Edit Flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/16 Parse JSON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/16 Parse JSON.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/17 HTTP Rename Action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/17 HTTP Rename Action.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/18 Parse JSON Body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/18 Parse JSON Body.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/19 Parse JSON Reanme Paste JSON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/19 Parse JSON Reanme Paste JSON.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/20 Init Var outsummary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/20 Init Var outsummary.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/21 Apply to each.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/21 Apply to each.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/22 Apply to each - Choices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/22 Apply to each - Choices.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/22 Apply to each - Current Item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/22 Apply to each - Current Item.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/23 Canvas App - Refresh PA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/23 Canvas App - Refresh PA.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/24 Canvas App - Run the flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/24 Canvas App - Run the flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/25 Click on flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/25 Click on flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/26 Copy the Output Compose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/26 Copy the Output Compose.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/27 Edit Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/27 Edit Flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/28 Parse JSON Output summary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/28 Parse JSON Output summary.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/29 Parse JSON Generate Sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/29 Parse JSON Generate Sample.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/30 Paste JSON cONTENT FROM previois step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/30 Paste JSON cONTENT FROM previois step.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/31 Paste JSON cONTENT FROM previois step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/31 Paste JSON cONTENT FROM previois step.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/32 Respond to Poweer Apps or flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/32 Respond to Poweer Apps or flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/33 Output Summary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/33 Output Summary.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/33 Save flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/33 Save flow.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/34 Adjust Flow Response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/34 Adjust Flow Response.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/35 Output label.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/35 Output label.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/36 Final Output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/36 Final Output.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/39 - Summarize Text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/39 - Summarize Text.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/40 SQL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/40 SQL.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/41 Classify .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/41 Classify .png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/42 Unstrcuted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/42 Unstrcuted.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/43 Classfiy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/43 Classfiy.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/50 Final Summarize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/50 Final Summarize.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/51 Final SQL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/51 Final SQL.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/52 Final Classify Text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/52 Final Classify Text.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/53 Unstsrcu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/53 Unstsrcu.png -------------------------------------------------------------------------------- /02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/54 Classify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/images/54 Classify.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/Readme.md: -------------------------------------------------------------------------------- 1 | # 03 Teams Bot with Azure OpenAI 2 | 3 | In this example, user will ask question within Teams, Power Automate calls Azure OpenAI, Azure OpenAI's text-davinci-003 model is executed and question is answered within Teams. 4 | 5 | ## Step 1 6 | 7 | From Solution, Select New >> Automation >> Cloud Flow >> Automated 8 | 9 | ![01 Automated Teams Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/6a133c6b-e455-4207-a146-1dadc61cda6a) 10 | 11 | 12 | 13 | ## Step 2 14 | 15 | Name the flow, select **when a new channel message** from the flow trigger, click in **Create** 16 | 17 | ![02 When new channel is added](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/e9daf679-2db3-46da-90e0-4a81b795181b) 18 | 19 | 20 | ## Step 3 21 | 22 | Select a **Team** and **Channel** 23 | 24 | ![03 TEams and Channel](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/010d0ba0-742f-4ec6-8923-49d98617f387) 25 | 26 | 27 | # Step 4 28 | 29 | Rename the flow, add new step, add new HTTP action and set to post 30 | 31 | ![04 Rename flow - HTTP - Post](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/1dd7a5cf-7535-41dc-adff-b4eb1ec2c2e8) 32 | 33 | 34 | # Step 7 35 | 36 | Nagivate to the Azure portal, under playground select **Compleltions** >> Select **Question answring** >> select the **View code** 37 | 38 | 39 | ![07 Az Open AI - Competions - Questions - View Code](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/4be798ee-1063-4f6a-8b41-147e2f4245e5) 40 | 41 | # Step 8 42 | 43 | Copy the Endpoint and Key from Azure OpenAI service 44 | 45 | ![08 View Code](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f1c4ec94-af8e-4aec-8b28-c49e28defebd) 46 | 47 | 48 | # Step 9 49 | 50 | 51 | - Copy the URL to URI at Power Automate 52 | - For key type in **api-kpi** amd paste the key 53 | - Craft JSON content for the Body. 54 | 55 | For Body of HTTP, you need a craft JSON content from [Azure OpenAI API refrence](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference). 56 | 57 | 58 | ``` 59 | { 60 | "prompt": "@{triggerOutputs()?['body/body']}", 61 | "max_tokens": 200, 62 | "temperature": 0 63 | } 64 | 65 | ``` 66 | 67 | ![07 HTTP Copy](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/d08e5aaf-3e9b-4c61-ba33-5f9a38f5aeeb) 68 | 69 | 70 | 71 | # Step 11 72 | 73 | In next step, search for **compose** message >> select the **Add dynamic content** >> Under HTTP heading select Body >> Click on Save button. 74 | 75 | ![09 Compose Body](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/c73e873a-56fe-4a6f-a79f-6bd93d88c8d1) 76 | 77 | 78 | # Step 12 79 | 80 | 81 | a) Test the flow 82 | 83 | ![15 Test Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f0841b51-dd9b-4d7a-a5f5-cffbe03066ea) 84 | 85 | b) Perform Manual Test 86 | 87 | ![15 Test Flow 2](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/25b0d289-508f-4daa-bd50-1ca771c4dc7a) 88 | 89 | c) Add a new message to the channel 90 | 91 | ![15 Test Flow 3](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/48f91299-28b0-4517-a313-6f666a063cde) 92 | 93 | # Step 13 94 | 95 | Type a question in Teams channel (within OpenAI messages) 96 | 97 | ![16 Teams Message](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f0aeba42-dac5-45b6-af40-97d127515981) 98 | 99 | # Step 14 100 | 101 | Test the flow 102 | 103 | 104 | 105 | ![17 Flow Test](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/91f916ed-bfbf-4608-9f44-9b3bd3e6f62e) 106 | 107 | Test within Teams 108 | 109 | 110 | ![18 Teams message](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/af8786f1-7b1f-495e-9007-10d3437d4cbb) 111 | 112 | 113 | # Step 13 114 | 115 | Once the flow is successful, **copy the output JSON to a text file** that you will use in upcoming steps 116 | 117 | ~~~ 118 | { 119 | "type": "object", 120 | "properties": { 121 | "id": { 122 | "type": "string" 123 | }, 124 | "object": { 125 | "type": "string" 126 | }, 127 | "created": { 128 | "type": "integer" 129 | }, 130 | "model": { 131 | "type": "string" 132 | }, 133 | "choices": { 134 | "type": "array", 135 | "items": { 136 | "type": "object", 137 | "properties": { 138 | "text": { 139 | "type": "string" 140 | }, 141 | "index": { 142 | "type": "integer" 143 | }, 144 | "finish_reason": { 145 | "type": "string" 146 | }, 147 | "logprobs": {} 148 | }, 149 | "required": [ 150 | "text", 151 | "index", 152 | "finish_reason", 153 | "logprobs" 154 | ] 155 | } 156 | }, 157 | "usage": { 158 | "type": "object", 159 | "properties": { 160 | "completion_tokens": { 161 | "type": "integer" 162 | }, 163 | "prompt_tokens": { 164 | "type": "integer" 165 | }, 166 | "total_tokens": { 167 | "type": "integer" 168 | } 169 | } 170 | } 171 | } 172 | } 173 | ~~~ 174 | 175 | 176 | ![14 Compose Output JSON](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f1e8385c-37af-4ac1-92ea-99474679bd1a) 177 | 178 | 179 | # Step 13 180 | 181 | Edit the flow 182 | 183 | ![15 Edit Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/742cdd96-e61a-47b9-b1a5-bd29c8c77849) 184 | 185 | 186 | # Step 14 187 | 188 | in next step search for Parse JSON, rename the action, select the **Add dynamic content** and select **body** 189 | 190 | ![22 Parse JSON 1](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/14f3f640-fce5-4579-94f1-45f3580fe0e5) 191 | 192 | 193 | ![23 Parse JSON - Generte from Sample](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/eba3b962-a11b-43bd-a0fb-292c27d32106) 194 | 195 | 196 | 197 | ![24 Parse JSON - Generte from Sample PASTE JSON ](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/0f77561a-10d0-468c-b14d-4b7cfffb8e15) 198 | 199 | 200 | 201 | ![25 Parsse JSON NExt Step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/c29327a9-df58-4e0d-89b8-7bd732d2676a) 202 | 203 | 204 | # Step 15 205 | 206 | In next step, create a new varibale, initialize varibale called **outsummary** with string data datatype 207 | 208 | ![20 Init Var outsummary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f051c8f2-2bea-4e0f-bd4d-12883ad5a3f9) 209 | 210 | 211 | # Step 17 212 | 213 | In next step, search of **apply to each** control, select **Add dynamic content** and select **choices** from Parse JSON from above steps 214 | 215 | ![21 Apply to each](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/08b8ef7d-0d69-4296-9fb5-a85a56ba5eee) 216 | 217 | 218 | 219 | # Step 18 220 | Within **apply to each** control, select a set variable and in the value property set the **Current item** 221 | 222 | ![22 Apply to each - Current Item](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/ba9c2910-3bbe-41df-b9a1-36558428d21b) 223 | 224 | 225 | # Step 19 226 | 227 | Click on runnning flow 228 | 229 | ![19 run of flow run](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/897d65d2-bc66-42c0-8bce-8989389ed068) 230 | 231 | 232 | # Step 20 233 | 234 | Copy the output JSON from compose to a text file. You will use in next step 235 | 236 | ~~~ 237 | { 238 | "text": "\n\nPower Platform governance is critical because it helps ensure that the platform is used in a secure, compliant, and efficient manner. It also helps ensure that the platform is used in a way that meets the organization's business objectives. Governance helps ensure that the platform is used in a way that is consistent with the organization's policies and procedures, and that it is used in a way that is compliant with applicable laws and regulations. Additionally, governance helps ensure that the platform is used in a way that is cost-effective and that it is used in a way that maximizes the value of the platform for the organization.", 239 | "index": 0, 240 | "finish_reason": "stop", 241 | "logprobs": null 242 | } 243 | ~~~ 244 | 245 | 246 | ![20 Copy Output from Compose Message](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/26b9eb19-1637-4124-8e8c-37c6ebad6e56) 247 | 248 | 249 | # Step 21 250 | 251 | Edit the flow 252 | 253 | 254 | ![21 Edit Flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/3669d08f-16cd-41cf-8281-ff6ac47f7841) 255 | 256 | 257 | 258 | # Step 22 259 | 260 | In next step, search of Parse JSON, select **outsummary**, click on **Generate from Sample** 261 | 262 | ![22 Parse JSON 1](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/880f0c4b-cbf2-4b67-a5e6-1c9e8bfb9faa) 263 | 264 | # Step 23 265 | 266 | Paste the JSON content that you copied from Step 20 267 | 268 | 269 | ![24 Parse JSON - Generte from Sample PASTE JSON ](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/34a30db2-03c0-43dc-b55f-e8b45e87a19a) 270 | 271 | ![25 Parsse JSON NExt Step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/c8eec182-0116-4f48-bf8b-661d6e22c956) 272 | 273 | 274 | # Step 24 275 | 276 | In Next Step, search for Parse JSON action, select **Add dynamic content** and use outsummary variable 277 | ![28 Parse JSON Output summary](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f40bfc52-356b-4cbe-9bd7-2936c52fabd9) 278 | 279 | 280 | # Step 25 281 | 282 | Click on **Generate from Sample** button 283 | 284 | ![29 Parse JSON Generate Sample](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/ad47ef47-444e-409b-83c1-2dbb19ea52d1) 285 | 286 | 287 | # Step 26 288 | 289 | Paste the JSON content that you copied from Step 22 290 | 291 | 292 | ~~~ 293 | { 294 | "text": "\n\nPower Apps help with digital transformation by providing a platform for businesses to quickly and easily create custom applications that can be used to automate processes, streamline operations, and improve customer experiences. Power Apps can be used to create applications that can be used to capture data, automate processes, and integrate with other systems. This helps businesses to quickly and easily create applications that can be used to improve customer experiences, increase efficiency, and reduce costs. Additionally, Power Apps can be used to create applications that can be used to create custom reports, dashboards, and analytics. This helps businesses to gain insights into their operations and make better decisions.", 295 | "index": 0, 296 | "finish_reason": "stop", 297 | "logprobs": null 298 | } 299 | ~~~ 300 | 301 | ![30 Paste JSON cONTENT FROM previois step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/b97fb88c-e375-4215-bb09-8c3fbf8f89d1) 302 | 303 | ![31 Paste JSON cONTENT FROM previois step](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/3400435a-e8ee-42c9-92d2-b52708e27d37) 304 | 305 | # Step 27 306 | In next step, search for **Reply with a message in a channel** 307 | 308 | ![32 Respond to Poweer Apps or flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/38b2c7d1-4fa5-4d5e-96c1-1217045c54b3) 309 | 310 | ![30 Reply with a message in a channel](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f9eeaf05-44b2-4cb3-a19c-10c0527a1460) 311 | 312 | # Step 28 313 | 314 | From **Add dynamic content** 315 | - search for **Message id** 316 | - Select Team 317 | - Select Channel 318 | - Select **text** from Message 319 | 320 | ![31 Message text](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/612186e4-070a-4dc6-b5c4-d1a009ae3203) 321 | 322 | 323 | # Step 29 324 | 325 | Save the flow 326 | 327 | ![32 Save flow](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/60044cc3-c865-4a73-ba7f-4f4aa0134c60) 328 | 329 | # Step 30 330 | 331 | Create a **New Conversation** within **OpenAI messages** in Teams 332 | 333 | 334 | ![33 Test Message in Teams](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/7047fc32-1ff6-4758-a1a8-75fd22bd20cd) 335 | 336 | 337 | # Step 31 338 | 339 | After few seconds, a new messages shows up from Azure OpenAI. 340 | 341 | 342 | ![34 Teams Message](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/a12510b1-a7ee-4ad1-8454-2c335481f5e9) 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/01 Automated Teams Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/01 Automated Teams Flow.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/02 When new channel is added.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/02 When new channel is added.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/03 TEams and Channel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/03 TEams and Channel.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/04 Rename flow - HTTP - Post.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/04 Rename flow - HTTP - Post.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/05 Az Open AI - Competions - Questions - View Code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/05 Az Open AI - Competions - Questions - View Code.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/06 View Code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/06 View Code.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/07 Ask In PowerApps 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/07 Ask In PowerApps 2.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/07 HTTP Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/07 HTTP Copy.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/09 Compose Body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/09 Compose Body.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/11 Button Run Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/11 Button Run Flow.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/12 Compose Output JSON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/12 Compose Output JSON.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/12 Edit Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/12 Edit Flow.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/15 Test Flow 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/15 Test Flow 2.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/15 Test Flow 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/15 Test Flow 3.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/15 Test Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/15 Test Flow.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/16 Teams Message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/16 Teams Message.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/17 Flow Test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/17 Flow Test.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/18 Teams message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/18 Teams message.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/19 run of flow run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/19 run of flow run.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/20 Copy Output from Compose Message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/20 Copy Output from Compose Message.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/21 Edit Flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/21 Edit Flow.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/22 Parse JSON 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/22 Parse JSON 1.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/23 Parse JSON - Generte from Sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/23 Parse JSON - Generte from Sample.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/24 Parse JSON - Generte from Sample PASTE JSON .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/24 Parse JSON - Generte from Sample PASTE JSON .png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/25 Parsse JSON NExt Step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/25 Parsse JSON NExt Step.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/30 Reply with a message in a channel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/30 Reply with a message in a channel.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/31 Message text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/31 Message text.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/32 Save flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/32 Save flow.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/33 Test Message in Teams.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/33 Test Message in Teams.png -------------------------------------------------------------------------------- /03MicrosoftTeams&AzureOpenAI/images/34 Teams Message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/03MicrosoftTeams&AzureOpenAI/images/34 Teams Message.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/Readme.md: -------------------------------------------------------------------------------- 1 | # 04 Power Platform Custom Connector for Azure OpemAI 2 | 3 | This inspired is Microsoft MVP CHRIS O'BRIEN blogpost [Power Platform Custom Connector for Azure OpenAI](https://www.sharepointnutsandbolts.com/2023/02/call-chatgpt-gpt-3-from-power-apps-power-automate.html) 4 | In this example you will able to 5 | - Use Power PLatform custom connector for Azure OpenAI 6 | - Modifications of Swagger file 7 | - Test the connector 8 | - Usage of the connector within Power Automate 9 | 10 | ## Step 1 11 | 12 | a) Go to Make.PowerApps.com 13 | b) Select **Custom Connector** 14 | c) Select **Create from blank** 15 | 16 | ![01 Custom Connector](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/451a63dc-b6d1-4b31-aec1-e6df9ad53ce0) 17 | 18 | 19 | ## Step 2 20 | 21 | Name the custom connetor 22 | 23 | ![02 Name the connector](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/a71774ee-9e3f-4900-b715-1b21f25f9ddd) 24 | 25 | ## Step 3 26 | 27 | Turn on the custom connector 28 | 29 | ![03 Turn of Swagger Editor](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/00718ee3-956b-43d6-ad9d-71cf5230dde4) 30 | 31 | ## Step 4 32 | 33 | Update the **host** witin Swagger Editor 34 | 35 | ![04 Swagger Host](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/529b866b-b997-4c0c-9b4a-a9e1846aec63) 36 | 37 | 38 | ## Step 5 39 | 40 | Update the **default** parameter witin Swagger Editor 41 | 42 | ![05 Swagger Deployment ID](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/f360c0d1-fe85-4999-92d9-de81c18fb508) 43 | 44 | ~~~ 45 | swagger: '2.0' 46 | info: 47 | title: AzOpenAI 48 | description: Azure OpenAI - Completions API 49 | version: '1.0' 50 | host: [YOUR ENDPOINT PREFIX HERE].openai.azure.com 51 | basePath: /openai 52 | schemes: 53 | - https 54 | consumes: [] 55 | produces: [] 56 | paths: 57 | /deployments/{deployment-id}/completions: 58 | post: 59 | responses: 60 | default: 61 | description: default 62 | schema: 63 | type: object 64 | properties: 65 | id: 66 | type: string 67 | description: id 68 | object: 69 | type: string 70 | description: object 71 | created: 72 | type: integer 73 | format: int32 74 | description: created 75 | model: 76 | type: string 77 | description: model 78 | choices: 79 | type: array 80 | items: 81 | type: object 82 | properties: 83 | text: 84 | type: string 85 | description: text 86 | index: 87 | type: integer 88 | format: int32 89 | description: index 90 | logprobs: 91 | type: string 92 | description: logprobs 93 | finish_reason: 94 | type: string 95 | description: finish_reason 96 | description: choices 97 | usage: 98 | type: object 99 | properties: 100 | prompt_tokens: 101 | type: integer 102 | format: int32 103 | description: prompt_tokens 104 | completion_tokens: 105 | type: integer 106 | format: int32 107 | description: completion_tokens 108 | total_tokens: 109 | type: integer 110 | format: int32 111 | description: total_tokens 112 | description: usage 113 | parameters: 114 | - name: deployment-id 115 | in: path 116 | required: true 117 | type: string 118 | default: [YOUR DEPLOYMENT ID HERE] 119 | x-ms-visibility: important 120 | - name: api-version 121 | in: query 122 | required: true 123 | type: string 124 | default: '2022-12-01' 125 | x-ms-visibility: important 126 | - name: Content-Type 127 | in: header 128 | required: true 129 | default: application/json 130 | type: string 131 | - name: body 132 | in: body 133 | required: false 134 | schema: 135 | type: object 136 | properties: 137 | prompt: 138 | type: string 139 | description: >- 140 | The prompt(s) to generate completions for, encoded as a string 141 | or array of strings.\nNote that <|endoftext|> is the document 142 | separator that the model sees during training, so if a prompt 143 | is not specified the model will generate as if from the 144 | beginning of a new document. Maximum allowed size of string 145 | list is 2048. 146 | max_tokens: 147 | type: integer 148 | description: >- 149 | The token count of your prompt plus max_tokens cannot exceed 150 | the model's context length. Most models have a context length 151 | of 2048 tokens (except for the newest models, which support 152 | 4096). Has minimum of 0. 153 | temperature: 154 | type: number 155 | description: >- 156 | What sampling temperature to use. Higher values means the 157 | model will take more risks. Try 0.9 for more creative 158 | applications, and 0 (argmax sampling) for ones with a 159 | well-defined answer.\nWe generally recommend altering this or 160 | top_p but not both. 161 | operationId: Completions 162 | summary: Completions 163 | description: Completions API 164 | x-ms-visibility: important 165 | definitions: {} 166 | parameters: {} 167 | responses: {} 168 | securityDefinitions: 169 | API Key: 170 | type: apiKey 171 | in: header 172 | name: api-key 173 | security: 174 | - API Key: [] 175 | tags: [] 176 | ~~~ 177 | 178 | 179 | In my example **host** is as follows 180 | ![06 Az Overview Host](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/b425cad0-6290-4c5b-ba7e-6122bb6f15ef) 181 | 182 | and **default** parameter is as follows 183 | ![07 Az default](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/465a40fa-721a-4105-9690-11b459387946) 184 | 185 | - **NOTE** DONT Modify the other **default** of '2022-12-01' 186 | 187 | ![15 DONT MODIFY other Default](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/0c3cd96d-0402-4351-a5b5-9ef1617ba62d) 188 | 189 | ## Step 6 190 | 191 | Update Connector logo and verify host. Click on Security. 192 | 193 | ![08 Update logo and verify the Host](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/54c4ec3c-125f-4c6a-bad6-9f80683777e6) 194 | 195 | ## Step 7 196 | 197 | Keep default settings of **Security** page and click next. 198 | 199 | ![09 Security Key](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/7e4ec938-d995-413c-9308-302adaf6dfde) 200 | 201 | ## Step 8 202 | 203 | Keep default settings of **Definitions** page and click next. 204 | 205 | ![10 Definations](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/fc35eee2-9ab9-4bfc-89f4-68caa91a8606) 206 | 207 | ## Step 9 208 | 209 | Keep default settings of **Code (preview)** page and click next. 210 | 211 | ![11 Code Preview](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/eade8440-bf7a-4c07-8d09-769381557798) 212 | 213 | 214 | ## Step 10 215 | 216 | - Select the new connector 217 | - Enter the API Key from pop up window 218 | - Click on Update Connector 219 | 220 | ![12 Update Connector](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/db6928e6-320a-4f5b-9fca-72581dc079cd) 221 | 222 | ## Step 11 223 | 224 | - Type a question at the prompt 225 | - max-token to 300 226 | - temperature to 1 227 | - Click on **Test Operation** 228 | 229 | ![13 TEst Connector](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/c72d9c43-66a0-4e4c-862c-41b98d4e27d9) 230 | 231 | 232 | ## Step 12 233 | 234 | 200 Reponse means API call is successful 235 | ![14 Successful Test](https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/35063ed0-a9a1-4006-8a6e-e5495bc39113) 236 | 237 | 238 | ## Step 12 - Video on how to use Custom Connector with Power Automate 239 | 240 | 241 | https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/ca56ffce-6eef-4c79-a93c-fc8688201b6d 242 | 243 | 244 | ## Step 13 - Video on how to use Custom Connector with Power Apps 245 | 246 | 247 | 248 | https://github.com/aarohbits/PowerAppsWorkShopAOAI/assets/35991723/4e141a7a-3f76-4904-be4d-bd3c6c6a8089 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/01 Custom Connector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/01 Custom Connector.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/02 Name the connector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/02 Name the connector.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/03 Turn of Swagger Editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/03 Turn of Swagger Editor.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/04 Swagger Host.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/04 Swagger Host.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/05 Swagger Deployment ID.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/05 Swagger Deployment ID.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/06 Az Overview Host.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/06 Az Overview Host.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/07 Az default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/07 Az default.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/08 Update logo and verify the Host.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/08 Update logo and verify the Host.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/09 Security Key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/09 Security Key.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/10 Definations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/10 Definations.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/11 Code Preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/11 Code Preview.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/12 Update Connector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/12 Update Connector.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/13 TEst Connector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/13 TEst Connector.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/14 Successful Test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/14 Successful Test.png -------------------------------------------------------------------------------- /04PowerPlatformCustomConnectorwithAzureOpenAI/images/15 DONT MODIFY other Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/04PowerPlatformCustomConnectorwithAzureOpenAI/images/15 DONT MODIFY other Default.png -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 1/ContosoCoffee_1_0_0_1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 1/ContosoCoffee_1_0_0_1.zip -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 1/Importing Module 1 Completed.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 1/Importing Module 1 Completed.docx -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 2/ContosoCoffee_1_0_0_2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 2/ContosoCoffee_1_0_0_2.zip -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 2/Importing Module 2 Completed.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 2/Importing Module 2 Completed.docx -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 3/ContosoCoffee_1_0_0_3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 3/ContosoCoffee_1_0_0_3.zip -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 3/Importing Module 3 Completed.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 3/Importing Module 3 Completed.docx -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 4/Complete Solution.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 4/Complete Solution.docx -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 4/ContosoCoffee_1_0_0_4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 4/ContosoCoffee_1_0_0_4.zip -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 5/PowerAppsAzureOpenAI_1_0_0_1_managed.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 5/PowerAppsAzureOpenAI_1_0_0_1_managed.zip -------------------------------------------------------------------------------- /Completed Lab Solution for students/Module 5/PowerAppsAzureOpenAI_1_0_0_2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Completed Lab Solution for students/Module 5/PowerAppsAzureOpenAI_1_0_0_2.zip -------------------------------------------------------------------------------- /Excel Data/Machine-Order-Data.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Excel Data/Machine-Order-Data.xlsx -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 aarohbits 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Labs/00-AppInADay Lab Overview.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/00-AppInADay Lab Overview.pdf -------------------------------------------------------------------------------- /Labs/01-Power Apps Canvas App Lab Manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/01-Power Apps Canvas App Lab Manual.pdf -------------------------------------------------------------------------------- /Labs/02-Microsoft Dataverse Lab Manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/02-Microsoft Dataverse Lab Manual.pdf -------------------------------------------------------------------------------- /Labs/03-Power Automate Lab Manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/03-Power Automate Lab Manual.pdf -------------------------------------------------------------------------------- /Labs/04 Integration of Power Platform with Azure OpenAI Labs Manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/04 Integration of Power Platform with Azure OpenAI Labs Manual.pdf -------------------------------------------------------------------------------- /Labs/AppInADay Lab Introduction.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/AppInADay Lab Introduction.pptx -------------------------------------------------------------------------------- /Labs/Machine-Order-Data.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/Machine-Order-Data.xlsx -------------------------------------------------------------------------------- /Labs/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Labs/Readme.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Power Platform Workshop with Azure OpenAI 2 | 3 | ## Overview 4 | 5 | Integration of Power Platform with Azure OpenAI Labs 6 | 7 | 1. Seamless Integration: Azure Open AI provides seamless integration with Power Platform's low-code development environment, allowing users to easily incorporate AI capabilities into their applications and workflows. This integration eliminates the need for complex coding and enables users to enhance productivity by leveraging AI without extensive programming knowledge. 8 | 9 | 2. Pre-built AI Models: Azure Open AI offers a wide range of pre-built AI models that can be readily integrated into Power Platform applications. These models cover various domains such as natural language processing, image recognition, sentiment analysis, and more. By utilizing these pre-built models, users can quickly add advanced AI capabilities to their low-code applications, saving time and effort in developing AI algorithms from scratch. 10 | 11 | 3. Custom AI Models: In addition to pre-built models, Azure Open AI enables users to train and deploy their own custom AI models within the Power Platform environment. This empowers users to address specific business requirements and build AI solutions tailored to their unique needs. With low-code development and Azure's powerful AI capabilities, users can improve productivity by rapidly developing and deploying custom AI models without extensive coding expertise. 12 | 13 | 4. Data Integration and Analysis: Azure Open AI provides seamless data integration capabilities, allowing users to connect Power Platform applications with various data sources, both on-premises and in the cloud. This integration enables users to leverage AI algorithms to analyze and extract insights from large volumes of data, enhancing productivity by automating data processing tasks and generating valuable insights for decision-making. 14 | 15 | 5. AI-Driven Automation: With Azure Open AI and Power Platform's low-code capabilities, users can create intelligent workflows and automate repetitive tasks using AI algorithms. For example, they can build chatbots for customer support, automate document processing and analysis, or develop predictive models for forecasting. By automating these tasks, users can significantly improve productivity, streamline operations, and allocate resources more efficiently. 16 | Overall, the combination of Azure Open AI and Power Platform's low-code development environment empowers users to harness the power of AI to improve productivity. Whether through pre-built models, custom AI development, data integration, or automation, this integration offers a streamlined and efficient approach to incorporating AI capabilities into applications and workflows. 17 | 18 | ## Prerequisites 19 | 20 | 1. **Registration**: Begin by registering for Azure Open AI by visiting the following link: [Azure Open AI Registration](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/overview). This registration process will provide you access to the Azure Open AI service. 21 | 22 | 2. **Resource Creation**: After your registration is approved, log in to the Azure portal and create an Azure Open AI resource. This resource will serve as the foundation for utilizing the Azure Open AI capabilities within your applications and workflows. 23 | 24 | 3. **Region Selection**: During the resource creation process, ensure that you select the US and Europe [region](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/overview) as your preferred region. Choosing the correct region will ensure you have access to the desired AI capabilities. On 01 June 2023, these regions are supported. 25 | a) East US 26 | b) South Central US 27 | c) West Europe 28 | d) France Central 29 | 30 | 4. **Resource Deployment**: Once the Azure Open AI resource is successfully created, proceed to create a deployment within the resource. This deployment allows you to configure and manage the specific AI models and services you want to utilize. You can customize the deployment based on your requirements and the specific AI capabilities you want to incorporate into your applications. 31 | 32 | 5. **Utilization and Integration**: With the deployment set up, you can now start utilizing the Azure Open AI services within your applications and workflows. This includes integrating the AI models, leveraging the available APIs and SDKs, and utilizing the AI capabilities to enhance productivity, automate tasks, and gain valuable insights from your data. 33 | 34 | 35 | ### Azure OpenAI Prerequisites 36 | 37 | 1. **Registration**: Begin by registering for Azure Open AI by visiting the following link: [Azure Open AI Registration](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/overview). This registration process will provide you access to the Azure Open AI service. 38 | 39 | 2. **Resource Creation**: After your registration is approved, log in to the Azure portal and create an Azure Open AI resource. This resource will serve as the foundation for utilizing the Azure Open AI capabilities within your applications and workflows. 40 | 41 | 42 | ### Power Platform Prerequisites 43 | 44 | 1. Premium Connectors 45 | 46 | - Azure OpenAI requires Premium connector with HTTP action OR with Custom Connctors. 47 | - Resources 48 | - (Custom Connector Overview)[https://learn.microsoft.com/en-us/connectors/custom-connectors/] 49 | - (How to create Custom Connector from scratch)[https://learn.microsoft.com/en-us/connectors/custom-connectors/define-blank] 50 | 51 | 52 | ## How does these samples work 53 | 54 | ### Each Sample traget a use case. 55 | 56 | #### 01 [Power Apps with Azure OpenAI to ask questions from users](https://github.com/aarohbits/PowerAppsWorkShopAOAI/blob/main/01SimplePowerAppswithAzureOpenAISample/Readme.md) 57 | #### 02 [How to leverage Power Apps with Azure OpenAI](https://github.com/aarohbits/PowerAppsWorkShopAOAI/blob/main/02PowerAppsAzureOpenAIwithDifferentActionswithinDavinci/Readme.md) 58 | - Summarize Text 59 | - SQL 60 | - Classify Text 61 | - Parsed Unstructured 62 | - Classify 63 | #### 03 [How to leverage Microsoft Teams bot with Azure OpenAI](https://github.com/aarohbits/PowerAppsWorkShopAOAI/blob/main/03MicrosoftTeams%26AzureOpenAI/Readme.md) 64 | #### 04 [How to leverage Custom Connector with Azure OpenAI](https://github.com/aarohbits/PowerAppsWorkShopAOAI/blob/main/04PowerPlatformCustomConnectorwithAzureOpenAI/Readme.md) 65 | 66 | 67 | ## **HUGE Credit Goes to** 68 | 1. [Balamurugan Balakreshnan](https://www.linkedin.com/in/balamurugan-balakreshnan/) 69 | 2. [Microsoft MVP Chris O Brien)(https://www.linkedin.com/in/chrisobrienmvp/) 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /SCREEENSHOTS/01 Canvas Apps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/SCREEENSHOTS/01 Canvas Apps.png -------------------------------------------------------------------------------- /SCREEENSHOTS/02 Canvas App.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/SCREEENSHOTS/02 Canvas App.png -------------------------------------------------------------------------------- /SCREEENSHOTS/03 Teams Bot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/SCREEENSHOTS/03 Teams Bot.png -------------------------------------------------------------------------------- /SCREEENSHOTS/04 Custom Connector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/SCREEENSHOTS/04 Custom Connector.png -------------------------------------------------------------------------------- /Slide Decks/01-Business Applications and Power Apps Canvas Apps.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Slide Decks/01-Business Applications and Power Apps Canvas Apps.pdf -------------------------------------------------------------------------------- /Slide Decks/02-Microsoft Dataverse.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Slide Decks/02-Microsoft Dataverse.pdf -------------------------------------------------------------------------------- /Slide Decks/03-Microsoft Power Automate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Slide Decks/03-Microsoft Power Automate.pdf -------------------------------------------------------------------------------- /Slide Decks/04- Better Together Power Apps and Azure OpenAI.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/Slide Decks/04- Better Together Power Apps and Azure OpenAI.pdf -------------------------------------------------------------------------------- /file_one.txt: -------------------------------------------------------------------------------- 1 | My First file -------------------------------------------------------------------------------- /images/01 Power Apps Canvas Controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aarohbits/PowerAppsWorkShopAOAI/c56072df3a86e6ee6a772cbba71d4baae8cfc0b8/images/01 Power Apps Canvas Controls.png --------------------------------------------------------------------------------