GitHub - RasaHQ/tourist-agency-calm: Tourist agency example with CALM approach

I was trying to run the project, when i run using rasa train, i am getting error- Encountered empty domain during validation. seems there is no domain.py instead of that there multiple .py file inside domain folder…

c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Loading domain from ‘domain.yml’ failed. Using empty domain. Error: ‘Failed to load domain specification from ‘D:\chatbot\rasa-tourist-agency-calm\tourist-agency-calm\domain.yml’. File not found!’ c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in ‘data\rules.yml’: Found intent ‘goodbye’ in stories which is not part of the domain. More info at Stories c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in ‘data\rules.yml’: Found intent ‘bot_challenge’ in stories which is not part of the domain. More info at Stories c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘greet’ in stories which is not part of the domain. More info at Stories c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘mood_great’ in stories which is not part of the domain. More info at Stories c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘mood_unhappy’ in stories which is not part of the domain. More info at Stories c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘affirm’ in stories which is not part of the domain. More info at Stories c:\users\nirup_2j4vq37\appdata\local\programs\python\python39\lib\site-packages\rasa\shared\utils\io.py:99: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘deny’ in stories which is not part of the domain. More info at Stories

Hey, You can specify rasa train --domain <domainFolderPath> With newer version of rasa you don’t need to specify the domain folder rasa train will work.

1 Like

after running it

2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘country’ has a custom slot mapping, but neither the action ‘action_ask_country’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=country 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘booking_amount’ has a custom slot mapping, but neither the action ‘action_ask_booking_amount’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=booking_amount 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘payment_confirmation’ has a custom slot mapping, but neither the action ‘action_ask_payment_confirmation’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=payment_confirmation 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘departure_city’ has a custom slot mapping, but neither the action ‘action_ask_departure_city’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=departure_city 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘flight_destination’ has a custom slot mapping, but neither the action ‘action_ask_flight_destination’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=flight_destination 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘passenger_count’ has a custom slot mapping, but neither the action ‘action_ask_passenger_count’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=passenger_count 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘class_preference’ has a custom slot mapping, but neither the action ‘action_ask_class_preference’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=class_preference 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘flight_confirmation’ has a custom slot mapping, but neither the action ‘action_ask_flight_confirmation’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=flight_confirmation 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘person_name’ has a custom slot mapping, but neither the action ‘action_ask_person_name’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=person_name 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘destination’ has a custom slot mapping, but neither the action ‘action_ask_destination’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=destination 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘number_of_people’ has a custom slot mapping, but neither the action ‘action_ask_number_of_people’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=number_of_people 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘number_of_rooms’ has a custom slot mapping, but neither the action ‘action_ask_number_of_rooms’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=number_of_rooms 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘days’ has a custom slot mapping, but neither the action ‘action_ask_days’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=days 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘accommodation_type’ has a custom slot mapping, but neither the action ‘action_ask_accommodation_type’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=accommodation_type 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘booking_confirmation’ has a custom slot mapping, but neither the action ‘action_ask_booking_confirmation’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=booking_confirmation 2024-09-06 12:07:49 ERROR rasa.validator - [error ] The slot ‘age’ has a custom slot mapping, but neither the action ‘action_ask_age’ nor another custom action are defined in the domain file. Please add one of the actions to your domain file. docs_link=Domain event_key=validator.validate_slot_mappings_in_CALM.custom_action_not_in_domain slot_name=age 2024-09-06 12:07:50 ERROR rasa.cli.utils - [error ] Project validation completed with errors. event_key=cli.validate_files.project_validation_error

Hi Niru, can you take another look at the repo source? The version you have is specific to Rasa 3.7; I have updated it to Rasa 3.8. The errors you see above are from changes introduced in Rasa 3.9 (see migration guide here).

Hi jtrasa, Thanks for your Reply. I cloned the git repo again .and ran the command rasa train --domain D:/chatbot/rasa-tourist-updated/tourist-agency-calm/domain

still its not running, showing some error. Could you pls share the command when you are running/training…What should i do to remove the error.

I am using - Rasa Version : 3.9.9 Minimum Compatible Version: 3.7.0 Rasa SDK Version : 3.9.1 Python Version : 3.10.0 Operating System : Windows-10-10.0.22631-SP0 Python Path : D:\chatbot\rasa-tourist-updated\myenv\Scripts\python.exe

That repository is specific to Rasa Pro 3.8.x. I have updated the README to reflect this. If you would like to get it running under Rasa Pro >=3.9.x, there are migration instructions here.