semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

How to use it in Power Apps?

Open xunyicjq opened this issue 2 years ago • 5 comments

Is there any Sample for Power Apps to use ?

xunyicjq avatar May 12 '23 07:05 xunyicjq

@evchaki FYI

dluc avatar May 12 '23 21:05 dluc

Is there any Sample for Power Apps to use ?

Would the use case here be a Canvas app that calls out to a function that hosts SK? Something else?

craigomatic avatar May 16 '23 21:05 craigomatic

Yes. How to call SK in Canvas app. Is there any Sample ?

xunyicjq avatar May 17 '23 02:05 xunyicjq

Yes. How to call SK in Canvas app. Is there any Sample ?

xunyicjq avatar May 17 '23 02:05 xunyicjq

@xunyicjq , here are the steps, but there is some work for you to do to get it all setup:

  1. Deploy Semantic Kernel to Azure
  2. Once in Azure you need to create a Swagger / OpenAPI spec for the Kernel and for the skills you want to use in Power Apps / Power Automate (You can use API Management for this)
  3. On the go to the API definition tab - if you deployed Semantic Kernel as a web app and put in the URL to the JSON for the Swagger definition. There is a button on that page that will create you a custom connector.
  4. Go to Power Apps or Power Automate and select the environment you pushed the custom connector to
  5. Create a new app or flow and use that custom connector. You should be able to pass the ask over and get results.

evchaki avatar May 17 '23 15:05 evchaki