I started working on a ChatGPT powered web app last week and made the prompt and query management reusable.
It is still at an early stage, so no slick views yet. However, you can play around in the django shell.
You can store your API key in the backend, store a prompt in langchain's format, then run queries against the prompt with a function that takes bindings to the prompt's derived variables.
Work right now is focused on compatibility and expanding and stabilizing the API.
I am happy to hear suggestions and what features YOU would like to see.