How to let the user add OpenAPI schema and make an API calls?

Hi everyone,

In Chatgpt there is an ability to make GPTs which can include actions that can be defined by this window:


So the user just has to add an OpenAPI schema to let the action make API calls.

How can I build a similar feature? If it requires building a plugin then give some hints, please.