Dialogflow slots intent script

Hi all,
i’m to try to script intent with slots parameters from google dialogflow.
for example dialogflow cloud return me:
type: climate-ask-intent and slots: {‘room’: {‘value’: ‘kitchen’}}

my script is:

intent_script:
climate-ask-intent:
speech:
text: >
{% room = states.climate.slots[‘room’] -%}
the ambient temperature of {{ states.climate.[room].attributes.friendly_name }} is
{{ states.climate.[room].attributes.current_temperature }}

any ideas ?