Can we add GUI in the plugins

I am trying to make a plugin for my webapp, can i put a gui in the plugin,so that user can get input itself in the chatgpt and the data is fed to the api endpoint and it execute with the input?