hi nik,
thanks for your time, i have have adjusted the story as follows,
version: "2.0"
stories:
- story: make reservation path 1
steps:
- intent: greet
- action: utter_greet
- action: utter_offer_service
- intent: make_reservation
- action: reservation_form
- active_loop: reservation_form
- slot_was_set:
- requested_slot: first_name
- slot_was_set:
- first_name: Noureddine
- slot_was_set:
- requested_slot: last_name
- slot_was_set:
- last_name: Elzaatari
- slot_was_set:
- requested_slot: num_people
- slot_was_set:
- num_people: 3
- slot_was_set:
- requested_slot: room_type
- slot_was_set:
- room_type: 2
- slot_was_set:
- requested_slot: null
- active_loop: null
but i noticed something, when the firstname is request, if i press a new line (enter) (supply an empty name) then it store an empty string in the name and fills the rest of the slots perfectly,
is there anything that im missing in the story ?
here is shell --debug
Your input -> i want to book a room
2021-10-26 08:40:10 DEBUG rasa.core.lock_store - Issuing ticket for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
2021-10-26 08:40:10 DEBUG rasa.core.lock_store - Acquiring lock for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
2021-10-26 08:40:10 DEBUG rasa.core.lock_store - Acquired lock for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
2021-10-26 08:40:10 DEBUG rasa.core.tracker_store - Recreating tracker for id '2a6c6ebd14904f7a86f0cb0fada4c810'
2021-10-26 08:40:10 DEBUG rasa.core.processor - Received user message 'i want to book a room' with intent '{'id': -1341975999639098863, 'name': 'make_reservation', 'confidence': 0.9005059003829956}' and entities '[]'
2021-10-26 08:40:10 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 11 events.
2021-10-26 08:40:10 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user intent: make_reservation | previous action name: action_listen
2021-10-26 08:40:10 DEBUG rasa.core.policies.memoization - There is a memorised next action 'reservation_form'
2021-10-26 08:40:10 DEBUG rasa.core.policies.ted_policy - TED predicted 'reservation_form' based on user intent.
2021-10-26 08:40:10 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user text: i want to book a room | previous action name: action_listen
2021-10-26 08:40:10 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-10-26 08:40:10 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user intent: make_reservation | previous action name: action_listen
2021-10-26 08:40:10 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-10-26 08:40:10 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2021-10-26 08:40:10 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.
2021-10-26 08:40:10 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy.
2021-10-26 08:40:10 DEBUG rasa.core.processor - Predicted next action 'reservation_form' with confidence 1.00.
2021-10-26 08:40:10 DEBUG rasa.core.actions.forms - Activated the form 'reservation_form'.
2021-10-26 08:40:10 DEBUG rasa.core.actions.forms - No pre-filled required slots to validate.
2021-10-26 08:40:10 DEBUG rasa.core.actions.forms - Validating user input 'UserUttered(text: i want to book a room, intent: make_reservation, use_text_for_featurization: False)'.
2021-10-26 08:40:10 DEBUG rasa.core.actions.forms - Validating extracted slots: {}
2021-10-26 08:40:10 DEBUG rasa.core.actions.forms - Request next slot 'first_name'
2021-10-26 08:40:10 DEBUG rasa.core.processor - Policy prediction ended with events '[<rasa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x7f8b7a75fb50>]'.
2021-10-26 08:40:10 DEBUG rasa.core.processor - Action 'reservation_form' ended with events '[<rasa.shared.core.events.ActiveLoop object at 0x7f8b7b82b0a0>, <rasa.shared.core.events.SlotSet object at 0x7f8b7b82f790>, BotUttered('please provide me with your first name', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {"utter_action": "utter_ask_reservation_form_first_name"}, 1635226810.4560819)]'.
2021-10-26 08:40:10 DEBUG rasa.core.processor - Current slot values:
first_name: None
last_name: None
room_type: None
num_people: None
breakfast_included: None
special_request: None
requested_slot: first_name
session_started_metadata: None
2021-10-26 08:40:10 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 0] user intent: greet | previous action name: action_listen
[state 1] user intent: greet | previous action name: utter_greet
[state 2] user intent: greet | previous action name: utter_offer_service
[state 3] user intent: make_reservation | previous action name: action_listen
[state 4] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:10 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-10-26 08:40:10 DEBUG rasa.core.policies.ted_policy - TED predicted 'action_listen' based on user intent.
2021-10-26 08:40:10 DEBUG rasa.core.policies.rule_policy - Predicted 'action_listen' after loop 'reservation_form'.
2021-10-26 08:40:10 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_RulePolicy.
2021-10-26 08:40:10 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
2021-10-26 08:40:10 DEBUG rasa.core.processor - Policy prediction ended with events '[]'.
2021-10-26 08:40:10 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
2021-10-26 08:40:10 DEBUG rasa.core.lock_store - Deleted lock for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
please provide me with your first name
Your input -> noureddine
2021-10-26 08:40:45 DEBUG rasa.core.lock_store - Issuing ticket for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
2021-10-26 08:40:45 DEBUG rasa.core.lock_store - Acquiring lock for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
2021-10-26 08:40:45 DEBUG rasa.core.lock_store - Acquired lock for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
2021-10-26 08:40:45 DEBUG rasa.core.tracker_store - Recreating tracker for id '2a6c6ebd14904f7a86f0cb0fada4c810'
2021-10-26 08:40:45 DEBUG rasa.core.processor - Received user message 'noureddine' with intent '{'id': 5662106942764054971, 'name': 'deny', 'confidence': 0.8338602781295776}' and entities '[]'
2021-10-26 08:40:45 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 18 events.
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 0] user intent: greet | previous action name: utter_greet
[state 1] user intent: greet | previous action name: utter_offer_service
[state 2] user intent: make_reservation | previous action name: action_listen
[state 3] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 4] user intent: deny | previous action name: action_listen | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-10-26 08:40:45 DEBUG rasa.core.policies.ted_policy - TED predicted 'utter_greet' based on user intent.
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user intent: make_reservation | previous action name: action_listen
[state 5] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 6] user text: noureddine | previous action name: action_listen | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - Predicted loop 'reservation_form'.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_RulePolicy.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Predicted next action 'reservation_form' with confidence 1.00.
2021-10-26 08:40:45 DEBUG rasa.core.actions.forms - Validating user input 'UserUttered(text: noureddine, intent: deny, use_text_for_featurization: False)'.
2021-10-26 08:40:45 DEBUG rasa.core.actions.forms - Trying to extract requested slot 'first_name' ...
2021-10-26 08:40:45 DEBUG rasa.core.actions.forms - Got mapping '{'type': 'from_entity', 'entity': 'first_name'}'
2021-10-26 08:40:45 DEBUG rasa.core.actions.forms - Got mapping '{'type': 'from_text'}'
2021-10-26 08:40:45 DEBUG rasa.core.actions.forms - Failed to extract requested slot 'first_name'
2021-10-26 08:40:45 DEBUG rasa.core.actions.forms - Validating extracted slots: {}
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 0] user intent: greet | previous action name: utter_greet
[state 1] user intent: greet | previous action name: utter_offer_service
[state 2] user intent: make_reservation | previous action name: action_listen
[state 3] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 4] user intent: deny | previous action name: action_listen | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-10-26 08:40:45 DEBUG rasa.core.policies.ted_policy - TED predicted 'utter_greet' based on user intent.
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user intent: make_reservation | previous action name: action_listen
[state 5] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 6] previous action name: action_listen | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user intent: make_reservation | previous action name: action_listen
[state 5] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 6] user intent: deny | previous action name: action_listen | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Execution of 'reservation_form' was rejected. Setting its confidence to 0.0 in all predictions.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Predicted next action 'utter_greet' with confidence 0.88.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Policy prediction ended with events '[<rasa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x7f8b7b516220>]'.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Action 'utter_greet' ended with events '[BotUttered('Hey! How are you?', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {"utter_action": "utter_greet"}, 1635226845.888303)]'.
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 0] user intent: greet | previous action name: utter_offer_service
[state 1] user intent: make_reservation | previous action name: action_listen
[state 2] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 3] user intent: deny | previous action name: action_listen | active loop: {'name': 'reservation_form'}
[state 4] user intent: deny | previous action name: utter_greet | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-10-26 08:40:45 DEBUG rasa.core.policies.ted_policy - TED predicted 'utter_offer_service' based on user intent.
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user intent: make_reservation | previous action name: action_listen
[state 5] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 6] user intent: deny | previous action name: action_listen | active loop: {'name': 'reservation_form'}
[state 7] user intent: deny | previous action name: utter_greet | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Predicted next action 'utter_offer_service' with confidence 0.90.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Policy prediction ended with events '[]'.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Action 'utter_offer_service' ended with events '[BotUttered('welcome to x hotel, how can i assist you today ?', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {"utter_action": "utter_offer_service"}, 1635226845.9187148)]'.
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 0] user intent: make_reservation | previous action name: action_listen
[state 1] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 2] user intent: deny | previous action name: action_listen | active loop: {'name': 'reservation_form'}
[state 3] user intent: deny | previous action name: utter_greet | active loop: {'name': 'reservation_form'}
[state 4] user intent: deny | previous action name: utter_offer_service | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-10-26 08:40:45 DEBUG rasa.core.policies.ted_policy - TED predicted 'action_listen' based on user intent.
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_greet
[state 3] user intent: greet | previous action name: utter_offer_service
[state 4] user intent: make_reservation | previous action name: action_listen
[state 5] user intent: make_reservation | previous action name: reservation_form | active loop: {'name': 'reservation_form'}
[state 6] user intent: deny | previous action name: action_listen | active loop: {'name': 'reservation_form'}
[state 7] user intent: deny | previous action name: utter_greet | active loop: {'name': 'reservation_form'}
[state 8] user intent: deny | previous action name: utter_offer_service | active loop: {'name': 'reservation_form'}
2021-10-26 08:40:45 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-10-26 08:40:45 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 0.84.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Policy prediction ended with events '[]'.
2021-10-26 08:40:45 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
2021-10-26 08:40:45 DEBUG rasa.core.lock_store - Deleted lock for conversation '2a6c6ebd14904f7a86f0cb0fada4c810'.
Hey! How are you?
welcome to x hotel, how can i assist you today ?