You have the chat api but you gonna have to write so much boilerplate that the web view does for you, like session management, listen, formatting outputs, it’s a lot … maybe I would look in the integration and see if writing private integration can do what you want :
https://botpress.com/docs/getting-started-1
and you can even write cards for your app/integration with custom functionality