I’m having difficulty getting a basic form to work correctly and I’m not sure why. I’ve included the domain and rules below
The form, experience_form is correctly triggered, from an intent ‘log an experience’. in rasa interactive, when i correct it and force it to recognize the next action to run experience_form it won’t fill the slot or then go on to fill another slot. It gets stuck on this portion, the experience_substance slot:
experience_form 1.00
active_loop{"name": "experience_form"}
slot{"requested_slot": "experience_substance"}
How'd you describe the substance?
action_listen 1.00
The bot will correctly ask the right utter, and though it may confuse the intent (which I correct to inform), if it runs experience_form it never sets the slot.
What am i doing wrong? thanks
UPDATED: I partially solved the issue by adding an intent “inform” and value: false. But then all of the responses will have to be tagged as inform intents, which I can’t do. It seems like rasa is having trouble with ‘None’ intents in forms.
experience_substance:
- type: from_text intent: inform value: false
RULES
- rule: Activate experience form
steps:
- intent: verify_log_experience
- action: experience_form
- active_loop: experience_form
DOMAIN
version: '2.0'
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: false
intents:
- verify_log_experience
- greet
- bot_challenge
- affirm
- goodbye
- inform
- act_asana_path
- google_search_person
- asana_problem_get_help
- head_heart_round
- flush_slots
- asana_change_date
- check_asana
- sleep_log
- deny
- mood_great
- mood_unhappy
- trigger_hello_world
- action_ask_head_heart_round
- change_date
- restart
entities:
- exercise
- sleep
- stress
- task_name
slots:
confirm_log:
type: text
influence_conversation: false
sleep_confirm:
type: text
influence_conversation: true
sleep:
type: text
influence_conversation: true
sleep_description:
type: text
influence_conversation: true
goal:
type: text
influence_conversation: true
asana_task_name:
type: text
influence_conversation: true
asana_number_select:
type: text
influence_conversation: true
asana_task_name_to_search:
type: text
influence_conversation: true
notes_from_asana_task_selected:
type: text
influence_conversation: false
asana_select_options_slot:
type: text
influence_conversation: false
asana_after_note_logged:
type: text
influence_conversation: false
verify_log_experience:
type: text
influence_conversation: false
experience_insight:
type: text
influence_conversation: false
experience_substance:
type: text
influence_conversation: false
experience_ask_missed_info:
type: text
influence_conversation: false
experience_dose:
type: text
influence_conversation: false
experience_behavior_change:
type: text
influence_conversation: false
experience_timing:
type: text
influence_conversation: false
explanation_of_mechanism:
type: text
influence_conversation: false
experience_carry:
type: text
influence_conversation: false
experience_relates_to_task:
type: text
influence_conversation: true
responses:
utter_default:
- text: Sorry I didn't get that. Can you rephrase?
utter_greet:
- text: Hi! I'm excited to learn about your experience!
utter_ask_asana_change_date:
- text: What is the date you'd like to change the last task to (format in yyyy-mm-dd)?
utter_experience_verify_log_experience:
- text: Would you like to log an experience?
utter_confirm_sleep:
- text: Do you want to talk about how you slept?
utter_goodbye:
- text: Thanks for chatting. Bye!
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_ask_confirm_log:
- text: Did you exercise yesterday? Don't sweat it if you didn't run a marathon - walks count!
utter_ask_exercise:
- text: What kind of exercise did you do 💪 ?
utter_ask_sleep:
- text: How much sleep did you get last night?
utter_ask_sleep_description:
- text: How would you describe your sleep?
utter_ask_diet:
- text: Did you stick to a healthy diet 🥦 yesterday?
utter_ask_stress:
- text: What is your stress level right now 🧘 ?
buttons:
- title: low
payload: '/inform{"stress": "low"}'
- title: medium
payload: '/inform{"stress": "medium"}'
- title: high
payload: '/inform{"stress": "high"}'
utter_ask_goal:
- text: Setting goals - even small ones - is a great way to focus your day. What do you want to accomplish today 🥇 ?
utter_slots_values:
- text: |-
You've submitted the following answers:
- Exercised?: {confirm_log}
- Sleep: {sleep}
- Goal: {goal}
utter_no_worries:
- text: No problem :)
utter_ask_continue:
- text: Sorry, I don't quite understand. Do you want to continue?
utter_cheer_up:
- text: 'Here is something to cheer you up:'
image: https://i.imgur.com/nGF1K8f.jpg
utter_did_that_help:
- text: Did that help you?
utter_start_over:
- text: Ok, let's start over.
utter_happy:
- text: Great, carry on!
utter_ask_head_heart_express:
- text: How would you express your problem in a way that invokes more empathy?
utter_ask_head_heart_rating:
- text: How would you rate that expression?
utter_ask_head_heart_explain:
- text: Why would you rate it that way?
utter_what_next:
- text: What would you like to do next?
utter_ask_asana_task_name:
- text: What's the task you'd like to check?
utter_ask_experience_insight:
- text: What was your insight or notable experience?
utter_experience_ask_missed_info:
- text: Is there something else you'd like to note about your experience?
utter_ask_experience_dose:
- text: How would you describe the dose?
utter_ask_experience_substance:
- text: How'd you describe the substance?
utter_ask_experience_context:
- text: How might you describe the timing or mindfullness practices?
utter_ask_experience_carry:
- text: Do you feel like there are things you want to carry from this experience into your life?
utter_ask_explanation_of_mechanism:
- text: How would you describe the mechanism of action for why your thoughts or behavior were different?
utter_ask_experience_behavior_change:
- text: How would you describe how your behavior, such as conversational style or movements, changed?
utter_ask_experience_timing:
- text: Please describe the context, such as time of day, around the experience.
utter_act_asana_path:
- text: Please describe the context, such as time of day, around the experience.
utter_asana_change_date:
- text: What new due date would you like for the task?
utter_ask_experience_relates_to_task:
- text: does this relate to an asana task?
utter_ask_asana_problem_get_help:
- text: How would you briefly describe the problem related to the task?
utter_ask_asana_who_could_help:
- text: Do you know who could help with this problem? If yes, I can create a task. If no, I can look for someone.
utter_ask_google_who_could_help:
- text: Who would you like to search for?
actions:
- act_asana_path
- action_ask_asana_add_search
- action_ask_asana_after_note_logged
- action_ask_asana_change_date
- action_ask_asana_create_delegate_task
- action_ask_asana_task_name_to_search
- action_ask_google_contacts_search
- action_ask_head_heart_round
- action_ask_notes_from_asana_task_selected
- action_flush_slots
- action_hello_world
- action_submit_results
- check_asana_action
- confirm_log
- select_asana_action
- utter_ask_asana_change_date
- utter_ask_asana_problem_get_help
- utter_ask_asana_task_name
- utter_ask_experience_behavior_change
- utter_ask_experience_carry
- utter_ask_experience_dose
- utter_ask_experience_insight
- utter_ask_experience_substance
- utter_ask_experience_timing
- utter_ask_explanation_of_mechanism
- utter_ask_google_who_could_help
- utter_ask_head_heart_explain
- utter_ask_head_heart_express
- utter_ask_head_heart_rating
- utter_confirm_sleep
- utter_exercise_info
- utter_experience_verify_log_experience
- utter_goodbye
- utter_greet
- utter_start_over
- utter_what_next
- validate_health_form
- validate_sleep_form
- validate_sleep_log
forms:
asana_form:
required_slots:
asana_task_name:
- type: from_text
intent: None
asana_task_name_to_search:
- intent:
- None
type: from_text
notes_from_asana_task_selected:
- intent:
- None
type: from_text
asana_after_note_logged:
- intent:
- None
type: from_text
sleep_form:
required_slots:
sleep_confirm:
- type: from_intent
intent: affirm
value: true
- type: from_intent
intent: deny
value: false
- type: from_intent
intent: inform
value: true
sleep_description:
- type: from_text
intent: None
not_intent: inform
health_form:
required_slots:
confirm_log:
- type: from_intent
intent: affirm
value: true
- type: from_intent
intent: deny
value: false
- type: from_intent
intent: inform
value: true
sleep:
- type: from_entity
entity: sleep
- type: from_intent
intent: deny
value: None
sleep_description:
- type: from_text
intent: None
not_intent: inform
goal:
- type: from_intent
intent: affirm
value: true
- type: from_intent
intent: deny
value: false
experience_form:
required_slots:
experience_substance:
- type: from_text
intent: None
value: true
experience_dose:
- type: from_text
intent: None
value: true
experience_insight:
- type: from_text
intent: inform
value: true
experience_timing:
- type: from_text
intent: inform
value: true
explanation_of_mechanism:
- type: from_text
intent: inform
value: true
experience_behavior_change:
- type: from_text
intent: inform
value: true
experience_carry:
- type: from_text
intent: inform
value: true
experience_relates_to_task:
- type: from_text
intent: affirm
value: true