Hello, I just created a new project with rasa init
and trained a model with the sample data. The only changes are in the credentials.yml:
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true
rasa run --credentials credentials.yml --cors *
output:
~/.local/lib/python3.6/site-packages/rasa/shared/utils/io.py:89: UserWarning: Could not load local model in 'tests'.
2020-10-13 11:14:34 INFO root - Rasa server is up and running.
~/.local/lib/python3.6/site-packages/rasa/shared/utils/io.py:89: UserWarning: No policy ensemble or domain set. Skipping action prediction and execution.
rasa run --credentials credentials.yml --cors * --debug
output:
2020-10-13 11:23:01 DEBUG rasa.core.channels.socketio - User 8d44d8c96da248239ad6913a40a30061 connected to socketIO endpoint.
2020-10-13 11:23:48 DEBUG rasa.core.lock_store - Issuing ticket for conversation 'f57d3f4648a04091a4adc630c529eb49'.
2020-10-13 11:23:48 DEBUG rasa.core.lock_store - Acquiring lock for conversation 'f57d3f4648a04091a4adc630c529eb49'.
2020-10-13 11:23:48 DEBUG rasa.core.lock_store - Acquired lock for conversation 'f57d3f4648a04091a4adc630c529eb49'.
2020-10-13 11:23:48 DEBUG rasa.core.tracker_store - Creating a new tracker for id 'f57d3f4648a04091a4adc630c529eb49'.
2020-10-13 11:23:48 DEBUG rasa.core.processor - Starting a new session for conversation ID 'f57d3f4648a04091a4adc630c529eb49'.
2020-10-13 11:23:48 DEBUG rasa.core.processor - Action 'action_session_start' ended with events '[<rasa.shared.core.events.SessionStarted object at 0x7fb5646e8e80>, <rasa.shared.core.events.ActionExecuted object at 0x7fb5646e8e48>]'.
2020-10-13 11:23:48 DEBUG rasa.nlu.classifiers.diet_classifier - There is no trained model for 'ResponseSelector': The component is either not trained or didn't receive enough training data.
2020-10-13 11:23:48 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default
2020-10-13 11:23:48 DEBUG rasa.core.processor - Received user message 'hello' with intent '{'id': -6023219153646213377, 'name': 'greet', 'confidence': 0.9999649524688721}' and entities '[]'
2020-10-13 11:23:48 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
2020-10-13 11:23:48 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {'user': {'intent': 'greet'}, 'prev_action': {'action_name': 'action_listen'}}]
2020-10-13 11:23:48 DEBUG rasa.core.policies.memoization - There is a memorised next action 'utter_greet'
2020-10-13 11:23:48 DEBUG rasa.core.policies.rule_policy - Current tracker state: [{}, {'user': {'intent': 'greet'}, 'prev_action': {'action_name': 'action_listen'}}]
2020-10-13 11:23:48 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2020-10-13 11:23:48 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
2020-10-13 11:23:48 DEBUG rasa.core.processor - Predicted next action 'utter_greet' with confidence 1.00.
2020-10-13 11:23:48 DEBUG rasa.core.processor - Action 'utter_greet' ended with events '[BotUttered('Hey! How are you?', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {"template_name": "utter_greet"}, 1602581028.9130025)]'.
2020-10-13 11:23:48 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {'user': {'intent': 'greet'}, 'prev_action': {'action_name': 'action_listen'}}, {'user': {'intent': 'greet'}, 'prev_action': {'action_name': 'utter_greet'}}]
2020-10-13 11:23:48 DEBUG rasa.core.policies.memoization - There is a memorised next action 'action_listen'
2020-10-13 11:23:48 DEBUG rasa.core.policies.rule_policy - Current tracker state: [{}, {'user': {'intent': 'greet'}, 'prev_action': {'action_name': 'action_listen'}}, {'user': {'intent': 'greet'}, 'prev_action': {'action_name': 'utter_greet'}}]
2020-10-13 11:23:48 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2020-10-13 11:23:48 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
2020-10-13 11:23:48 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
2020-10-13 11:23:48 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
2020-10-13 11:23:48 DEBUG rasa.core.lock_store - Deleted lock for conversation 'f57d3f4648a04091a4adc630c529eb49'.
There is no response in my frontend:
this.socket.on('bot_uttered', (data) => {
console.log(data);
});
Update: I changed the sequence of ‘connect’ event and ‘session_request’. Now I get responses, but only in --debug mode. Without debug it is still the same output.