If you are building a simple dashboard or a form-based application, the traditional JSON API (REST or GraphQL) approach is ...
Just insert your code into any of the major JavaScript frameworks (Angular, React, Vue, etc.) and let it send out prompts for answers from an LLM. There are more than a dozen different options ...