Hi,
I’m still trying to follow RASA CALM tutorial but the last step when integrating API call to check for sufficient funds before transfer money does not run as expected and transfer pass even if amount pass is greater than balance set in ActionCheckSufficientFunds (1000). Even if not mentioned in tutorial at this step, I tried to re-train rasa before running inspect command. But rasa train lead to error below:
UserWarning: Loading domain from 'domain.yml' failed. Using empty domain. Error: 'Your domain uses an invalid slot mapping of type 'controlled' for slot 'has_sufficient_funds'. Please see https://rasa.com/docs/rasa-pro/nlu-based-assistants/domain#slots for more information.' 2025-03-26 16:46:42 INFO rasa.shared.core.domain - [info ] domain.from_yaml.validating 2025-03-26 16:46:42 INFO rasa.validator - [info ] Validating intents... event_key=validator.verify_intents_in_stories.start 2025-03-26 16:46:42 INFO rasa.validator - [info ] Validating uniqueness of intents and stories... event_key=validator.verify_example_repetition_in_intents.start 2025-03-26 16:46:42 INFO rasa.validator - [info ] Story structure validation... event_key=validator.verify_story_structure.start 2025-03-26 16:46:42 INFO rasa.core.training.story_conflict - Considering all preceding turns for conflict analysis. 2025-03-26 16:46:42 INFO rasa.validator - [info ] No story structure conflicts found. event_key=validator.verify_story_structure.no_conflicts 2025-03-26 16:46:42 INFO rasa.validator - [info ] validation.flows.started 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The collect step 'recipient' has neither an utterance nor an action defined, or an initial value defined in the domain.You need to define either an utterance or an action. collect=recipient event_key=validator.verify_flows_steps_against_domain.collect_step flow=transfer_money has_action_defined=False has_utterance_defined=False 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The slot 'recipient' is used in the step 'transfer_money_0_collect_recipient' of flow id 'transfer_money', but it is not listed in the domain slots. You should add it to your domain file! event_key=validator.verify_flows_steps_against_domain.slot_not_in_domain flow=transfer_money slot=recipient step=transfer_money_0_collect_recipient 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The collect step 'amount' has neither an utterance nor an action defined, or an initial value defined in the domain.You need to define either an utterance or an action. collect=amount event_key=validator.verify_flows_steps_against_domain.collect_step flow=transfer_money has_action_defined=False has_utterance_defined=False 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The slot 'amount' is used in the step 'transfer_money_1_collect_amount' of flow id 'transfer_money', but it is not listed in the domain slots. You should add it to your domain file! event_key=validator.verify_flows_steps_against_domain.slot_not_in_domain flow=transfer_money slot=amount step=transfer_money_1_collect_amount 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The action 'action_check_sufficient_funds' is used in the step 'transfer_money_2_action_check_sufficient_funds' of flow id 'transfer_money', but it is not listed in the domain file. You should add it to your domain file! action=action_check_sufficient_funds event_key=validator.verify_flows_steps_against_domain.action_not_in_domain flow=transfer_money step=transfer_money_2_action_check_sufficient_funds 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The action 'utter_insufficient_funds' is used in the step 'transfer_money_3_utter_insufficient_funds' of flow id 'transfer_money', but it is not listed in the domain file. You should add it to your domain file! action=utter_insufficient_funds event_key=validator.verify_flows_steps_against_domain.action_not_in_domain flow=transfer_money step=transfer_money_3_utter_insufficient_funds 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The collect step 'final_confirmation' has neither an utterance nor an action defined, or an initial value defined in the domain.You need to define either an utterance or an action. collect=final_confirmation event_key=validator.verify_flows_steps_against_domain.collect_step flow=transfer_money has_action_defined=False has_utterance_defined=False 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The slot 'final_confirmation' is used in the step 'final_confirmation' of flow id 'transfer_money', but it is not listed in the domain slots. You should add it to your domain file! event_key=validator.verify_flows_steps_against_domain.slot_not_in_domain flow=transfer_money slot=final_confirmation step=final_confirmation 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The action 'utter_transfer_cancelled' is used in the step 'transfer_money_5_utter_transfer_cancelled' of flow id 'transfer_money', but it is not listed in the domain file. You should add it to your domain file! action=utter_transfer_cancelled event_key=validator.verify_flows_steps_against_domain.action_not_in_domain flow=transfer_money step=transfer_money_5_utter_transfer_cancelled 2025-03-26 16:46:42 ERROR rasa.validator - [error ] The action 'utter_transfer_complete' is used in the step 'transfer_successful' of flow id 'transfer_money', but it is not listed in the domain file. You should add it to your domain file! action=utter_transfer_complete event_key=validator.verify_flows_steps_against_domain.action_not_in_domain flow=transfer_money step=transfer_successful 2025-03-26 16:46:42 ERROR rasa.validator - [error ] Detected invalid slot 'has_sufficient_funds' at step 'transfer_money_2_action_check_sufficient_funds' for flow id 'transfer_money'. Please make sure that all slots are specified in the domain file. event_key=validator.verify_namespaces.invalid_slot flow=transfer_money slot=has_sufficient_funds step=transfer_money_2_action_check_sufficient_funds 2025-03-26 16:46:42 ERROR rasa.validator - [error ] Detected invalid slot 'final_confirmation' at step 'final_confirmation' for flow id 'transfer_money'. Please make sure that all slots are specified in the domain file. event_key=validator.verify_namespaces.invalid_slot flow=transfer_money slot=final_confirmation step=final_confirmation 2025-03-26 16:46:42 INFO rasa.validator - [info ] validation.flows.ended 2025-03-26 16:46:42 ERROR rasa.cli.utils - [error ] Project validation completed with errors. event_key=cli.validate_files.project_validation_error