welcome to the community!
Can you please update to the latest rasa-sdk version? if this is not possible, please specify the message as keyword argument:
For me dispatcher.utter_message(“hello world!”) works well in Rasa but no message outputted in Rasa X (see below screenshot). Highlighted line is the place that we expect to see “hello world!”, but instead I am getting action name (i.e. “action_info_saved”) from actions.py file.
Thanks @svshubham01 for the reply. Problem is Rasa X 0.24.7 comes with Rasa 1.6, but we developed our bot using Rasa 1.7. So the bot did not work with Rasa X 0.24.7.
Have you ever tried with higher Rasa X versions like 0.26 which comes with Rasa 1.7?
Very simple, I commented everything and just kept dispatcher.utter_message(“hello world”), see below. The whole custom actions works fine in Rasa but nothing in Rasa X :
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
class ActionInfoSaved(Action):
def name(self):
return "action_info_saved"
def run(self, dispatcher, tracker, domain):
dispatcher.utter_message("hello world") # for testing purpose
# key = tracker.latest_message['entities'][0]
# if key['value'] is not None and key['entity']=='postal_code_pattern':
# dispatcher.utter_message("thanks, {} was saved, now how can I help you today?".format(key['value']))
# elif key['value'] is not None and key['entity']=='first_name':
# dispatcher.utter_message("thanks, {} was saved, may I have your postal code please?".format(key['value']))
# else:
# dispatcher.utter_message("I did not get your point!")
return []
Hi @svshubham01, thanks for the help. We solved this problem by upgrading Rasa X to 0.27.1.
But we got a new problem. Whenever I type a new message in " Talk to your bot" UI, I never get my answer back from bot (sometimes even my message disappears!). I did some investigations and noticed that in fact bot replies my messages but nothing shows up in UI. I found this simply by inspecting the network response in the browser (Chrome), see below image:
docker-compose.zip (978.1 KB) @Tobias_Wochinger, thanks for the reply. Please find attached log file (docker-compose) containing the logs from Rasa X docker restart up to my last interactions with bot (last few mins in the log). Original log file was huge, I removed some useless parts. Meanwhile: Rasa X version 0.27.1 and Rasa version 1.9 - I also attached the Rasa X UI screenshot.
Thanks @Tobias_Wochinger for the reply.
For your first point, yes at the beginning we had problem with action server but we solved that.
For second point, since out of space happened on worker server, so I believe it was during training a model directly on Rasa X, am I right? That was a test (normally we train the models locally in Rsa and upload it to Rasa X). Worker server is just for model training purpose, right? Can it affect UI?
I’ll take a deeper look at the second point. But I think our problem is so close to this question asked in the forum: