Hi Everyone, I am a beginner in RASA and I have started with a single form with only one required slot but in my use case once required slot is filled I want to take the conversation forward. For example in this form code attached below, once sapling date is entered the requested slot of the form will be filled and then I want to ask the user two more question. 1st question: are you existing user, 2nd question: are you ready for registration. Once I received affirmation for both question by user I need to ask them is there anything else I can help you with. But the issue here is that the bot is prompting till the 2nd question i.e. are you ready for registration but when the user says yes bot didn’t prompt the utter_anything_else text. It keeps on listening saying Your Input →
rules.yml
version: "3.1"
rules:
- rule: activate sapling form
steps:
- intent: cultivation
- action: sapling_form
- active_loop: sapling_form
- rule: sunbmit sapling form for existing user
steps:
- action: sapling_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: utter_ask_existing_user
- intent: affirm
- action: utter_ask_ready_for_registration
stories.yml
- story: sapling with existing user
steps:
- intent: cultivation
- action: sapling_form
- active_loop: sapling_form
- action: sapling_form
- active_loop: null
- action: utter_ask_existing_user
- intent: affirm
- action: utter_ask_ready_for_registration
- intent: affirm
- action: utter_anything_else
- action: action_restart
domain.yml
version: '3.1'
intents:
- affirm
- cultivation
- deny
- greet
slots:
sapling_date:
type: text
mappings:
- type: from_text
conditions:
- active_loop: sapling_form
requested_slot: sapling_date
responses:
utter_greet:
- text: Dear farmer, welcome to the official *Registration™ WhatsApp number* from XYZ India.
utter_main_menu:
- text: |-
*XYZ™*, trusted choice for millions of users.
Please choose from the below options or type your query below.
buttons:
- title: Cultivation
payload: cultivation
- title: '*Support Request*'
payload: Support Request
utter_ask_name:
- text: Please enter your name
utter_ask_land_size:
- text: Please enter total number of acres of land you own (in number).
utter_ask_cultivation_plan:
- text: Are you planning to cultivate this year?
buttons:
- title: Yes
payload: yes
- title: No
payload: no
- title: others
payload: others
utter_ask_sapling_date:
- text: Please enter your Date of Sapling (in DD-MM-YYYY format).
utter_ask_existing_user:
- text: Are you already using XYZ?
buttons:
- title: Yes
payload: yes
- title: No
payload: no
- title: others
payload: others
utter_ask_ready_for_registration:
- text: Are you ready to use XYZ for this Season?
buttons:
- title: Yes
payload: yes
- title: No
payload: yes
- title: others
payload: others
utter_anything_else:
- text: Would you like to return to the *Main Menu* and try our other services?
buttons:
- title: Yes
payload: yes
- title: No
payload: no
utter_did_that_help:
- text: Did that help you?
utter_goodbye:
- text: Bye, thank you for chatting!
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_denied_registration:
- text: |-
No problem. You can register later also.
Please type *Hi* to start a new session
forms:
sapling_form:
required_slots:
- sapling_date
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
actions:
- utter_anything_else
- utter_main_menu
- utter_ask_ready_for_registration
- utter_ask_existing_user
- utter_goodbye
- utter_denied_registration
let me know if I am doing anything wrong or please suggest the correct way of implementing this use case. Thanks in anticipation.