hi i try to use rasa webchat but i can’t make it work
TitleWebChat.default.init({ selector: "#webchat", initPayload: "/get_started", interval: 1000, // 1000 ms between each message customData: { "sender": "django" }, // arbitrary custom data. Stay minimal as this will be added to the socket socketUrl: "http://6892a642.ngrok.io:5005", title: "Connect", subtitle: "The bot which connects people", profileAvatar: "https://rasa.com/assets/img/demo/rasa_avatar.png", showCloseButton: true, fullScreenMode: false, hideWhenNotConnected: false,}) </script>
connector.py: from rasa.core.agent import Agent from rasa.core.interpreter import RasaNLUInterpreter from rasa.core.channels.socketio import SocketIOInput from rasa.utils.endpoints import EndpointConfig from rasa.core.interpreter import NaturalLanguageInterpreter
# load your trained agent
action_endpoint=EndpointConfig(url="http://6892a642.ngrok.io:5055/webhook")
interpreter = NaturalLanguageInterpreter.create('./models/20190809-043054/nlu')
agent = Agent.load('./models/20190809-043054/core', interpreter=interpreter)
input_channel = SocketIOInput(
# event name for messages sent from the user
user_message_evt="user_uttered",
# event name for messages sent from the bot
bot_message_evt="bot_uttered",
# socket.io namespace to use for the messages
namespace=None
)
# set serve_forever=False if you want to keep the server running
s = agent.handle_channels([input_channel], http_port=5005,route='/webhooks/',cors="*")
socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered session_persistence: true
rasa: url: “http://localhost:5002/api”