How to use ngrok with Rasa X on Windows

Thanks for responding. I followed your recommendation to set RASA_X_HOST and after a bit more fiddling finally got it to (sort of) work of:

  • .\ngrok.exe 5002 to get forwarding URL
  • set both RASA_X_HOST and RASA_X_HOSTNAME in env. variables to forwarding URL
  • check values using ECHO %RASA_X_HOST% (has to be in a vanilla command window - won’t work in Powershell)
  • set RASA_X_PASSWORD in env. variables - (see How to get Rasa X password for details)
  • start rasa x (again from a vanilla command window
  • when rasa x starts, replace “localhost:5002” in the URL it opens with the ngrok forwarding URL (so the result looks like “http://_______.ngrok.io/conversations”
  • click on the share icon and then click on generate link to get shareable URL
  • you can now use that shareable URL on another system to do a chat with your model

The “sort of” in my intro is because on the remote system you only see the user entries, not the bot responses. The bot responses are visible in the Conversations tab of Rasa x on the “host” system.

Next step is debugging why bot responses aren’t showing up on the remote system.