Show html page in webview in rasa chatbot

hello, I need to show my html page in webview? any guidance would be very appreciated? I just have make the html page and want to show in webview @ryanmark brother can you help me in this task?

Hi - I’ve written a blog exactly about displaying a web page in webview: Using Facebook Messenger Webview with a Rasa chatbot | by Mark Ryan | The Startup | Medium

This blog points to a complete code example: GitHub - ryanmark1867/webview_rasa_example: example of using Rasa with Facebook Messenger webview that shows you how to set up the end-to-end solution, including getting a simple chatbot to be displayed in Facebook Messenger and then how to display a webview in that context.

This solution uses Flask to serve the web page, so you have complete control in Python for the serving. The example even shows you how to generate dynamic web content in the web page shown in webview using values you’ve collected in the chatbot.

The key tip is that you need to be able to serve an https web page to get it shown in webview. There are some resources online for how to do this with Flask, but the only way I could get it to work is to use ngrok to generate an https URL for what Flask serves. The trick is that you may also need ngrok to connect Rasa to Facebook Messenger, and if so you’ll have to get an ngrok license. Free ngrok only lets you have one active endpoint at a time, and for this architecture you need two: (1) connection between Rasa and Facebook Messenger, (2) webpage that is being displayed in webview.

The blog I cite above includes the following diagram that explains how all the pieces fit together:

I hope this helps - good luck! Mark