domain.yml
forms:
house_pricing_form:
localisation:
- type: from_entity
entity: localisation
area:
- type: from_entity
entity: area
number_of_rooms:
- type: from_entity
entity: number_of_rooms
finishing_standard:
- type: from_entity
entity: finishing_standard
floor:
- type: from_entity
entity: floor
nlu.yml
- intent: floor_response
examples: |
- The flat is on the [2](floor) floor.
- The apartament is located on the [5](floor) floor.
- [20](floor) floor.
- [5](floor)
stories.yml
- story: interactive_story_1
steps:
- intent: greet
- action: utter_greet
- action: utter_ask_property_type
- intent: flat_pricing_request
- action: house_pricing_form
- active_loop: house_pricing_form
- slot_was_set:
- requested_slot: localisation
- intent: chitchat
- action: utter_ask_continue
- intent: affirm
- action: house_pricing_form
- slot_was_set:
- requested_slot: localisation
- slot_was_set:
- requested_slot: area
- intent: chitchat
- action: utter_ask_continue
- intent: affirm
- action: house_pricing_form
- slot_was_set:
- requested_slot: number_of_rooms
- slot_was_set:
- requested_slot: finishing_standard
- slot_was_set:
- requested_slot: floor
- slot_was_set:
- requested_slot: height
- slot_was_set:
- requested_slot: rent
- slot_was_set:
- requested_slot: construction_year
- slot_was_set:
- requested_slot: heating_type
- active_loop: null
- action: utter_subscribed
- action: submit_newsletter_form
Hi all! I have a problem with a form in Rasa. Why the question about the floor is asked many times and the chatbot doesn’t quit a form? What’s wrong with my code?