Action 'utter_greet' doesn't correspond to a template / action. Module doesn't contain a class with this name

I am building one bot on RASA 1.9.4 and following is the error I’ve encountered:

The bot does not have any custom actions, just utter responses. The solution for this issue is not available on the internet, please help me in resolving the same.

KeyError                                  Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/rasa_core/actions/factories.py in _action_class(action_name)
     47         try:
---> 48             cls = utils.class_from_module_path(action_name)
     49             return cls()

8 frames
KeyError: 'utter_greet'

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/rasa_core/actions/factories.py in _action_class(action_name)
     67                     "Module doesn't contain a class with this name. "
     68                     "Remember to prefix actions that should utter a template "
---> 69                     "with `utter_`. Error: {}".format(action_name, e))
     70 
     71     actions = []

ValueError: Action 'utter_greet' doesn't correspond to a template / action. Module doesn't contain a class with this name. Remember to prefix actions that should utter a template with `utter_`. Error: 'utter_greet'

The following are the utter_greet defined in my domain file and snapshot from story:

responses:
  utter_greet1:
  - text: Hey! This is Kia, Your personal assistant. How can i help you?

*  greet
    - utter_greet
  *  AI_def
	-utter_AI_def
	
 *AI_importance
	-utter_AI_importance

Hello @sandilya45, welcome to the Forum!

I think you may just have made a type here:

Also, (though I am not certain if it matters) make sure your indentation is consistent.

Hi @j.mosig. Thank you for your response.

Yes, it is a small typographical error that i overlooked. After the topic has been opened i realized the mistake.

Yes, i am getting a hung around writing MD and YAML files for the first time. I am now cautious about indentations.

1 Like