Most of the part of the conversation goes according to the way I’ve defined in stories.yml but I can’t figure out why whenever I reach certain part of the conversation it just runs the action_default_fallback
instead of the defined action in stories.yml
file even though the intent is clearly matched. Can someone explain me where exactly I’m going wrong?
Following is a screen shot of the conversation, from this point onwards it just indefinitely runs action_ default_fallback
.
Following are the output logs, please note that this log is from the exact same conversation as in the above picture. The log start from the part where the user enters “no” as a response.
Your input -> no
2023-01-02 15:24:23 DEBUG rasa.core.lock_store - Issuing ticket for conversation 'f0ec7031a5b04951b1af665644a373a3'.
2023-01-02 15:24:23 DEBUG rasa.core.lock_store - Acquiring lock for conversation 'f0ec7031a5b04951b1af665644a373a3'.
2023-01-02 15:24:23 DEBUG rasa.core.lock_store - Acquired lock for conversation 'f0ec7031a5b04951b1af665644a373a3'.
2023-01-02 15:24:23 DEBUG rasa.core.tracker_store - Recreating tracker for id 'f0ec7031a5b04951b1af665644a373a3'
2023-01-02 15:24:23 DEBUG rasa.engine.runner.dask - Running graph with inputs: {'__message__': [<rasa.core.channels.channel.UserMessage object at 0x2d68d74c0>]}, targets: ['run_RegexMessageHandler'] and ExecutionContext(model_id='fa34182ceed1439a820d9950146657c5', should_add_diagnostic_data=False, is_finetuning=False, node_name=None).
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'nlu_message_converter' running 'NLUMessageConverter.convert_user_message'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_WhitespaceTokenizer0' running 'WhitespaceTokenizer.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_RegexFeaturizer1' running 'RegexFeaturizer.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_LexicalSyntacticFeaturizer2' running 'LexicalSyntacticFeaturizer.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_CountVectorsFeaturizer3' running 'CountVectorsFeaturizer.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_CountVectorsFeaturizer4' running 'CountVectorsFeaturizer.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_DIETClassifier5' running 'DIETClassifier.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_EntitySynonymMapper6' running 'EntitySynonymMapper.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_ResponseSelector7' running 'ResponseSelector.process'.
2023-01-02 15:24:23 DEBUG rasa.nlu.classifiers.diet_classifier - There is no trained model for 'ResponseSelector': The component is either not trained or didn't receive enough training data.
2023-01-02 15:24:23 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_FallbackClassifier8' running 'FallbackClassifier.process'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'domain_provider' running 'DomainProvider.provide_inference'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_RegexMessageHandler' running 'RegexMessageHandler.process'.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Received user message 'no' with intent '{'name': 'deny', 'confidence': 1.0}' and entities '[]'
2023-01-02 15:24:23 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 29 events.
2023-01-02 15:24:23 DEBUG rasa.core.actions.action - Validating extracted slots:
2023-01-02 15:24:23 DEBUG rasa.core.processor - Default action 'action_extract_slots' was executed, resulting in 0 events:
2023-01-02 15:24:23 DEBUG rasa.engine.runner.dask - Running graph with inputs: {'__tracker__': <rasa.shared.core.trackers.DialogueStateTracker object at 0x2d68d74f0>}, targets: ['select_prediction'] and ExecutionContext(model_id='fa34182ceed1439a820d9950146657c5', should_add_diagnostic_data=False, is_finetuning=False, node_name=None).
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'rule_only_data_provider' running 'RuleOnlyDataProvider.provide'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'domain_provider' running 'DomainProvider.provide_inference'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_MemoizationPolicy0' running 'MemoizationPolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 0] slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 1] user intent: greet | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 2] user intent: greet | previous action name: utter_greet | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 3] user intent: greet | previous action name: utter_offer_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 4] user intent: status_update | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 5] user intent: status_update | previous action name: utter_regret | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 6] user intent: status_update | previous action name: utter_ask_ref_no | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 7] user intent: update_ref_no | user entities: ('id',) | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ticket_num': (1.0,)}
[state 8] user intent: update_ref_no | user entities: ('id',) | previous action name: action_validate_id | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 9] user intent: update_ref_no | user entities: ('id',) | previous action name: action_check_for_error | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 10] user intent: update_ref_no | user entities: ('id',) | previous action name: utter_other_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 11] user intent: deny | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
2023-01-02 15:24:23 DEBUG rasa.core.policies.memoization - There is no memorised next action
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_RulePolicy1' running 'RulePolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 0] slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 1] user intent: greet | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 2] user intent: greet | previous action name: utter_greet | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 3] user intent: greet | previous action name: utter_offer_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 4] user intent: status_update | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 5] user intent: status_update | previous action name: utter_regret | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 6] user intent: status_update | previous action name: utter_ask_ref_no | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 7] user intent: update_ref_no | user entities: ('id',) | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ticket_num': (1.0,)}
[state 8] user intent: update_ref_no | user entities: ('id',) | previous action name: action_validate_id | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 9] user intent: update_ref_no | user entities: ('id',) | previous action name: action_check_for_error | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 10] user intent: update_ref_no | user entities: ('id',) | previous action name: utter_other_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 11] user text: no | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
2023-01-02 15:24:23 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2023-01-02 15:24:23 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 0] slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 1] user intent: greet | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 2] user intent: greet | previous action name: utter_greet | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 3] user intent: greet | previous action name: utter_offer_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 4] user intent: status_update | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 5] user intent: status_update | previous action name: utter_regret | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 6] user intent: status_update | previous action name: utter_ask_ref_no | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 7] user intent: update_ref_no | user entities: ('id',) | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ticket_num': (1.0,)}
[state 8] user intent: update_ref_no | user entities: ('id',) | previous action name: action_validate_id | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 9] user intent: update_ref_no | user entities: ('id',) | previous action name: action_check_for_error | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 10] user intent: update_ref_no | user entities: ('id',) | previous action name: utter_other_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 11] user intent: deny | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
2023-01-02 15:24:23 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_TEDPolicy3' running 'TEDPolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.ted_policy - TED predicted 'utter_thanks' based on user intent.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_UnexpecTEDIntentPolicy2' running 'UnexpecTEDIntentPolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.unexpected_intent_policy - Querying for intent `deny`.
2023-01-02 15:24:23 DEBUG rasa.core.policies.unexpected_intent_policy - Score for intent `deny` is `0.42522451281547546`, while threshold is `-0.24197152256965637`.
2023-01-02 15:24:23 DEBUG rasa.core.policies.unexpected_intent_policy - Top 5 intents (in ascending order) that are likely here are: `[('out_of_scope', -0.5236075), ('greet', -0.2858301), ('goodbye', -0.024260074), ('deny', 0.4252245), ('affirm', 0.62844276)]`.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'select_prediction' running 'DefaultPolicyPredictionEnsemble.combine_predictions_from_kwargs'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2023-01-02 15:24:23 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.
2023-01-02 15:24:23 DEBUG rasa.core.policies.ensemble - Predicted next action using RulePolicy.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Predicted next action 'action_default_fallback' with confidence 0.30.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Policy prediction ended with events '[<rasa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x2d68e1a90>]'.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Action 'action_default_fallback' ended with events '[<rasa.shared.core.events.UserUtteranceReverted object at 0x2d6863d90>]'.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Current slot values:
bot_name: chat-bot
find_id: on the screen when you are trying to park
ref-id: 120824871527178120399382235499324701230
ref-id-valid: True
ticket_num: 9012830912830912830912830912830
session_started_metadata: None
2023-01-02 15:24:23 DEBUG rasa.engine.runner.dask - Running graph with inputs: {'__tracker__': <rasa.shared.core.trackers.DialogueStateTracker object at 0x2d68d74f0>}, targets: ['select_prediction'] and ExecutionContext(model_id='fa34182ceed1439a820d9950146657c5', should_add_diagnostic_data=False, is_finetuning=False, node_name=None).
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'rule_only_data_provider' running 'RuleOnlyDataProvider.provide'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'domain_provider' running 'DomainProvider.provide_inference'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_MemoizationPolicy0' running 'MemoizationPolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 0] slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 1] user intent: greet | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 2] user intent: greet | previous action name: utter_greet | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 3] user intent: greet | previous action name: utter_offer_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 4] user intent: status_update | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 5] user intent: status_update | previous action name: utter_regret | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 6] user intent: status_update | previous action name: utter_ask_ref_no | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 7] user intent: update_ref_no | user entities: ('id',) | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ticket_num': (1.0,)}
[state 8] user intent: update_ref_no | user entities: ('id',) | previous action name: action_validate_id | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 9] user intent: update_ref_no | user entities: ('id',) | previous action name: action_check_for_error | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 10] user intent: update_ref_no | user entities: ('id',) | previous action name: utter_other_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
2023-01-02 15:24:23 DEBUG rasa.core.policies.memoization - There is no memorised next action
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_RulePolicy1' running 'RulePolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 0] slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 1] user intent: greet | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 2] user intent: greet | previous action name: utter_greet | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 3] user intent: greet | previous action name: utter_offer_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 4] user intent: status_update | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 5] user intent: status_update | previous action name: utter_regret | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 6] user intent: status_update | previous action name: utter_ask_ref_no | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ticket_num': (1.0,)}
[state 7] user intent: update_ref_no | user entities: ('id',) | previous action name: action_listen | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ticket_num': (1.0,)}
[state 8] user intent: update_ref_no | user entities: ('id',) | previous action name: action_validate_id | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 9] user intent: update_ref_no | user entities: ('id',) | previous action name: action_check_for_error | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
[state 10] user intent: update_ref_no | user entities: ('id',) | previous action name: utter_other_help | slots: {'bot_name': (1.0,), 'find_id': (1.0,), 'ref-id': (1.0,), 'ref-id-valid': (1.0, 1.0), 'ticket_num': (1.0,)}
2023-01-02 15:24:23 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action 'action_listen'.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_TEDPolicy3' running 'TEDPolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.ted_policy - TED predicted 'action_listen' based on user intent.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'run_UnexpecTEDIntentPolicy2' running 'UnexpecTEDIntentPolicy.predict_action_probabilities'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.unexpected_intent_policy - Skipping predictions for UnexpecTEDIntentPolicy as either there is no event of type `UserUttered`, event's intent is new and not in domain or there is an event of type `ActionExecuted` after the last `UserUttered`.
2023-01-02 15:24:23 DEBUG rasa.engine.graph - Node 'select_prediction' running 'DefaultPolicyPredictionEnsemble.combine_predictions_from_kwargs'.
2023-01-02 15:24:23 DEBUG rasa.core.policies.ensemble - Predicted next action using RulePolicy.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Policy prediction ended with events '[]'.
2023-01-02 15:24:23 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
2023-01-02 15:24:23 DEBUG rasa.core.lock_store - Deleted lock for conversation 'f0ec7031a5b04951b1af665644a373a3'.
Specs:
- rasa 3.3.3
- rasa-sdk 3.3.0
- Python 3.9.13
- OS: MacOS Ventura 13.0 (22A380)
- Processor: Apple M1 Pro
Stories.yml
version: "3.1"
stories:
- story: starters with valid id
steps:
- intent: greet
- action: utter_greet
- action: utter_offer_help
- intent: status_update
- action: utter_regret
- action: utter_ask_ref_no
- intent: update_ref_no
- action: action_validate_id
- slot_was_set:
- ref-id-valid: True
- action: action_check_for_error
- action: utter_other_help
- intent: affirm
- action: utter_offer_help
- story: starters with valid id
steps:
- intent: greet
- action: utter_greet
- action: utter_offer_help
- intent: status_update
- action: utter_regret
- action: utter_ask_ref_no
- intent: update_ref_no
- action: action_validate_id
- slot_was_set:
- ref-id-valid: True
- action: action_check_for_error
- action: utter_other_help
- intent: deny
- checkpoint: denied_help
- story: starters with invalid id
steps:
- intent: greet
- action: utter_greet
- action: utter_offer_help
- intent: status_update
- action: utter_regret
- action: utter_ask_ref_no
- intent: update_ref_no
- action: action_validate_id
- slot_was_set:
- ref-id-valid: False
- action: utter_invalid_ref_no
- action: utter_raise_ticket
- intent: affirm
- action: utter_ticket_number
- action: utter_other_help
- intent: affirm
- action: utter_offer_help
- story: starters with invalid id
steps:
- intent: greet
- action: utter_greet
- action: utter_offer_help
- intent: status_update
- action: utter_regret
- action: utter_ask_ref_no
- intent: update_ref_no
- action: action_validate_id
- slot_was_set:
- ref-id-valid: False
- action: utter_invalid_ref_no
- action: utter_raise_ticket
- intent: affirm
- checkpoint: raise_ticket
- story: raise ticket
steps:
- checkpoint: raise_ticket
- action: utter_ticket_number
- action: utter_other_help
- intent: deny
- checkpoint: denied_help
- story: denied any other help
steps:
- checkpoint: denied_help
- action: utter_thanks
- intent: goodbye
- action: utter_goodbye
config.yml
recipe: default.v1
language: en
pipeline:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
analyzer: char_wb
min_ngram: 1
max_ngram: 4
- name: DIETClassifier
epochs: 100
constrain_similarities: true
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
constrain_similarities: true
- name: FallbackClassifier
threshold: 0.3
ambiguity_threshold: 0.1
policies:
- name: MemoizationPolicy
- name: RulePolicy
- name: UnexpecTEDIntentPolicy
max_history: 5
epochs: 100
- name: TEDPolicy
max_history: 5
epochs: 100
constrain_similarities: true
Domain.yml
version: '3.1'
intents:
- affirm
- bot_challenge
- deny
- goodbye
- greet
- nlu_fallback
- specific_update_status
- status_update
- update_ref_no
entities:
- id
responses:
utter_greet:
- text: Hey I'm {bot_name}!
utter_offer_help:
- text: How may I help you?
utter_greet_life_update:
- text: I'm fine thanks for asking
utter_goodbye:
- text: Bye, have a nice day ahead!
utter_regret:
- text: Sorry to hear about your unpleasant experience
utter_ask_ref_no:
- text: I can help you with that, but first can you please tell me your Ref-no you can find it {find_id}
utter_invalid_ref_no:
- text: Sorry I could not find any task with the id {ref-id}
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_thanks:
- text: Thanks, happy to help!
utter_raise_ticket:
- text: I'm sorry I could not help you with your issue, do you want me to raise a ticket?
utter_ticket_number:
- text: I've successfully raised a ticket for this issue with necessary details. Your ticket number is {ticket_num}. You can track your ticket at https://hpe.atlassian.net/servicedesk/customer/portal/{ticket_num}
utter_other_help:
- text: Is there anything else I can help you with? I'd be happy to help 😃
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
slots:
bot_name:
type: text
initial_value: chat-bot
mappings:
- type: custom
find_id:
type: text
initial_value: on the screen when you are trying to park
mappings:
- type: custom
ref-id:
type: text
mappings:
- type: from_entity
entity: id
ref-id-valid:
type: bool
mappings:
- type: custom
ticket_num:
type: text
initial_value: '9012830912830912830912830912830'
mappings:
- type: custom
actions:
- action_check_for_error
- action_validate_id