# This file contains the credentials for the voice & chat platforms
# which your bot is using.
# https://rasa.com/docs/rasa/messaging-and-voice-channels
rest:
# # you don't need to provide anything here - this channel doesn't
# # require any credentials
#facebook:
# verify: "<verify>"
# secret: "<your secret>"
# page-access-token: "<your page access token>"
#slack:
# slack_token: "<your slack token>"
# slack_channel: "<the slack channel>"
# slack_signing_secret: "<your slack signing secret>"
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true
#mattermost:
# url: "https://<mattermost instance>/api/v4"
# token: "<bot token>"
# webhook_url: "<callback URL>"
# This entry is needed if you are using Rasa X. The entry represents credentials
# for the Rasa X "channel", i.e. Talk to your bot and Share with guest testers.
rasa:
url: "http://localhost:5002/api"
@Suyog-23 check rasa server in up and running in web browser or please check docker-compose ps and check the port is open for 443? or change the port number to default 5005:5005
@Suyog-23 if you are using Window or Mac please install docker desktop, there you easily see the logs of every container and images you had created.
@Suyog-23 this is basically, related to port issue, as per my knowledge or can be possible with nginx
Yeah everything is working fine on http. Including images, action server as well as the server on 443.
Here is the code that works completely fine. If you want you can have a small convo with the bot.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>!(function () {
let e = document.createElement("script"),
t = document.head || document.getElementsByTagName("head")[0];
(e.src =
"https://cdn.jsdelivr.net/npm/rasa-webchat@1.0.1/lib/index.js"),
// Replace 1.x.x with the version that you want
(e.async = !0),
(e.onload = () => {
window.WebChat.default(
{
customData: { language: "en" },
socketUrl: "http://noteme.tk:443/",
title:"BoticFox",
subtitle:"A smarter way of customer support",
// add other props here
initPayload:"/greet",
},
null
);
}),
t.insertBefore(e, t.firstChild);
})();
</script>
<link rel="stylesheet" href="home.css">
</body>
</html>
Looks like is there any template I can follow? Or some repo who has already done similar deployment? If you coulf mention any, it would mean the world to me