domain.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.
@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!
Thank you