# Domain.yml : Missing 'text' or 'custom' key in response.: Path: '/'

**URL:** <https://forum.rasa.com/t/domain-yml-missing-text-or-custom-key-in-response-path/47215>\
**Category:** Feedback on Rasa Open Source\
**Created:** [August 26, 2021, 12:07am UTC](https://forum.rasa.com/t/domain-yml-missing-text-or-custom-key-in-response-path/47215 "2021-08-26T00:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dushyantsinghdex](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dushyantsinghdex/32/16717_2.png) [@dushyantsinghdex](https://forum.rasa.com/u/dushyantsinghdex)\
**Post date:** [August 26, 2021, 12:07am UTC](https://forum.rasa.com/t/domain-yml-missing-text-or-custom-key-in-response-path/47215/1 "2021-08-26T00:07:04Z")

</div>

[domain.yml](https://forum.rasa.com/uploads/short-url/pxCtUv5neezvHHDOsovJzRrIwx6.yml) (1.3 KB) Here is my sample domain file. I am getting following error while training model. YamlValidationException: Failed to validate ‘/home/askelie/Askelie/chatbots-config/askeliedynamicdemo/domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation I have validated my file at yamllint.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [August 26, 2021, 7:04am UTC](https://forum.rasa.com/t/domain-yml-missing-text-or-custom-key-in-response-path/47215/2 "2021-08-26T07:04:30Z")

</div>

```auto
@dushyantsinghdex please copy this code and run

version: '2.0'

intents:
  - greet
  - mood_great
  - goodbye
  - bot_challange
  - affirm
  - deny
  - mood_unhappy
  - company_stock
  - country_flag
  - button_test
  - home_insurance
  - car_insurance
  - test

entities:
  - country
  - company

responses:
  utter_greet:
    - text: 'Hey! How are you?'

  utter_cheer_up:
    - text: 'Here is something to cheer you up:'
      image: 'https://i.imgur.com/nGF1K8f.jpg'

  utter_did_that_help:
    - text: 'Did that help you?'

  utter_happy:
    - text: 'Great, carry on!'

  utter_goodbye:
    - text: 'Bye'

  utter_iamabot:
    - text: 'I am a bot, powered by askelie.'

  utter_home_insurance:
    - text: 'Welcome to home insurance. We provide best home insurance offer starting from 999*.'

  utter_car_insurance:
    - text: 'Welcome to car insurance section .We provide car insurance starting from 2099*.'

  utter_test:
    - text: 'Please visit this link'
      image: 'https://botlist.cloudhub360.com/api/photo/6124d8cdd9ab7d0c9407baec'

  utter_test_button:
    - text: 'Please click on respective button to check price list.'
      buttons:
        - title: 'Home'
          payload: '/home_insurance'
        - title: 'Car'
          payload: '/car_insurance'

actions:
  - action_custom_action

session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true

```

Changes: In you domain.yml file line 61 you mentioned custom\_action it should always start with action if you have created any custom action. Do change in action.py file too.

Line 49 you mentioned the image link alone, so first you need to mention some text.

There are other few syntax issue, please do see. Even a single space can not let run the code.

Delete all the other old models and re train and run.

I’d encourage to use VS code and with formatter. Hope this will solve you issue. Good Luck!

---

<div class="post-metadata">

**Author:** ![Prem24](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@Prem24](https://forum.rasa.com/u/Prem24)\
**Post date:** [August 19, 2022, 10:09am UTC](https://forum.rasa.com/t/domain-yml-missing-text-or-custom-key-in-response-path/47215/3 "2022-08-19T10:09:04Z")

</div>

Thank you
