Error Tried to access non existent slot

I’m getting an error when following along this tutorial that I can’t figure out.

When running rasa in the shell, I get this error: "Tried to access non existent slot ‘confirm_exercise’ " (along with many others).

Here is the domain file. Any help is appreciated and let me know if i can make this question more clear. Thanks!

version: "2.0"

intents:
  - greet
  - goodbye
  - affirm
  - deny
  - mood_great
  - mood_unhappy
  - bot_challenge

responses:
  utter_greet:
  - text: "Hi! It's time for your daily wellness check. Tracking healthy habits is a great way to measure your progress over time. Would you like to answer a few questions about your health?"

  utter_goodbye:
  - text: "See you tomorrow. Bye!"

  utter_iamabot:
  - text: "I am a bot, powered by Rasa."
  
  utter_ask_confirm_exercise:
  - 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_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:\n
            - Exercised?: {confirm_exercise}\n
            - Type of exercise: {exercise}\n
            - Sleep: {sleep}\n
            - Stuck to a healthy diet?: {diet}\n
            - Stress level: {stress}\n
            - 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_happy:
  - text: "Great, carry on!"

#  utter_goodbye:
#  - text: "Bye"

#  utter_iamabot:
#  - text: "I am a bot, powered by Rasa."

session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true

forms:
  health_form:
    confirm_exercise:
      - type: from_intent
        intent: affirm
        value: True
      - type: from_intent
        intent: deny
        value: False
      - type: from_intent
        intent: inform
        value: True
    exercise:
      - type: from_entity
        entity: exercise
    sleep:
      - type: from_entity
        entity: sleep
      - type: from_intent
        intent: deny
        value: None
    stress:
      - type: from_entity
        entity: stress
    diet:
      - type: from_text
        intent: 
          - inform 
          - affirm 
          - deny
    goal:
      - type: from_text
        intent: inform



actions:
- action_submit_results
- validate_health_form
- utter_exercise_info
- confirm_exercise

You need to define your slots in your Domain.

Sorry. how do i do that? i thought i was following the form. do i need to specify slots in addition to forms in the domain?

Yes, all slots must be listed in the domain. If you are using a form, then that also needs to be listed in the domain.