dispatcher.utter_message(“it’s a test 1”)
dispatcher.utter_message(text = “test 2”)
The first two templates are deprecated and the second is not, but they do not return a message and the two text ones do. I have the utterans registered as well as actions and utter, I have more than 100 utter and intents because it is a specific project to simple questions and I had to split the utter (actions and utter ) in two because it marks errors:
Error running graph component for node train_TEDPolicy3.
ActionNotFoundException: Cannot access action ‘utter_what_studies_recommend_for_children’, as that name is not a registered action for this domain. Available actions are:
I’m using the recommended version of rasa 3 and python 8 inside anaconda inside the tutorial, but I’m stuck. I run: rasa data validate and it only sends me the following information, which is correct:
rasa data validate
2022-09-21 13:15:24 INFO rasa.validator - Validating intents...
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'adress' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'assertions' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'good_mood' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'happy_moods' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'unhappy_moods' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'first_name' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'inform_age' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'last_name' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'bad_humor' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'que_causa_calculos_renales' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'what_hiccups' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'sex' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'storedatabase' is not used in any story or rule.
2022-09-21 13:15:24 INFO rasa.validator - Validating uniqueness of intents and stories...
2022-09-21 13:15:24 INFO rasa.validator - Validating utterances...
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_greetings' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_firstname' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_happy' is not used in any story or rule
Error running graph component for node train_TEDPolicy3. ActionNotFoundException: Cannot access action ‘utter_what_studies_recommend_for_children’, as that name is not a registered action for this domain. Available actions are:
Can you check if you have included ‘utter_what_studies_recommend_for_children’ in the domain under responses?
You can still use dispatcher, dispatcher.utter_messgae(response=“utter…”)
hello, following your comments I did the following and the result was the one that I show only the text messages are printed.
Do you know if there are limits to the number of utterants, I have 300 with their questions and answers, I know that I still need to refine those questions and answers and also the stories, but I’m starting. According to what I read, no
Your input -> durante el estudio del papanicolaou que sucede
.....test 1......
....test 2.....
.....test 3......
class ActionWhyItHappensPap(Action):
def name(self) -> Text:
return "action_por_que_ocurre_papanicolaou"
def run(
self,
dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any],) -> List[Dict[Text, Any]]:
dispatcher.utter_message(".....test 1......")
##dispatcher.utter_message(template="utter_por_que_ocurre_Papanicolaou")
dispatcher.utter_message(text="....test 2.....")
dispatcher.utter_message(response="utter_por_que_ocurre_Papanicolaou")
dispatcher.utter_message(".....test 3......")
return []
I also share the log of the command:
rasa data validate
(rasa_005) lev1@lev1:~/PROYECTOS/rasa_005$ rasa data validate
2022-09-22 13:49:43 INFO rasa.validator - Validating intents...
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'adress' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'afirmaciones' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'buen_humor' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'estados_de_animo_feliz' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'estados_de_animo_infeliz' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'first_name' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'inform_age' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'last_name' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'mal_humor' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'que_causa_calculos_renales' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'que_causa_hipo' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'sex' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The intent 'storedatabase' is not used in any story or rule.
2022-09-22 13:49:43 INFO rasa.validator - Validating uniqueness of intents and stories...
2022-09-22 13:49:43 INFO rasa.validator - Validating utterances...
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_phone-number' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ha_sido_de_ayuda' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_sex' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_age' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_animate' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_lastname' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_firstname' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_algo_mas_que_pueda_ayudar' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_feliz' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_respuesta_feliz' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_gurdamos_info' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_adress' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_submit' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ayuda_en_algo_mas' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_haciendote_preguntas' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_saludos' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_ask_email' is not used in any story or rule.
/home/lev1/anaconda3/envs/rasa_005/lib/python3.8/site-packages/rasa/shared/utils/io.py:98: UserWarning: The utterance 'utter_default' is not used in any story or rule.
2022-09-22 13:49:43 INFO rasa.validator - Story structure validation...
Processed story blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 3315.66it/s, # trackers=1]
2022-09-22 13:49:43 INFO rasa.core.training.story_conflict - Considering all preceding turns for conflict analysis.
2022-09-22 13:49:43 INFO rasa.validator - No story structure conflicts found.
Hello, I tell you that I have solved the problem;
the problem was that when following the syntax of the files there was no problem, it was all due to the line breaks between utters
that is to say that I had declared them at the beginning
responses:
utter.......
-text:
-text:
-text:
utter......
-text:
-text:
-text:
utter......
-text:
-text:
and finally what I did is leave no spaces between lines:
responses:
utter.......
-text:
-text:
-text:
utter......
-text:
-text:
-text:
utter......
-text:
-text:
It caught my attention because in the first case only the first n worked, but after n+1 it didn't, until I eliminated the empty lines, I didn't find a reference to this in the documentation, but I think there would have to be a section or notes referring to the syntax rules.
See you, greetings.