Need deployment help!

Hi Rasa Brains!.. Can you please help me in deployment process of Rasa chatbot

Summary:

  • I have created a bot using Rasa NLU and Rasa Core
  • I have used custom actions in file named actions.py
  • Using Socket Io i have connected to React Rasa Webchat

It is working in Localhost just fine…but i need to make this bot available to others users via an URL

I would like to integrate the bot with Microsoft botframe work and then deploy it in Azure.

How can i do that? Detailed explanation with steps would be much appreciated… Attaching my Screencasts below… Screencast 1: I have used Rasa Webchat socket IO connections, Currently I am able to run it only on Localhost.

Screencast 2:My rasa socket server

Screencast3: My custom action server

I also have mongo DB server running , how to deploy all these in cloud and make accessible for Public use

Looking forward for the help!

I am able to access Rasa chatbot using Ngrok link successfully!!

hi @Vetri can you please explain more the steps

which port you are exposing through ngrok i.e.the port on which rasa server is running or another one.

Hi @Vetri I am trying to develop a similar bot but I have difficulties connecting to React Rasa Webchat, can you tell me the steps or share the source code? Thanks a lot!

Hi Ravi,

I have exposed 3 ngrok ports, 1st- Rasa server - generally 5005, 2nd - Rasa actions server (for Custom actions) - 5055 3rd - Website host - 5000

Run the ngrok url - the one exposed with 5000 to access website from anywhere/any device

Hii,

To connect your bot to Rasa Webchat successfully, below steps are essential Step 1 - Create credentials.yml and paste the below

socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered session_persistence: true

Step 2: Copy and paste the html from the below link to your website file

Inside the script provide the port of Rasa server you use (generally 5005 or 5500) socketUrl: “http://localhost:5005/”, socketPath: “/socket.io/”,

Also if you want to see the Ui widget without connected to server, Inside the script tag set hide as false… hideWhenNotConnected: false,

Hii , On which part do you need explanation?

Thanks, I will go and try later.

ngrokerror

Hii, For free users, ngrok allows to expose upto 4 tunnels at the same time. You need to update the ports in the configuration file and run ‘ngrok start --all’ in your terminal. You can find the process in the below link! https://dashboard.ngrok.com/get-started

Docs for your reference https://ngrok.com/docs

Thanks.

it is fine on localhost but now i want to deploy on cloud like AWS…How to proceed?

1 Like

Hi can you please put up the steps on how to make it publicly available!!

Hi @ravikrcs,

I’d suggest to use a dockerised deployment then. After a quick googling, I found this tutorial which seems to be pretty up to date. I guess if you decide to use AWS, scalability is of use and if you are using Rasa X alongside your assistant, then I’d even recommend this documentation about the Kubernetes Deployment.

Kind regards
Julian

Thanks :blush: @JulianGerhard