@krkc Thanks for the information.
in domain.yml file do it
responses:
utter_welcome_message:
- text: Hello 👋! I'm your Technical Assistant!
utter_menu:
- text: Select the topic or write your question below.
buttons:
- title: Rasa Open source
payload: /rasa
- title: Rasa X
payload: /rasax
- title: Software
payload: /software
In stories.yml file
version: “2.0”
stories:
- story: welcome path1
steps:
- intent: get_started
- action: utter_welcome_message
- action: utter_menu
In botfront snippet:
<div id="webchat">
</div>
<script src="https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://">
<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"),
(e.async = !0),
(e.onload = () => {
window.WebChat.default(
{
selector: "#webchat",
initPayload: "/get_started",
customData: {"language": "en"}, // arbitrary custom data. Stay minimal as this will be added to the socket
socketUrl: "http://localhost:5005",
customMessageDelay: (message) => {
let delay = message.length * 30;
if (delay > 3 * 200) delay = 3 * 200;
if (delay < 100) delay = 100;
return delay;
},
socketPath: "/socket.io/",
title: "Bot",
tooltipPayload: "/get_started",
tooltip: true,
tooltipDelay: 500,
subtitle: "Powered by XYZ",
connectingText: "Waiting for server...",
profileAvatar: "https://",
openLauncherImage: "https://",
params: {"storage": "session"},
mainColor: "#ffd600",
userBackgroundColor: "#ffd600",
userTextColor: "#cde9ce",
showMessageDate: false,
inputTextFieldHint: "Hi.Type your message here...",
badge: " ",
displayUnreadCount: true,
isChatOpen: false,
embedded: false,
showCloseButton: true,
fullScreenMode: true,
showFullScreenButton: true,
docViewer: false,
},
null
);
}),
t.insertBefore(e, t.firstChild);
})();
</script>
for integration Rasa with botfront: https://youtu.be/eJMT2FovZsM
I have mentioned only important one rest you know the basic syntax and process. I guess it will solve your issue:) If there is any issue do let me know. Yes, I have changed the file name to stories.yml
<link rel="stylesheet" type="text/css" href="https://">
you can ignore this it is used for custom css only may be later you need it.
Goodluck!