Domain File Configuration

Hello, I was following the formbot example to build my own chatbot. However, I get the following error when I run

rasa train Error:

Cannot access action ‘utter_greet’, as that name is not a registered action for this domain. Available actions are: action_listen - action_restart - action_default_fallback - action_deactivate_form - action_revert_fallback_events - action_default_ask_affirmation - action_default_ask_rephrase - action_back - emergency_form

My domain file is:

intents:
  - emergency:
      use_entities: []
  - greet
  - inform

entities: 
  - etype
  - people
  - location

slots:
  etype:
    type: unfeaturized
    auto_fill: false 
  people:
    type: unfeaturized
    auto_fill: false 
  location: 
    type: unfeaturized
    auto_fill: false

responses:
  utter_ask_etype:
  - text: "ہادثہ کی نوعیت کیا ہے"
  utter_ask_people: 
  - text: "کتنے افراد متاثر ہیں"
  utter_ask_location: 
  - text: "کہاں ہادثہ پیش آیا ہے"
  utter_greet:
  - text: "وعلیکم اسلام"
  utter_default:
  - text: "معاف کیجیے۔ سمجھ نہیں آیا۔"
  utter_confirmation: 
  - text: "ایمبولینس آرہی ہے" 

forms: 
  - emergency_form

Add a section actions in your domain. Like this:

 actions:
    - utter_greet
    - utter_ask_etype

And so on …

Hello, @matthiask. I added the actions list as follows:

actions:

  • utter_greet
  • utter_ask_etype
  • utter_ask_people
  • utter_ask_location
  • utter_default
  • utter_confirmation
  • utter_slots_values

but when I run rasa shell and input greet, it throws me this error:

ERROR rasa.core.actions.action - Couldn't create message for template 'utter_greet'.

Which version of Rasa are you using?

I’m using RASA 1.1.6

Then try to use the keyword templates instead of responses. The keyword response is only available in the version 1.7.0.

I changed it to templates. Now, it is working fine. Should I update my rasa version? Thanks in advance.

Yes. Update your version to get all bug fixes and new features. And please mark the question as solved.

hi, what is the difference between the keywords templates and reponses? rasa has already the keyword templates, why did you create keyword response again? thx