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
If you want to download the connector manifest and import it directly to your tenant/custom connector, please navigate to my public GitHub repository :
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 –>