Hi there,
I am deploying a bot to website. The following code works well in a local index.html but not working on a wordpress website. The chat widget didn’t show up on the wordpress website.
@alinalizhang If you are using a rasa x server then you need an HTTPS and Domain Name Sever to mention in the socketUrL. If your website is hosted then try this pointer so that you get to know that your snippet code is working fine. The above snippet code will work fine with >= 2.x and 3.0 as you are using version 1.0.1.
try to mention socketUrl: “http://localhost:80” and check it’s working on not, rasa x server should be running.
You can use ngrok to try to expose port 80 using the command ./ngrok http 80 (Mac or Linux) or ngrok http 80 (window) paste the generated HTTPS code and paste it in socketUrl, rasa x server should be running and your WordPress site should be hosted.
Please share the rasa x version for the same or more details such as your website is hosted, do you have rasa x server Http secure, and do you have DNS for the same.
If you are using rasa open source then process 1 and 2 will be same. But, I suggestedd this solution based on.
Hi Nimit, thank you for your suggestions. The rasa x server is hosted on GCP. but it is http instead of https.
The rasa x server is up and running. I can access the bot from, let’s say, http:12.345.67.89.
Do you know why the widget only shows up in the local index.html?
Btw, the rasa x server requires username and password to login.
@alinalizhang Well, I’m sure you are pasting the snippet code in insert header and footer plugin body section. Its the requirement of Rasa X, that we required HTTPs and DNS but if your server and website running on the same server then I guess you can mention.
@alinalizhang Well, personally I never hosted anything on Github.io, so I can not comment the same, as you stated you are using Wordpress site that’s why provide the detail suggestion and solution. May be in near future for sure Its in my personal future project list.
Q: You want to deploy on Wordpress or Github ?
Q: Currently where you have pasted the snippet code of Rasa Webchat?
Yes, I have another website hosted on wordpress. both of them, wordpress and github.io didn’t show the rasa widget. the widget only pop up in the local index.html.
The files you suggested, because I have deployed with docker compose already. not sure wanna switch to helm.
wondering is the issue caused by using http instead of https?
@alinalizhang do update me tomorrow for the same and I’d recommend please see the rasa documentation in detail regarding deployment on your bot on your own website. Ref: Your Own Website
app:
# replace the image with the one you build
# to install dependencies for custom actions
image: library/XXXXX
volumes:
- ./actions:/app/actions
ports:
- 5055:5055
@alinalizhangdocker-compose.override.yml is not the issue, as it’s used for action_server, but the issue is you can not see the bot widget on the website.
Step-1: Update the credentials with socketIO.
Step-2: Spin the docker container on server, default port is 80