In a previous article, I described how you can use OpenAI API to create a custom connector in order to interact and query Chat GPT.

If you have missed this post, please go back and have a look

Power Platform – ChatGPT Custom Connector

If you want to download the connector manifest and import it directly to your tenant/custom connector, please navigate to my public GitHub repository :

https://github.com/samirlogisam/PowerAppsChatGPT/blob/main/DemoChatGPT.swagger.json

Once, you have configured (or imported) your custom connector, next step, is to create a simple PowerApps which uses this connector:

1- The PowerApps Structure

The App is very simple, here I used a simple screen, with the following components

The app’s screen looks as follow:

A query text box, and an answer multi lines text box.┬áIt can’t be any simpler right !

2- Ask Button

The Ask button makes a call to our custom connector DemoChatGPT.

Once we call the ChatGPT Api, the result is set to a global variable, which will be displayed in the result text box.

 

The overall application and connector are available from GitHub –>

https://github.com/samirlogisam/PowerAppsChatGPT/

Show Buttons
Hide Buttons

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.