I have created a chat bot using rasa. I am able to test chatbot using ‘rasa shell’. It is working as expected. Now I have to link the chatbot with our website. We use Postman for testing. It is working as expected when we use “/webhooks/rest/webhook” as URL and send payload as following json:
{
"sender": "user",
"message": "Hi"
}
Using this we are getting corresponding response.
Now, we want to use socket.io instead of webhooks. Hence we added following code to credentials.yml file:
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true
After adding the code to yml, we create a new websocket request in postman and connect with “ws://localhost:5005/” URL. Connection is successful. After connecting to URL successfully, we are getting following warning in messages section:
Add event listeners to receive messages
Due to his warning we are not getting any response from rasa.
Can anybody give suggestions on any missing part in my code or postman settings.