You can create HTTP endpoints in an Anvil app, which is what ChatGPT will use. You also need to host a .json file at a specific URL. That can be done using PWA asset links API - #2
So offhand I’d say it’s possible to write a ChatGPT plugin in Anvil.