Why is this code not working

I am trying to use the conversation and the intent_script but it always says my config is invalid no matter what. pls help

# Example base configuration.yaml entry for conversation
conversation:
  intents:
    HouseTemperature:
      - What is the temperature
      - What is the temperature in the house
      - Whats the temperature
      - Whats the thermostat set to
      - How hot is the house
      - How cold is the house
      - House temperature
    BasementLights:
      - Set basement lights to [the color] {color}
      - Set davids lights to [the color] {color}
      - Make basement lights [the color] {color}
      - Make davids lights [the color] {color}
    Garage:
      - Open [the] garage
      - Close [the] garage
    GarageStatus:
      - Is [the] garage open
      - Is [the] garage closed

intent_script:
  HouseTemperature:
    speech:
      text: It is currently {{ states.sensor.3family_room_temperature }} degrees in the house.
  BasementLights:
    speech:
      text: Set the Basement Lights to {{ color }}.
    action:
      service: light.turn_on
    target:
      entity_id: light.basement_lights_main
    data:
      rgb_color:
        - "{% if color == 'red' %}255{% else %}0{% endif %}"
        - "{% if color == 'green' %}255{% else %}0{% endif %}"
        - "{% if color == 'blue' %}255{% else %}0{% endif %}"
        - "{% if color == 'purple' %}255{% else %}0{% endif %}"
        - "{% if color == 'pink' %}255{% else %}0{% endif %}"
        - "{% if color == 'yellow' %}255{% else %}0{% endif %}"
        - "{% if color == 'orange' %}255{% else %}0{% endif %}"
        - "{% if color == 'gold' %}255{% else %}0{% endif %}"
        - "{% if color == 'brown' %}255{% else %}0{% endif %}"
  Garage:
    speech:
      text: Toggled the Garage door button
    action:
      service: switch.toggle
    target:
      entity_id: switch.garage_bot
  GarageStatus:
    speech:
      text: The Garage door is {{ states.cover.garage_bot }}

Exactly what does it say?

With that information somebody’s more likely to be able to help you.

Sorry, the error is this:

Invalid config for [intent_script]: invalid template (TemplateSyntaxError: expected token ‘end of print statement’, got ‘family_room_temperature’) for dictionary value @ data[‘intent_script’][‘HouseTemperature’][‘speech’][‘text’]. Got ‘It is currently {{ states.sensor.3family_room_temperature }} degrees in the house.’. (See /config/configuration.yaml, line 264).

That doesn’t look like a valid template, it’d be

{{ states('sensor.3family_room_temperature') }}

You probably also have to quote the entire line, like

      text: "It is currently {{ states('sensor.3family_room_temperature') }} degrees in the house."

Screen Shot 2023-01-06 at 4.56.56 PM

Looks like that worked! Thanks.